-
Notifications
You must be signed in to change notification settings - Fork 986
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
Fix issue #486. Distinguish xcodebuild build
command and archive
command.
#487
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Travis CI failure on Node.js version 6, apparently since it does not support an object spread
I would also favor a title that better explains the change in behavior, for example: use --nobuild-device
option to fix device build
I would favor taking the issue number out of the title and putting "Resolves #486" or "Closes #486" in either the description or the commit message.
…ive according to cordova run and cordova build respectively
300dff3
to
59c0de0
Compare
Codecov Report
@@ Coverage Diff @@
## master #487 +/- ##
==========================================
+ Coverage 75.66% 75.86% +0.19%
==========================================
Files 11 11
Lines 1796 1790 -6
==========================================
- Hits 1359 1358 -1
+ Misses 437 432 -5
Continue to review full report at Codecov.
|
Thanks for the valuable comment @brodybits . |
@brodybits I have already updated my PR and now my PR passes all CI Checks. |
I'm having trouble at the deploy stage since the
|
I am still having trouble with Xcode 10 not making valid builds, which means the generated .ipa file is wrong. I have a suspicion that the invalid .ipa is why unzipping it and running the .app doesn't work. I'd slightly prefer to try to fix that underlying Xcode 10 build issue before we merge this, because I feel like this PR is fixing a symptom of the problem without fixing the root of the problem. |
@shazron Thanks for the comment. |
@dpogue Thanks for the comment.
I feel this is a root of this problem, just as you said. This may be the Xcode 10's bug. Or Apple chagnes the build specification for some reason. (security reason?) This PR is dirty in this meaning because of inconsistent way of |
The lldb patch in ios-control/ios-deploy#364 (comment) may be the solution. |
The ios-deploy issue is a red-herring. Turns out the .app wasn't built with the |
distinguish
xcodebuild build
andxcodebuild archive
according tocordova build
andcordova run
Platforms affected
cordova-ios
What does this PR do?
Resolve this the #486
shelljs
in cordova/lib/run.js. This is becauseshelljs.rm
can not remove symbolic link.xcodebuild build
atcordova run --device
. Becauseios-deploy
can not work normally with.app
pacakge obtained byxcodebuild archive
andxcodebuild -exportArchive
command.--nobuild-device
is added. This is force skip build process evenwhencordova run --device
.In this PR,
build.js
is called fromrun.js
with the build-actionbuild
. This is because we should use internalxcodebuild build
command to get the.app
package instead ofxcodebuild archive
command with Xcode 10.Before this PR,
cordova run --device
runs as follows.cordova-lib
callsbuild.js
cordova-lib
callsrun.js
with--nobuild
option. => Butios-deploy
does not work normally.After this PR,
cordova run --device
runs as follows.cordova-lib
callsbuild.js
(This build process is unnecessary. Because theios-deploy
does not work normally with the obtained .app package )cordova-lib
callsrun.js
with--nobuild
option. =>run.js
callsbuild.js
with optionbuildFlag: CONFIGURATION_BUILD_DIR=[projectPath]/build/device-run
andbuildAction: build
.Although this PR works with the latest cordova-lib, there is one unnecessary build process.
To remove unnecessary build process, we should update
cordova-lib
. I will send new PR for cordova-lib.What testing has been done on this change?
I checked as follows with both Xcode9 and Xcode10 envrionment.
Checklist