App Crashes Only On Testflight Build

前端 未结 11 2182
北海茫月
北海茫月 2020-12-13 03:56

I have created an app on swift and tested it extensively using iPhone 6, iPhone 6 plus and iPhone 5 devices and all the simulators offered in Xcode. The app runs fine and do

11条回答
  •  孤街浪徒
    2020-12-13 04:07

    I got it (partially!). Actually "release" implementation of UI_USER_INTERFACE_IDIOM() in swift project crashes the app.

    However, still I have no clue why our app store app (objective c language based) does NOT crash.

    My only guess is that it's a glitch in UI_USER_INTERFACE_IDIOM() API implementation with some language specific coding (swift vs objective c) by Apple.

    Anyways, I would replace all UI_USER_INTERFACE_IDIOM() with UIDevice(). userInterfaceIdiom. I hope this helps someone!

提交回复
热议问题