Can an Xcode .mobileprovision file be 'installed' from the command line?

后端 未结 7 1288
野的像风
野的像风 2020-12-22 18:47

I\'m trying to automate the process of building apps for our clients using bash scripts running on a Mac Mini Server (OSX 10.7).

My script is based on the spectacul

7条回答
  •  醉话见心
    2020-12-22 19:28

    Looks like Apple added empty line in the .mobileprovision provisioning profile file below each key-value pair and the grep option doesn't not work anymore.

    Here's how to retrieve it with PlistBuddy and security using a python script

    command = "/usr/libexec/PlistBuddy -c 'Print :UUID' /dev/stdin <<< $(security cms -D -i abc.mobileprovision)"
    uuid = os.popen(command).readline().rstrip('\n')
    

提交回复
热议问题