Posts

Post not yet marked as solved
0 Replies
683 Views
Hi, I have a p12 file generated by exporting a cert file, I am trying to install said p12 file from terminal with the following command: security import file.p12 -k keychainname -P *** -A Where file.p12 is the p12 file that already have in the computer, keychainname is the name of my login keychain and *** is the password of the p12 file. The command runs without problems and the cert gets installed in the keychain (checked from interface) The problem is that when I try to archive an aplication using xcodebuild with the following command: xcodebuild -scheme myScheme -archivePath myArchivePath -workspace myworkspace.xcworkspace -quiet archive This command gets to the end of the compilation, but when codesing runs it fails without mutch detail of the reason. What I found is that by opening xcode and making an archive, it gets to the codesign part and a popup opens that request the root password to allow codesign to access the key. That is why the security command has an -A at the end, is supposed to allow all aplications to access the cert, but for some reason the popup is shown. Once I hit always allow, the archive process succeeds from xcode and from xcodebuild. What I want to achieve, it's to avoid the popup step, so all the process from installing the p12 to archive could be done from terminal without the need for opening xcode the first time
Posted Last updated
.