0

I have an Xcode project which I built, deployed and released successfully for more than a year. Today, while working on it, Xcode popped up a permission dialog for accessing a keychain item. Stupid me hit the escape key. Starting from this time, all attmepts to run the project on a device failed with the error A valid provisioning profile for this executable was not found.

So somehow I seem to have locked Xcode from accessing the provisioning profile data in the keychain. Is there a way to let Xcode re-ask me for access permission?

The project is configured to "automatically manage signing"; I have selected the correct team, and the provisioning profile info in the project settings shows all checkmarks, no issues.

So far I tried:

  • unpair the device
  • restart Xcode
  • restart computer
  • remove and re-add dev account (as suggested in the comments, thx @Paulw11)
  • change the bundle id (as suggested in the comments, thx @matt)
  • lock/unlock keychain (as suggested in the answer linked by @matt, thx again)

Please not, this question is not a duplicate of the many questions about how to run an app which contain the same error message (e.g. this one). My project setup is sound and used to work for months, and the current state of the codebase was runnable on a device 15 minutes ago, before the damn keychain popup incident.

Oh, and P.S.: I hate Xcode. Feel free to downvote me for this outburst of emotion, but it's a fact.

dr_barto
  • 5,723
  • 3
  • 26
  • 47
  • Try removing and reading your developer account in Xcode settings – Paulw11 Oct 20 '18 at 21:46
  • Try changing your bundle id. – matt Oct 21 '18 at 00:25
  • @Paulw11tried it, had no effect – dr_barto Oct 21 '18 at 10:48
  • @matt tried your solution too, had no effect either. I also tired the "duplicate" answer you linked to, no success as well. So please unmark the duplication so others can have a look at my question... – dr_barto Oct 21 '18 at 10:51
  • What about reverting to the Legacy Build System? – matt Oct 21 '18 at 11:20
  • @matt thanks for the tip... any hint on how to do so? :) I did a quick research but only found some outdated 3rd party tools for deploying an .ipa to a device. – dr_barto Oct 21 '18 at 11:37
  • @matt got it, I had missed the 2nd "duplicate" link (which actually describes the very same issue I'm facing) where this is explained. I tried to change the build system in the workspace settings, interestingly I was already using the "legacy" mode; tried to switch to "new" build system. During the build Xcode actually asked me again for keychain access permissions; but, once the build succeeded, it failed again when trying to deploy to the device. – dr_barto Oct 21 '18 at 11:45
  • @matt update: finally got it working thanks to your hint about the build system settings, combined with a Clean and manually deleting derived data. Thanks a lot! – dr_barto Oct 21 '18 at 11:53

0 Answers0