Open KaiOelfke opened 1 month ago
I have the same problem on a physical iOS 18.0 beta 4 device where the code is crashing on a withTaskGroup call. However, my project still runs on Swift 5, so I believe this is an error in the libraries, not the Swift language.
It runs fine on an iOS 17.5 simulator (I have another regression on the iOS 18 simulator and thus cannot test my project there yet). It worked fine on previous Xcode 16 betas before Xcode 16.0 beta 5.
I'm getting crashes using withTaskGroup
on-device (but not in Simulator) running Xcode 16 Beta 5, on an iPad
Can confirm, happening on-device and on iPhone 15, both on iOS 18 Dev Beta, also seems to affect withThrowingTaskGroup
Update for Xcode 16 beta 6 for the sample above:
I am seeing this on iPhone iOS 18 and Xcode 16 beta 6 with withTaskGroup
and withDiscardingTaskGroup
configurations. All my task groups are crashing, without fail in my application (which is open source here https://github.com/msdrigg/roam).
This is not iOSAppOnMac
, it's running a SwiftUI application on a native iOS device (not simulator).
Additionally I don't see this error when I run the same application directly on macOS (it's cross-platform through swiftui)
I have the same problem on a physical iOS 18.0 beta 4
It worked fine on previous Xcode 16 betas before Xcode 16.0 beta 5.
There is an ABI mismatch between iOS/macOS Beta 4 and Xcode 16 Beta 5 for the withTaskGroup
APIs. The issue should be resolved if you match the betas, i.e. build with Xcode 16 Beta 5+ and run on iOS 18 Beta 5+. This ABI mismatch does not apply when back deploying to a previous macOS or iOS release.
This ABI mismatch does not apply when back deploying to a previous macOS or iOS release.
Isn't compiling with Xcode 16 beta 6 to run an iOS app on macOS Sonoma 14.6.1 (23G93) back deploying to a previous iOS(AppOnMac) release?
Because this crashes as mentioned in my last comment. So we currently can't use Xcode 16 beta for the development of iOSAppOnMac apps on macOS Sonoma.
Description
With Xcode 16.0 beta 5 and Swift 6.0 (6.0.0.7.6) the code sample below crashes, when running as iOS app on mac (iOS apps can run on macOS devices with Apple Silicon). E.g. this applies to destinations where https://developer.apple.com/documentation/foundation/processinfo/3608556-isiosapponmac
ProcessInfo.processInfo.isiOSAppOnMac
is true.Reproduction
Create a new iOS SwiftUI project with the default template and extend the template ContentView with a task modifier and a task group or just use withTaskGroup anywhere else.
Stack dump
Expected behavior
withTaskGroup should not crash and behave as in previous Xcode / Swift versions.
Environment
Xcode 16.0 beta 5 (16A5221g) Swift 6.0 (6.0.0.7.6) iOSAppOnMac
Additional information
No response