I upgraded my application from Swift 2.2 to Swift 2.3 with minimal changes using Xcode 8.0
Everything works fine from Xcode in debug or release configuration
When testing the exported archive on IOS 9.2.1 and lower devices (Adhoc or development preparation profile) I get a crash when
SpringBoard[54] <Warning>: BSXPCMessage received error for message: Connection invalid SpringBoard[54] <Warning>: BSXPCMessage received error for message: Connection invalid timed[58] <Notice>: (Note ) CoreTime: Current mcc: '0' simulated:'0'. SpringBoard[54] <Warning>: HW kbd: Failed to set (null) as keyboard focus <Error>: error evaluating process info - pid: 1038, puniqueid: 1038 (UIKitApplication:) <Notice>: Service exited due to signal: Segmentation fault: 11.
This means that it is trying to access memory somewhere invalid.
I tried writing NSLog and tracing, but cannot find the point where it crashes.
I suspect this may be due to storyboard changes from Xcode 7-8.
I searched for this error for too long, because it takes me a lot of time, because I have to create an archive every time. 95% of the time when it crashes at startup, but sometimes I manage to start it.
I had no problems running on devices with iOS 9.3 or iOS 10
----- Update ----
I downloaded Xcode beta 8-1 and this also fixes my problem.
So either use Xcode 7.3 or 8.1 beta +, but not 8.0. I looked at beta 8.1 releases, but did not mention this issue.
----- Update ----
HatTip to @KoCMoHaBTa when upgrading to version 8.1, this problem will be fixed if you also do not change the deployment target to 9.0, after which it will be re-executed.
source share