Xcode 8 build crash on iOS 9.2 and below

前端 未结 8 1534
南方客
南方客 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.

提交回复
热议问题