Skip to content

Changes in App_Resources during prepare triggers a build #2562

Closed
@petekanev

Description

@petekanev

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions