Xcode Won't Let to Build for Device After Denying Codesign to Access Keychain

Xcode won't let to build for Device after denying Codesign to access Keychain

I found a solution for that. If that error occurs, only you have to do is just lock the keychain (click on lock in the left upper most corner). Then build again. It will ask to unlock again like first time and Let you to choose always allow or allow or deny in Codesign keychain access. Just type account (Mac User account) password and click on always allow. Then project will build successfully.

App won't run on iPhone after denying keychain access

Had the same problem last weak its a pain in the a..

Solution:

1- Delete ~/Library/Preferences/com.apple.security.plist

2- Reboot

3- Solved!

PD: if still complains just download the provisional profile again or if automatic then change to none and back to yours again.

Where is the option saved for always allowing codesign'ing with a particular key?

For Xcode in particular, it happened to me to pressed Deny by mistake when asking access for codesign access. Here is how I did to solve my issue:

  • Open to the keychain
  • look for the key com.apple.gs.xcode.auth.com.apple.account.AppleIDAuthentication.token
  • open it
  • click on the Access Control tab
  • at the bottom there's Always allow access for these applications: -> add Xcode in the list
  • Don't forget to press Save Changes

Sample Image



Related Topics



Leave a reply



Submit