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

后端 未结 9 706
天命终不由人
天命终不由人 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
    2020-12-02 08:50

    I realised what "At least one target failed to launch" means. It appears that both the development and release schemes (if you have a debug scheme and a release scheme) must have a development identity.

    I had the debug scheme selected when running the profiler and the message at the top of XCode said "Running debug". However, it seems that this is not sufficient.

    I changed my release scheme code-signing identity to be the same as the debug scheme (and also the provisioning profile), and the problem went away.

提交回复
热议问题