Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

App Installation failed after upgrade to XCode 8

My apps will no long install on my devices in my development environment after installing Xcode 8 with the error : App installation failed “A valid provisioning profile for this executable was not found.”

I’ve seen quite a few questions here on the subject and I’ve slowly gone through all the answers but to no avail. I thought it might have been ios10 but I keep one of my devices at ios9, that one don’t work either.

What I’ve done :

  • I’ve switched between Xcode automatically handling signing and doing it manually, setting all the profiles to “Development”.
  • I’ve deleted all the provisioning profiles and redownloaded them.
  • I’ve tried going to developer portal, manually regenerating the provisioning profiles and using them.
  • When I check the info next to the XCode managed profile, under “Devices”, my current device is listed.
  • Turned on and off the Push notification services. (I don’t use push notifications).
  • Also disabled push notification services on my App ID in the development portal.
  • Removed the provisioning profiles from the devices themselves in the Devices Window.
  • Deleted all old certificates in my keychain.
  • Updated all my cocoa pods.
  • Restarted countless times and did many of the different steps in different orders.
  • I recently had to turn on keychain sharing as my app no longer wanted to retrieve an access token used for oAuth from the keychain, but turning that on or off had no effect either.
  • Other than the recently changed keychain access, I have no other entitlements.
  • With the keychain access, I also created an app group in the development portal and made sure it was set for my keychain group. No difference

I’ve been stuck on this a day now and it’s really pushing back my next release as I have to test on real devices, the error message is frustratingly vague when everything seems in place, am I missing a log file somewhere that might give me a hint?

like image 308
George Brown Avatar asked Sep 21 '16 11:09

George Brown


2 Answers

I fixed it. I suddenly noticed XCTest was being copied over to the phone. It looks like my testing target is also being installed? I did not think that would happen when building and running my app, code signing was not required before, it certainly wasn't set.

I set the testing target to also Automatically manage signing and now it works! I hope this helps someone else.

like image 96
George Brown Avatar answered Oct 14 '22 09:10

George Brown


I fixed it after I deselected the 'Automatically manage signing' in the testing Target.

like image 26
石川炜 Avatar answered Oct 14 '22 08:10

石川炜