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

后端 未结 9 707
天命终不由人
天命终不由人 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-02 09:02

    To add to the previous answers.

    • Instruments is complaining about the signing identity.
    • I believe it is preferable to profile in release mode, for the same reasons given by Zolten. (take into account the compiler optimizations, and have the exact experience your users will, etc...)
    • To change your code signing identity for Xcode 6:
      • Click on your Project, Select the Target you are Profiling.
      • Build Settings -> Code Signing -> Code Signing Identity -> Release
      • Select your iOS developer profile.
    • Provisioning Profile: Let Xcode pick the correct Provisioning Profile for you, e.g: switch to Automatic
    • When you are done with the Profile, switch back to your normal settings.

    Here's a picture for those who are very visual ;)

    enter image description here

提交回复
热议问题