Can't launch my app in Instruments: At least one target failed to launch

后端 未结 9 689
天命终不由人
天命终不由人 2020-12-02 07:57

I have all my code signing entitlements set correctly. Running the app on my phone is fine, but launching it in instruments gives me an error message:

Error          


        
9条回答
  •  一整个雨季
    2020-12-02 08:56

    It is saying that you need to sign the app with a developer certificate (not a distribution certificate).

    In Xcode 5 just change the "Provisioning Profile" field for your "Release" build in the Build Settings to your developer certificate instead of your distribution certificate. For the duration of the testing anyway. Xcode doesn't allow you to build with a distribution certificate.

    Make sure that the project build settings do not override the target build settings or make the change in your project build settings.

    Don't forget to set the profile back after you're done with the testing.

    I do not recommend harrywynn's method, since it is better to profile the release build because then you are taking into account the compiler optimizations, and having the exact experience your users will.

提交回复
热议问题