Is there a way to remove the authorization prompt from command-line instances of Instruments (Xcode)?

前端 未结 11 1036
南笙
南笙 2020-12-02 07:53

I am currently using Instruments via a bash script to initiate the command-line interface to start up runs of the Automation plug-in.

With 4.2, this worked well en

11条回答
  •  被撕碎了的回忆
    2020-12-02 08:39

    Here's a wonderful command that may work for you:

    security unlock-keychain -p [password] "${HOME}/Library/Keychains/login.keychain"
    

    It's the command-line way to gain access to a keychain on the Mac. I haven't tested it with Automation, but it's how I've integrated my iOS builds with Jenkins.

    (Replace [password] with the password)

提交回复
热议问题