Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xcode 15.3 beta 1: fix compilation errors #3599

Merged
merged 3 commits into from
Jan 25, 2024
Merged

Xcode 15.3 beta 1: fix compilation errors #3599

merged 3 commits into from
Jan 25, 2024

Conversation

NachoSoto
Copy link
Contributor

@NachoSoto NachoSoto commented Jan 25, 2024

Changes:

  • InternalAPI is now Sendable to deal with new compilation error
  • PaywallEventStoreType is now Sendable
  • Extracted SK2BeginRefundRequestHelperType to make SK2BeginRefundRequestHelper Sendable
  • Updated MockSK2BeginRefundRequestHelper to be thread-safe and Sendable
  • Fixed compilation error in DebugContentViews
  • Fixed compilation error in DebugViewModel
  • Fixed compilation error in StoreMessagesHelper

@NachoSoto NachoSoto added the pr:fix A bug fix label Jan 25, 2024
@NachoSoto NachoSoto requested a review from a team January 25, 2024 20:35
@NachoSoto
Copy link
Contributor Author

There's a proposal to address this: https://github.com/apple/swift-evolution/blob/9a8f81d75bf58c303d7aa7317a9528931ac7172c/proposals/NNNN-generalize-async-sequence.md

But that's for Swift 5.11. We'll need a way to fix this on Swift 5.10.

@NachoSoto NachoSoto marked this pull request as ready for review January 25, 2024 21:35
@NachoSoto NachoSoto changed the title Xcode 15.3 beta: fix compilation errors Xcode 15.3 beta 1: fix compilation errors Jan 25, 2024
func deferMessagesIfNeeded() async throws {
// `nonisolated` required to work around Swift 5.10 issue.
// See https://github.com/RevenueCat/purchases-ios/pull/3599
nonisolated func deferMessagesIfNeeded() async throws {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@NachoSoto NachoSoto removed the blocked label Jan 25, 2024
Copy link
Member

@joshdholtz joshdholtz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SHIP IT

@NachoSoto NachoSoto enabled auto-merge (squash) January 25, 2024 22:05
@NachoSoto NachoSoto merged commit 53fe9cd into main Jan 25, 2024
24 checks passed
@NachoSoto NachoSoto deleted the xcode-15.3-fix branch January 25, 2024 23:29
NachoSoto added a commit that referenced this pull request Jan 26, 2024
NachoSoto pushed a commit that referenced this pull request Jan 26, 2024
**This is an automatic release.**

### Bugfixes
* `Xcode 15.3 beta 1`: fix compilation errors (#3599) via NachoSoto
(@NachoSoto)
### Other Changes
* `Xcode 15.3 beta 1`: fix warnings on tests (#3600) via NachoSoto
(@NachoSoto)
NachoSoto added a commit that referenced this pull request Jan 26, 2024
Follow up to #3599 and #3600.

These `@MainActor` annotations don't work anymore because of this:
> Main actor-isolated class '...' has different actor isolation from nonisolated superclass 'TestCase'; this is an error in Swift 6

They were necessary with an older version of Xcode (likely 13.x), but not anymore.
MarkVillacampa pushed a commit that referenced this pull request Feb 15, 2024
Follow up to #3599 and #3600.

These `@MainActor` annotations don't work anymore because of this:
> Main actor-isolated class '...' has different actor isolation from nonisolated superclass 'TestCase'; this is an error in Swift 6

They were necessary with an older version of Xcode (likely 13.x), but not anymore.
MarkVillacampa pushed a commit that referenced this pull request Feb 29, 2024
Follow up to #3599 and #3600.

These `@MainActor` annotations don't work anymore because of this:
> Main actor-isolated class '...' has different actor isolation from nonisolated superclass 'TestCase'; this is an error in Swift 6

They were necessary with an older version of Xcode (likely 13.x), but not anymore.
MarkVillacampa added a commit that referenced this pull request Mar 4, 2024
Follow up to #3599 and #3600.

These `@MainActor` annotations don't work anymore because of this:
> Main actor-isolated class '...' has different actor isolation from
nonisolated superclass 'TestCase'; this is an error in Swift 6

They were necessary with an older version of Xcode (likely 13.x), but
not anymore.

---------

Co-authored-by: Mark Villacampa <m@markvillacampa.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr:fix A bug fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants