NativeScript / NativeScript/nativescript-cli

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

未关闭
#5,007 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

bug os: ios run severity: medium
主要语言
JavaScript
星标
1.1k
派生
204
平均合并
1 天 9 小时
30 天内合并 PR
8

描述

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

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

首先在设备上使用 tns run ios 重现重复构建:先在 build.xcconfig 中持久化 DEVELOPMENT_TEAM,然后再重命名列出的 AppIcon 资源。跟踪 CLI 的 iOS 运行流程,以及围绕 build.xcconfig 和 AppResources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20.png 的文件变更处理。完成标准是每次变更只触发一次构建和安装。

由索引模型根据 Issue 内容生成。

评估

技术栈
ios, javascript
领域
cli, mobile
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。