How can I codesign an app without being in the mac developer program?

前端 未结 3 1558
青春惊慌失措
青春惊慌失措 2021-01-03 13:40

When I try the following:

mba:Utilities ryan$ sudo codesign -fs /Applications/Utilities/Boot\\ Camp\\ Assistant.app/

I get this error:

3条回答
  •  粉色の甜心
    2021-01-03 14:31

    You need to create a self-signed certificate.

    1. Open Keychain Access.
    2. Choose Keychain Access > Certificate Assistant > Create Certificate ...
    3. Enter a name
    4. Set 'Certificate Type' to 'Code Signing'

    Then, your command should look like this, if your certificate name is my-new-cert:

    sudo codesign -fs my-new-cert /Applications/Utilities/Boot\ Camp\ Assistant.app
    

    This works on OS X 10.10 Yosemite.

    Instructions from here: http://support.apple.com/kb/PH7173

提交回复
热议问题