I’m running a script to generate an ipa file from Xcode. While invoking the xcodebuild a prompt is displayed saying “macOS wants to make changes.Enter an administrator’s name and password to allow this.” If the credentials are entered the ipa file will be generated. If not the ipa will not be generated.
I figured out that the prompts are displayed because of the “Apple Worldwide Developer relations Intermediate Certificate which expires on Feb 7 2023”. Is there any way we can bypass this and the build and automatically generate the ipa without having to enter the keychain credentials ?
Question posted in Xcode
Whether you're new to Xcode or an experienced developer, our archive has everything you need to know about this integrated development environment (IDE). From basic functionalities to advanced features, our archive covers a wide range of Xcode-related questions and answers. Browse our archive now and find solutions to your Xcode questions, and take your app development skills to the next level
Whether you're new to Xcode or an experienced developer, our archive has everything you need to know about this integrated development environment (IDE). From basic functionalities to advanced features, our archive covers a wide range of Xcode-related questions and answers. Browse our archive now and find solutions to your Xcode questions, and take your app development skills to the next level
3
Answers
Under the Keychain application, go to the private key associated with your developer certificate. Then do
key > Get Info > Access Control
. Down there, make sure your application (Xcode) is in the listAlways allow access by these applications
and make sureConfirm before allowing access
is turned of, same forAsk for Keychain password
.To fix this, simply select the distribution certificate that you need for signing your app in the Keychain application. Select the cert > Get Info > Trust. Then select Always Trust in the drop down and enter password to make this change permanent.
You might have put your certificates in the wrong group. I’m guessing you have put it into the "System" group. Then it will always prompt you to input username and password. You can solve this by removing it from "System" and then adding it to the "Login" group. I had this problem 10 minutes ago, and I solved it by doing this.