Application could not be verified error when building app for iPhone device

后端 未结 11 767
后悔当初
后悔当初 2020-12-08 13:30

OK, I\'ve just got myself a shiny new MacBook Pro, and having been developing my iPhone app on another MacBook, I wanted to migrate my development to my new computer.

<
相关标签:
11条回答
  • 2020-12-08 13:48

    I know you've already checked some of this, but just so this answer is complete:

    • Check that the new provisioning profile and certificate is named at the target level for each build setting you want to install on the device.
    • Code Signing Entitlements must also be defined at the target level, not the project.
    • Double check your build log, looking for a line that includes CodeSign. Verify it is there and using the certificate you expect.
    • If all else fails, remove the code signing identity from your target, clean all targets, delete any build directories from your project, quit and restart Xcode, replace the code signing identity, and try your build again.
    0 讨论(0)
  • 2020-12-08 13:48

    One important but easy to overlook item: make sure all your provisioning keys & certs are on the login keychain. I ran into this when I tried to create a new "development" keychain and all my profiles became "invalid".

    0 讨论(0)
  • 2020-12-08 13:49

    My problem was actually that I already installed the app via a testflight on my phone, after removing the app it worked!

    0 讨论(0)
  • 2020-12-08 13:50

    Going into Window > Devices and looking at the Installed Apps, I was able to find out that my app was already installed. Select the app and hit '-' to remove it from the device. Try rebuilding your app with that device as the target.

    Worked for me, even though from the phone I couldn't find where the app was installed!

    0 讨论(0)
  • 2020-12-08 13:52

    In addition to verifying the code signing, be sure to go to the Build menu and run "Clean all targets". Xcode gets mixed up from time to time.

    0 讨论(0)
  • 2020-12-08 13:58

    Problem solved (at least for me!)

    Export Developer profile on machine that works, then import on machine with the problem. Done through Preferences/Accounts, Gear icon on the bottom.

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