Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 7 with El Capitan unable to sign binary for export - can't press "allow" button

I'm running into an issue where a Mac OSX 10.11 El Capitan is unable to codesign a binary for adhoc distribution. The issue is bizarre:

  • I've transferred a distribution cert on this mac
  • XCode asks me if it can use a private key to sign the ipa
  • Clicking on "allow" or "always allow" does nothing, the password box does not shake for wrong password.

As a result, I'm unable to export an IPA (this private key has never been used before on this Mac).

How do I fix "unable to click allow or always allow" issue with Xcode7 / El Capitan?

Attempting to set the distribution cert to "always allow" fails within keychain assistant as well: enter image description here

like image 575
Alex Stone Avatar asked Oct 02 '15 18:10

Alex Stone


2 Answers

El Capitan does not allow software to click the "Allow" or "Always Allow" buttons for security reasons. If you are running software that intercepts mouse events such as MagicPrefs, this may register as a software click. Try disabling any software that reads mouse events, or using a standard USB mouse.

I found the answer here: https://forums.developer.apple.com/thread/25092 and here: https://discussions.apple.com/thread/7305746

like image 175
BFeher Avatar answered Sep 29 '22 18:09

BFeher


Not a complete solution but I was able to work around this by booting into Safe Mode and building from there. While in Safe Mode I also added the Xcode application to the keychain item and now it doesn't ask for permission anymore.

like image 28
Kross Avatar answered Sep 29 '22 18:09

Kross