Application installation error after upgrading to Xcode 8

My applications will not be installed for a long time on my devices in my development environment after installing Xcode 8 with an error: the application installation failed. "No valid provisioning profile for this executable was found."

I saw here a few questions on this issue, and I slowly went through all the answers, but to no avail. I thought it could be ios10, but I keep one of my devices on ios9, and that also does not work.

What I've done:

  • Ive switched between Xcode automatically processing the signing and doing it manually, setting all the profiles to "Development".
  • Ive deleted all provisioning profiles and restarted them.
  • Ive tried to go to the developer's portal, manually regenerating configuration profiles and their use.
  • When I check the information next to the Xcode managed profile, β€œDevices,” my current device is listed.
  • Enable and disable push notification services. (I do not use push notifications).
  • The push notification services in my application ID in the development portal are also disabled.
  • Deleted training profiles from the devices themselves to the Devices.
  • Removed all old certificates in my keychain.
  • Updated all my cocoa pods.
  • Repeatedly rebooted and performed many different steps in different orders.
  • Recently, I had to enable key sharing, because my application no longer wanted to get the access token used for oAuth from the keychain, but turning this effect on or off had no effect.
  • Besides the recently changed keychain access, I have no other rights.
  • With access to the key chain, I also created an application group in and make sure that it is configured for my key group. No difference

Ive got stuck on this today and really threw away my next release, since I need to test on real devices, the error message is vague when everything seems to be in place, I skip the log file somewhere, what can give me a hint?

+6
source share
5 answers

I fixed it. I suddenly noticed that XCTest is being copied to the phone. Looks like my test goal is also set? I did not think that this would happen when creating and launching my application, code signing was not required before, of course, it was not installed.

I set a testing goal for automatic signing management, and now it works! Hope this helps someone else.

+13
source

I fixed it after I unchecked the "Automatically manage signature" checkbox in the test target.

+4
source

Try:

  • Delete DerivedData / Finder β†’ Go β†’ (while holding the β€œOptions” key) Library β†’ Developer β†’ Xcode β†’ delete the DerivedData folder /
  • Set Automatic Training Profile
  • Set Release to Distribution , not Developer
  • Clean

This model worked for me, I hope that it works for you too.

+1
source

Xcode 8.3.3:

Had the same problem.

tried to remove Derived Data, the cleanup project, changed the development team back and forth, manually setting the prov profiles, nothing helped. Fixed at the end by restarting Xcode: /

0
source

try this command in terminal

 rm -rf "$(getconf DARWIN_USER_CACHE_DIR)/org.llvm.clang/ModuleCache" rm -rf ~/Library/Developer/Xcode/DerivedData rm -rf ~/Library/Caches/com.apple.dt.Xcode 
0
source

All Articles