NativeScript / NativeScript/nativescript-cli

project is build and installed twice on iOS after change of build.xcconfig file or assets file rename

Open
#5,007 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug os: ios run severity: medium
Dominant language
JavaScript
Stars
1.1k
Forks
204
Avg merge
1d 9h
Merged PRs (30d)
8

Description

Environment

  • CLI: 6.0.3

Describe the bug
When executing tns run ios on iOS device if you choose to persist DEVELOPMENT_TEAM in build.xcconfig file the project gets build and installed twice.
When executing run command, change of name of file in the AppResources folder causes cli to rebuild and install the project twice

To Reproduce

  1. tns create TestApp --js

  2. tns run iOS on device

  3. When asked choose to persist DEVELOPMENT_TEAM in build.xcconfig file
    Result: the project is built and installed twice

  4. `tns run ios'

  5. change the name of /app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20.png file
    Result: The project is rebuild and installed twice

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the duplicate build with tns run ios on a device, first after persisting DEVELOPMENT_TEAM in build.xcconfig and then after renaming the listed AppIcon asset. Trace the CLI's iOS run and file-change handling around build.xcconfig and AppResources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20.png. Done means each change causes only one build and install.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, javascript
Domain
cli, mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.