Parsing mobileprovision files in bash?

后端 未结 6 609
一个人的身影
一个人的身影 2020-12-02 14:32

I am tying building a php/bash/mysql system for automating adhoc distribution for iPhone apps. But I want to read the application-identifier key in mobileprovision file of p

6条回答
  •  感动是毒
    2020-12-02 15:28

    I used the code from mobileprovision-read repository to be able to pull information from the mobileprovision file. This uses macOS APIs to read the file.

    Here is the usage from running the generated program:

    mobileprovision-read -- mobileprovision files querying tool.
    
    USAGE
    mobileprovision-read -f fileName [-o option]
    
    OPTIONS
        type – prints mobileprovision profile type (debug, ad-hoc, enterprise, appstore)
        appid – prints application identifier
    Will print raw provision's plist if option is not specified.
    You can also use key path as an option.
    
    EXAMPLES
    mobileprovision-read -f test.mobileprovision -o type
        Prints profile type
    
    mobileprovision-read -f test.mobileprovision -o UUID
        Prints profile UUID
    
    mobileprovision-read -f test.mobileprovision -o ProvisionedDevices
        Prints provisioned devices UDIDs
    
    mobileprovision-read -f test.mobileprovision -o Entitlements.get-task-allow
        Prints 0 if profile doesn't allow debugging 1 otherwise
    

提交回复
热议问题