NativeScript / NativeScript/nativescript-cli
TNSNativeSource gets duplicated in Xcode projects
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.1k
- Forks
- 204
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 8
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue with the listed ns prepare ios steps, especially the generated platforms/ios/testApp.xcodeproj and App_Resources/iOS/src/extra.m. Read the related nativescript-dev-xcode pull request and inspect the iOS preparation path that updates the Xcode project. Done means repeated preparation no longer duplicates the TNSNativeSource section.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, javascript
- Domain
- cli, mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100