gpt4 book ai didi

从终端生成 ios 应用程序 ipa

转载 作者:行者123 更新时间:2023-11-28 22:00:29 25 4
gpt4 key购买 nike

我正在尝试从终端构建 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多分钟了。我在这里缺少什么?

最佳答案

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}"

关于从终端生成 ios 应用程序 ipa,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25259284/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com