Wednesday, 26 September 2018

Xcode 10: App Installation failed. No code signature found

I recently upgraded to Xcode 10 and began the process of updating our app to switch 4.2 After a day or so of rebuilding 3rd party frameworks and adding in workarounds to various issues, I was able to run our app on the new simulators.

However, when I tried running on my personal phone (running iOS 12.0 GM) I ran into an error when installing the app as described in the title.

I know that there are a lot of already answered questions regarding this topic on SO & the Internet, however I was unable to get any of these to work.

It's been blocking me for around a day & a half now so I was wondering if anyone had any insight into how this could be mitigated.

Here are the steps I've take so far that have not worked (perhaps they will work for others in the future!):

  1. Clearing derived data
  2. Deleting and re-downloading all provisioning profiles on my computer
  3. Cleaning the build directory (cmd + k & cmd + shft + k)
  4. Deleting the original app from my phone
  5. Restarting Xcode (Version 10.0 (10A254a) [the GM])
  6. Restarting my Mac (Macbook Pro 2018 running macOS High Sierra)
  7. Restarting my device (iPhone X running iOS 12.0 GM)
  8. Many various combinations of the above, including all at once
  9. Re-generating provisioning profiles for the app on developer.apple.com (we use manual signing)
  10. Deleting and recreating provisioning profiles for the app on developer.apple.com
  11. Sacrificed a goat to Tim Cook
  12. Ensuring the signing certificate matches the provisioning profile
  13. Deleting the old version of Xcode from my computer & insuring command line tools are on the xcode 10.0 gm version
  14. Deleting & reinstalling Xcode 10.0 GM
  15. Ensuring all copied frameworks have code sign on copy checked
  16. Rebuilding all frameworks via Carthage using the swift 4.2 compiler (remember, it all works on the simulator).
  17. Ensured code signing required is set to YES in the SDKSettings.plist
  18. deleted all old signing certificates on my computer
  19. Deleted & recreated certificates on developer.apple.com
  20. Removed & re-added my device to developer.apple.com
  21. Changed code signing from manual to automatic

Any help would be greatly appreciated :)

Update: I tried redownloading and rebuilding from the ground up on a fresh machine, and the same issue occurs. Interestingly I can archive and validate the app just fine.

Also tried signing an empty project with the same bundle ID and it worked fine. So the issue is either in our 3rd party frameworks or some weird setting that got enabled while transitioning from Xcode 9.4. Going to start removing 3rd party frameworks one by one until I can get this to compile.



from Xcode 10: App Installation failed. No code signature found

No comments:

Post a Comment