Xcode 8 no code signature found

Martin Polak picture Martin Polak · Sep 18, 2016 · Viewed 7.5k times · Source

After I upgraded to Xcode 8, I am unable to debug on the device due to the following error:

App installation failed. No code signature found.

My setup, observations and what I've tried so far:

  • The device has iOS 10 installed
  • Code signing and debugging on the device in Xcode 7 works (no changes made to the code signing)
  • The app has a watch app (build/run without watch app didn't change anything)
  • Refreshing provisioning profiles, removing all of them and redownloading them didn't change anything
  • Removing ALL code signing setup from the build settings and enabled "automatically manage signing", which also didn't help
  • I'm always cleaning the build folder
  • I've tried restarting the device, xcode, the mac
  • My colleague reports the same issue with the same project
  • I've tried reverting the changes Xcode 8 suggested (build settings, warning fixes, ...)

Answer

user2031805 picture user2031805 · Sep 20, 2016

older answer is wrong

I got the same problem here, I have five project, and the four of them can not debug on device and only one can debug on device. I compared the Xcode project files and did not figure it out. I believe it is a provisioning profile issue. it seem that the Xcode will generate the development provisioning profile in your Xcode and did not upload it to your apple developer account.


update:

I finally solve my problem, it seems like a third framework manual set the codesign identity or privisioning profile in the signing seciton of build setting. then you install this third framework, in the codesigning phase, Xcode will search the non-existing codesign identity or privisioning profile for this framework, then it failed.