Crash occurs in both @MainActor classes and functions on iOS 14

Crash occurs in @MainActor class or function in iOS 14

Apps built and distributed targeting Xcode 16 version swift6 crash on iOS 14 devices.

We create a static library and put it in our app's library.

Crash occurs in all classes or functions of the static library (@MainActor in front).

It does not occur from iOS / iPadOS 15.

If you change the minimum supported version of the static library to iOS 11, a crash occurs, and if you change it to iOS 14, a crash does not occur.

Is there a way to keep the minimum version of the static library at iOS 11 and prevent crashes?

Answered by DTS Engineer in 816422022
Is there a way to keep the minimum version of the static library at iOS 11 and prevent crashes?

With Xcode 16? No. Developer > Support > Xcode confirms that Xcode 16’s minimum deployment target is iOS 12. That goes up to iOS 13 in Xcode 16.1.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Accepted Answer
Is there a way to keep the minimum version of the static library at iOS 11 and prevent crashes?

With Xcode 16? No. Developer > Support > Xcode confirms that Xcode 16’s minimum deployment target is iOS 12. That goes up to iOS 13 in Xcode 16.1.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Crash occurs in both @MainActor classes and functions on iOS 14
 
 
Q