如何使用'cordova build ios --release'部署(创建.ipa)iphone应用程序? [英] How can I deploy (create .ipa) iphone app using 'cordova build ios --release'?
问题描述
我已使用 cordova 的'helloworld'iOS应用程序。 0 / guide_cli_index.md.html>文档。当我运行 cordova emulate ios
时,应用程序会成功运行。我不能做,是在部署时,当我运行 cordova build --release
。它不会在那里创建任何 .ipa
文件。我找到的是 PROJECT_ROOT / platforms / ios / build
目录中的 Helloworld.build
文件。
I have created a 'helloworld' iOS app with cordova
using there documentation. The app successfully runs when I run cordova emulate ios
. What I can't do, is while deploying when I run cordova build --release
. It doesn't create any .ipa
files there. All I find is a Helloworld.build
file in the PROJECT_ROOT/platforms/ios/build
directory. Am I missing something here?
推荐答案
我发现这个命令对我有用:
I found this command which worked for me:
cordova build ios --device
cd platforms/ios/build/device
/usr/bin/xcrun -sdk iphoneos PackageApplication "$(pwd)/$PROJECT_NAME.app" -o "$(pwd)/$PROJECT_NAME.ipa"
: http://www.splinter.com.au/xcode- 4-command-line-builds-of-iphone-apps /
我运行了@MD。 Mohiuddin Ahmed的Ruby脚本,这将改变我的xcodeproj文件。
I did run @MD. Mohiuddin Ahmed's Ruby script first, which would have changed my xcodeproj file. I'm not sure if that was necessary but I don't think so.
通过添加 cordova build编辑以澄清过程
命令。
这篇关于如何使用'cordova build ios --release'部署(创建.ipa)iphone应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!