-
Notifications
You must be signed in to change notification settings - Fork 985
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cordova run does not work #486
Comments
If you're codesigning with automatic provisioning, you must create an archive and then export it 😞 |
Thanks for the comment @dpogue . To get the .ipa file, as you mentioned, I must create an archive and then export it. On the other hand, ios-deploy needs .app package, not the .ipa file. I can get .app package by unzipping .ipa file (.app package can be found in Payload directory) as cordova/lib/run.js. Now I care about all |
It looks to me like you applied a workaround to the issue with |
Thanks for the comment @brodybits . |
…ive according to cordova run and cordova build respectively
I just discovered this same issue in #488 (comment) (but I just used fs.unlinkSync) |
The related ios-deploy issue: ios-control/ios-deploy#364 |
The ios-deploy issue is a false alarm -- it needed the flag |
@shazron Thanks. As you said, This issue is solved by your other PR #494 |
When doing
cordova run
, the following errors happened.shelljs.rm
introduced by the commit/4694547bcc360c4c68331285593e69aae7232752 can not remove symbolic linkApplication.app
(HelloCordova.app
in this case) due to the specification ofshelljs
itself. Therefore cordova/lib/run.js can not remove the symbolic linkApplication.app
(HelloCordova.app
) in cordova/build/device (or cordova/build/emulator) and the errors happen.If we modify
by
in cordova/ib/run.js,
cordova run
works successfully with xcode 9.However, with xcode 10, there is another issue.
cordova run --device
can install the application to the device, but the installed application does not start normally. The following error happen.This is more serious issue.
WIth Xcode 10, we should use
xcodebuild build
command for this sake (cordova run
, i.e. ios-deploy).However, cordova/ios/build.js uses
xcodebuild archive
command andxcodebuild -exportArchive
command to extract.ipa
file from the archive, and then cordova/ios/run.js unzips.ipa
file to get a pacakgeApplication.app
(HereHelloCordova.app
). This works with xcode 9, but this looks not working with xcode 10.I beleive that with Xcode 10 we should use
xcodebuild build
command to getApplication.app
(HelloCordova.app
) package instead of combination of usingxcodebuild archive
,xcodebuild -exportArchive
andunzip .ipa file
.How to reproduce 1st error:
How to reproduce 2nd error:
select xcode 10 by
xcode-select
command,then
modify the code
(about at line 93) in platforms/ios/lib/run.js by
then
The text was updated successfully, but these errors were encountered: