How do I add authorizations to code sign an app from new keychain without any human interaction

前端 未结 6 1927
甜味超标
甜味超标 2021-02-01 08:09

I\'m trying to automate the process of building iphone apps with a particular certificate. So imagine if different users uploaded their cert into the system and it was immediate

6条回答
  •  长发绾君心
    2021-02-01 09:02

    Regarding dialogs that pop up each time you use a private key in your Keychain, this apple script will take care of the similar alert that pops up the very first time you request permission to use a private key.

    #!/usr/bin/osascript
    tell application "System Events"
      tell window 1 of process "SecurityAgent"
        click button "Always Allow" of group 1
      end tell
    end tell
    

    codesign wants to use key

提交回复
热议问题