Xcode 8 build crash on iOS 9.2 and below

前端 未结 8 1495
南方客
南方客 2020-11-27 10:53

When I build my app with Xcode 8 GM Seed and run it on an iOS 9.2 below device OR simulator, I get strange EXC_BAD_ACCESS crashes during app startup or a few seconds after

相关标签:
8条回答
  • 2020-11-27 11:24

    Adding for anyone else with a similar problem...

    App was crashing on iOS 9.0 - iOS 9.2 on what seemed random / around Storyboard transitions / around setting an UIImage(name...).. Found this thread: (https://forums.developer.apple.com/thread/61643)

    If your app is targeting iOS 8.4, it will crash on iOS 9.0 - 9.2 in Xcode 8.. something to do with xcassets. Setting the deployment target to 8.2 or below ( I used 8.0) fixed it for me. No kidding. Worst bug ever.

    0 讨论(0)
  • 2020-11-27 11:29

    Set the iOS Deployment Target inside Info of your project and all the targets to the same value.

    In my case my Project was set to iOS 9.1 and the Target was set to iOS 8.0 and was crashing on Simulator with iOS 8.4

    Now it's working perfectly.

    PS.: Clean the project before running again.

    0 讨论(0)
提交回复
热议问题