【问题标题】:ios application generation ipa from termminalios应用程序从终端生成ipa
【发布时间】:2014-10-05 05:25:56
【问题描述】:

我正在尝试从终端构建 IPA。我尝试了以下步骤: 第 1 步:

/usr/bin/xcodebuild -target "appname" -sdk "iphoneos" -configuration Release

第 2 步:

/usr/bin/xcrun -sdk iphoneos PackageApplication -v "appname" -o "/Users/Pictures/" -sign "iPhone Developer:xxxxx" --embed /Users//Library/MobileDevice/Provisioning\ Profiles/xxxxxx.mobileprovision"

我没有收到任何错误,但没有收到任何回复。我已经等了30多分钟了。我在这里错过了什么?

【问题讨论】:

    标签: ios build terminal ipa


    【解决方案1】:
    I have given a brief description of steps to follow, and parameters to pass while generating an ipa using terrminal below:
    
    1) Go to the folder which contains the MyApp.xcodeproject file in terminal
    
    2) By using the command given below you will get all the Targets of the application
    
    /usr/bin/xcodebuild -list 
    
    3) After the above command is executed, you will get a list of targets of which you should select a specific target you need to generate .ipa
    
    /usr/bin/xcodebuild -target $TARGET -sdk iphoneos -configuration Release
    
    4) The above command builds the project and creates a .app file.The path to locate the .app file is"./build/Release-iphoneos/MyApp.app"
    
    5) After Build gets succeeded then execute the following command to generate .ipa of the application using Developer Name and Provisioning Profile using the syntax below:
    
    /usr/bin/xcrun -sdk iphoneos PackageApplication -v “${TARGET}.app” -o “${OUTDIR}/${TARGET}.ipa” –sign “${IDENTITY}” –embed “${PROVISONING_PROFILE}”
    
    Explanation of each Parameter in the above syntax:
    
    ${TARGET}.app == Target path (ex :/Users/XXXXXX/desktop/Application/build/Release-iphoneos/MyApp.app) ${OUTDIR} == Select the output directory(Where you want to save .ipa file) ${IDENTITY} == iPhone Developer: XXXXXXX (XXXXXXXXXX)(which can be obtained from Keychain access) ${PROVISONING_PROFILE} == Path to the provisioning profile(/Users/XXXXXX/Library/MobileDevice/Provisioning Profiles/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX.mobileprovision”) 
    
    
    6)ipa will be generated at selected output directory "${OUTDIR}"
    

    【讨论】:

    • 我收到以下错误完成检查原始应用程序 ### 嵌入错误:无法复制 '/Users/firestreamworldwide/Library/MobileDevice/Provisioning\ Profiles/4791f875-2b51-4123-b751-d7ef733594ec .mobileprovision' 到 '/var/folders/jp/fz9g88dx1jb_4d1d35lg09040000gp/T/3_H8_Tgf5n/Payload/DeliveryStream.app/embedded.mobileprovision'
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-01-03
    • 2011-08-11
    • 1970-01-01
    • 2012-08-22
    相关资源
    最近更新 更多