我想通过终端将 Xcode 项目安装到 iOS 设备中。我知道如何使用xcodebuild clean install这个命令构建应用程序。我想在设备中启动应用程序。请任何人帮助我完成这项任务?
我已经尝试了一些成功执行的命令,但是现在当我尝试执行以下命令时出现以下错误。
xcodebuild -target "GoldenGate" -sdk "iOS 6.1" -configuration Release
导出 DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer/
PROJECT="GoldenGate" SIGNING_IDENTITY="iPhone 开发者:Deepak Shukla" PROVISIONING_PROFILE="${WORKSPACE}/E6FD2816-7827-41AA-AC7E-2DC4833E637C.mobileprovision"
ARCHIVE="$(ls -dt ~/Library/Developer/Xcode/Archives/ /${PROJECT} .xcarchive|head -1)"
IPA_DIR="${WORKSPACE}" DSYM="${ARCHIVE}/dSYMs/${PROJECT}.app.dSYM" APP="${ARCHIVE}/Products/Applications/${PROJECT}.app"
/bin/rm -f "${IPA_DIR}/${PROJECT}.ipa"
/usr/bin/xcrun -sdk iphoneos PackageApplication \ -o "${IPA_DIR}/${PROJECT}.ipa" \ -verbose "${APP}" \ -sign "${SIGNING_IDENTITY}" \ --embed "$ {PROVISIONING_PROFILE}"
嵌入'/E6FD2816-7827-41AA-AC7E-2DC4833E637C.mobileprovision'
- /bin/rm -rf /var/folders/wv/kv98qhfj6v36b2h0fkf_l66w0000gn/T/ouA93u702I/Payload/GoldenGate.app/embedded.mobileprovision 程序 /bin/rm 返回 0 : []
- /bin/cp -rp /E6FD2816-7827-41AA-AC7E-2DC4833E637C.mobileprovision /var/folders/wv/kv98qhfj6v36b2h0fkf_l66w0000gn/T/ouA93u702I/Payload/GoldenGate.app/embedded.mobileprovision 程序 /bin/cp 返回 1:[cp :/E6FD2816-7827-41AA-AC7E-2DC4833E637C.mobileprovision:没有这样的文件或目录]错误:无法将“/E6FD2816-7827-41AA-AC7E-2DC4833E637C.mobileprovision”复制到“/var/folders/wv/kv98qhfj6v36b002h0gn/fkf_l6 T/ouA93u702I/Payload/GoldenGate.app/embedded.mobileprovision'
请帮助我完成这项任务。