EXC_BAD_ACCESS when running async code on "My Mac (Designed for iPad)" destination.

Originator:yonathan
Number:rdar://15099898 Date Originated:
Status:Openm Resolved:No
Product:XCode Product Version:16 RC1, Beta 5, Beta 6, 16.1 Beta 1
Classification:Incorrect/Unexpected Behavior Reproducible:Yes
 
Create a new iOS project in XCode with default settings .

Add the following code to the ContentView struct:
    ```Task { await withCheckedContinuation { $0.resume() } }```
Run the app with the run destination set to "My Mac (Designed for iPad)"

The app will immediately crash on bad access exception.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at feedbackassistant.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!