NativeScript / NativeScript/nativescript-cli
TNSNativeSource gets duplicated in Xcode projects
未关闭
还没有人认领这个 Issue。
bug
- 主要语言
- JavaScript
- 星标
- 1.1k
- 派生
- 204
- 平均合并
- 1 天 9 小时
- 30 天内合并 PR
- 8
描述
Issue Description
Starting with NativeScript v8.6.0, ns prepare ios may duplicate native code section TNSNativeSource in Xcode projects.
In particular, this seems to be related to this PR: https://github.com/NativeScript/nativescript-dev-xcode/pull/15
Reproduction
Download the file to ~/Downloads folder: extra.zip
- ns create testApp --js
- cd testApp
- ns platform add ios
- cd App_Resources/iOS
- mkdir src
- cd src
- cp ~/Downloads/extra.zip .
- unzip extra.zip
- rm extra.zip
- cd ../../..
- ns prepare ios
- touch App_Resources/iOS/src/extra.m
- ns prepare ios
- open platforms/ios/testApp.xcodeproj
Relevant log output (if applicable)
Environment
No response
Please accept these terms
- I have searched the existing issues as well as StackOverflow and this has not been posted before
- This is a bug report
- I agree to follow this project's Code of Conduct
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
使用列出的 ns prepare ios 步骤复现问题,尤其要检查生成的 platforms/ios/testApp.xcodeproj 和 App_Resources/iOS/src/extra.m。阅读相关的 nativescript-dev-xcode pull request,并检查更新 Xcode 项目的 iOS 准备路径。完成的标准是重复执行准备操作不再复制 TNSNativeSource 部分。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- ios, javascript
- 领域
- cli, mobile-dev
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 38/100