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

后端 未结 7 1275
野的像风
野的像风 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:40

    Use fastlane sigh to install a particular provisional file or you can create a new one.

    fastlane sigh renew --adhoc -n "provisional-profile-name" --app_identifier "app-identifier" -u "user-name" --ignore_profiles_with_different_name
    

    provisional-profile-name is just name of the profile, doesn't contain the .mobileprovision extension.

    To create a new adhoc profile with all the device UUIDs added,

    fastlane sigh --adhoc --app_identifier "app-identifier" -u "username"
    

    Fastfile,

    lane :build do
    
    sigh(
    adhoc: true,
    app_identifier: "***APP_ID**",
    provisioning_name: "**Profile_name**",
    username: "Apple_ID",
    force: true,
    skip_certificate_verification: true,
    )
    
    
    gym(
    #export_options: "exportPlist.plist",
    scheme: "**scheme-name**",
    export_method: "ad-hoc",
    xcargs: "PROVISIONING_PROFILE=$SIGH_UUID",
    )
    end
    

提交回复
热议问题