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?
相关问题
- Should I use CSS3 media queries to deliver differe
- apk big size with ionic 4 build
- How to read file in android using PhoneGap Javascr
- ClickOnce updates all files. Why?
- Ionic start give error: There was an error with th
相关文章
- Could I create “Call” button in HTML 5 IPhone appl
- Override env values defined in container spec
- Phonegap - Error - Keystore alias not recognized
- Can't use serve with Cordova / Phonegap hellow
- What is a good way to deploy a Perl application?
- ionic - Copy/paste in input field in iOS 10 not wo
- PhoneGap iOS 7 and localStorage
- deviceready not firing in cordova
You can try a new tool from http://fir.im.
They have a fir cli tool written in ruby. You can install it with the following command:
Sign up an account (all free like the good old testflight) and get a token from your profile. From your command prompt run:
Provide your token.
CD into your directory where your .xcodeproj located.
After a while (if the build success) you will find your ipa in your ./build_ipa folder.
I found this command which worked for me:
Source: http://www.splinter.com.au/xcode-4-command-line-builds-of-iphone-apps/
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.
Update for XCode 8: As a commenter has noted,
PackageApplication
has been removed from XCode 8. To update the process, see the question: What's the replacement for Xcode's PackageApplication?Edited to clarify process by adding
cordova build
command as suggested by comments.If you are using cordova ios 3.9.0 or newer, you can use this command to create the
.ipa
directly from the CLI with no extra commands:You'll need a
build.json
file on the root of your projectTo get the UUID I open the
.mobileprovision
file on a text editor and search for 'UUID', not sure if there is an easier way of finding it.If using Xcode 8 the
build.json
needsdevelopmentTeam
field andpackageType
field, but not longer need the provisioning profile, also, thecodeSignIdentity
should beiPhone Developer
for both debug and release:http://cordova.apache.org/docs/en/6.x/guide/platforms/ios/index.html#using-buildjson
I finally figured out a way to automate this by using xcodeproj, xcode and this ruby script :
And then in the
PROJECT_ROOT/platforms/ios/
directory this command helped me to generate my*.ipa
:Thought we can sign our .ipa later on :)