App Crashes Only On Testflight Build

前端 未结 11 2122
北海茫月
北海茫月 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:03

    In my case, changing Legacy Build System to New Build System (for Xcode 10) solves my issue where Testflight build behaves differently. Might be helpful to someone.

    0 讨论(0)
  • 2020-12-13 04:04

    I solved the issue by changing the swift compiler optimization from fastest to none. I'm not sure if this is an ideal long term solution, but the build no longer crashes.

    0 讨论(0)
  • 2020-12-13 04:04

    Release build actually takes a different entitlement file than debug build entitlement while debugging in local.

    While uploading an archive build it will take release build settings and release entitlement file by default. Make sure you have all the release settings correctly edited in the configurations.

    0 讨论(0)
  • 2020-12-13 04:05

    I guess its a swift compiler issue. To verify first go to Edit Scheme then change the Build configuration to Release mode in Run tab and then install the build locally. You will get to know where exactly its crashing.

    0 讨论(0)
  • 2020-12-13 04:05

    For all those who face this similar issue, can follow these steps

    Go to Xcode->widows->organiser then select crashes tab then select your app. If you have added your apple account in Xcode->preferences-> accounts then you Xcode will download all crash reports even for the testflight build.

    It will have the stack trace you don't need to symbloicate it like old times. PS:- the most common which I have seen is UISearchDisplayController issue

    0 讨论(0)
  • 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!

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