Skip to content

Changes in App_Resources during prepare triggers a build #2562

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

Closed
petekanev opened this issue Feb 22, 2017 · 1 comment
Closed

Changes in App_Resources during prepare triggers a build #2562

petekanev opened this issue Feb 22, 2017 · 1 comment
Assignees
Milestone

Comments

@petekanev
Copy link
Contributor

petekanev commented Feb 22, 2017

Saving changes in App_Resources immediately after triggering a prepare (by changing javascript sources) triggers a rebuild of the iOS project and crashes the CLI process at Installing...

1)

tns create app251
cd app251
tns platform add ios
tns run ios

2)
Modify main-page.ts without saving, change Info.plist in the resources dir without saving. Save main-page.ts and then Info.plist.

Modify Info.plist in resources directory and save.

The above will trigger a fast prepare followed by a rebuild, the CLI process dies and the device ends up with a black screen/frozen app, and no installed app.

Related issues:

Notes:

  • tested on an Iphone 5 device
  • nativescript of versions up to 2.4.2 used to output a message that changes in App_Resources won't be synced and that they require a complete rebuild.
  • --log trace reports Results at '/Users/mac/user/nativescript-cli/scratch/app242/platforms/ios/build/device/app242.ipa' Project successfully built. Installing... Application org.nativescript.app242 has been uninstalled successfully. BeforeHookName for command install is before-install Removing device file 'PublicStaging/app242.ipa', result: 8 before terminating the process.
@petekanev petekanev changed the title Change in App_Resources during prepare triggers a build Changes in App_Resources during prepare triggers a build Feb 22, 2017
@pkoleva pkoleva added this to the 3.0.0-RC milestone Feb 24, 2017
@Plamen5kov
Copy link
Contributor

Closing since after this PR is merged, this issue will be a duplicate of: #2500

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants