iPhone app crash immediately after update

前端 未结 5 713
终归单人心
终归单人心 2021-02-09 04:48

today my app update it has been released in the store, when updated or downloaded for the first time the app immediately crash on start.

I\'ve tested the app on simulato

相关标签:
5条回答
  • 2021-02-09 04:52

    Try deleting any old versions of the app you have on your device, and reinstall. Also try on a different device, maybe with a different apple id to your developer account.

    0 讨论(0)
  • 2021-02-09 05:12

    If you are using core data & you have updated database in your latest version without versioning core data in that case app crashes on launch after update.

    0 讨论(0)
  • 2021-02-09 05:13

    This happened to our app also, and apparently, other apps too. Apple is aware of the problem and is currently working on a solution.

    see this article: http://techcrunch.com/2012/07/05/apple-responds-to-app-crashing-issues-has-a-dedicated-team-working-on-a-fix/

    0 讨论(0)
  • 2021-02-09 05:14

    Here's the best way to test a production build without deploying to the store:

    • Set your build Scheme to "iOS Device"
    • Do an Archive build
    • Select your archive and click Distribute
    • Choose "Save for Enterprise or Ad-Hoc Deployment"
    • Pick your code signing cert
    • After saving the ipa file, use Apple's iPhone Configuration Utility(*) to install it on your device

    You should always perform two tests:

    • installing on a blank device after uninstalling your app *and any profiles in Settings -> General -> Profiles"
    • installing over the top of the previous version of your app, to make sure any files/preferences/etc are properly converted to the new format

    (*) the iPhone Configuration Utility is mostly used for enterprise app deployment, but it's also useful for developers and is available as a free download for mac and windows at support.apple.com. You can also use iTunes instead, but it's convoluted.

    As for why your app is crashing? No idea... it could be anything. Standard debugging advice applies.

    0 讨论(0)
  • 2021-02-09 05:16

    The issue is related to the Framework. I had this exact error. It wasn't a case of logic as it was crashing before the AppDelegate was even called and my usage of NSMetadataQuery was much later in the life cycle than that.

    It turns out that weak linking the Foundation framework was required.

    Problem was solved by changing (under the Project Info in Xcode) the dependency option of the Foundation.framework from required to optional. Check for any such frameworks.

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