Sign APK without putting keystore info in build.gradle

The nice thing about Groovy is that you can freely mix Java code, and it’s pretty easy to read in a key/value file using java.util.Properties. Perhaps there’s an even easier way using idiomatic Groovy, but Java is still pretty simple. Create a keystore.properties file (in this example, in the root directory of your project next … Read more

“User interaction is not allowed” trying to sign an OSX app using codesign

I too have been fighting this. Nothing helped until I tried the suggestion on http://devnet.jetbrains.com/thread/311971. Thanks ashish agrawal! Login your build user via the GUI and open Keychain Access. Select your signing private key, right-click, choose Get Info, change to the Access Control tab and select the “Allow all applications to access this item”.

/usr/bin/codesign failed with exit code 1

Update: The Technical Note in my original answer is now deprecated. Apple posted a collection of code signing problems (and some solutions) in a new document: Technical Note TN2407 Code Signing Troubleshooting Index Check the CODE_SIGN_IDENTITY property in your build settings. Is your provisioning profile selected there? You also need to enter a valid bundle … Read more

Xcode 7 error: “Missing iOS Distribution signing identity for …”

From Apple – Thanks for bringing this to the attention of the community and apologies for the issues you’ve been having. This issue stems from having a copy of the expired WWDR Intermediate certificate in both your System and Login keychains. To resolve the issue, you should first download and install the new WWDR intermediate … Read more

Provisioning profile doesn’t include the application-identifier and keychain-access-groups entitlements

This issue is related to Bug 1534145. SSL.com: P-384 curve / ecdsa-with-SHA256 certificates. A representative from Apple estimated 558,000 certificates to become invalidated: Bug 1533655. DigiCert: Apple: Non-compliant Serial Numbers GoDaddy, Google, Apple and Facebook (that would explain why Facebook was glitchy today) are affected. They are working on resolving the issue right now. That … Read more

Code signing is required for product type ‘Application’ in SDK ‘iOS 10.0’ – StickerPackExtension requires a development team error

Holy molly, I had to do all this in order for it to work. A picture is worth a thousand words. If you get this error while archiving then continue reading. Go to your app and click on the general tab. Under the signing section, uncheck “Automatically manage signing”. As soon as you do that … Read more

How do I create a self-signed certificate for code signing on Windows?

Updated Answer If you are using the following Windows versions or later: Windows Server 2012, Windows Server 2012 R2, or Windows 8.1 then MakeCert is now deprecated, and Microsoft recommends using the PowerShell Cmdlet New-SelfSignedCertificate. If you’re using an older version such as Windows 7, you’ll need to stick with MakeCert or another solution. Some … Read more