GeezerVison is showing github.com — TNSNativeSource gets duplicated in Xcode projects · Issue #5765 · NativeScript/nativescript-cli
TNSNativeSource gets duplicated in Xcode projects #5765DescriptionIssue 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: NativeScript/nativescript-dev-xcode#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
Activityugurkig commented on Dec 28, 2023 Having the same issue with NativeScript v8.6.1 and Xcode 14.3 rigor789 commented on Dec 28, 2023 This is known, but should not cause any problems because these are just "links" and not actual copies of the sources. We'd of course like to fix the duplication, but if you are running into build errors it's likely not related to this. ugurkig commented on Dec 28, 2023 No, there are no build errors. But it issues warnings against each duplicate native source file and they annoyingly cumulate with every prepare. I have found a workaround to get rid of them like “Delete”ing the duplicate TNSNativeSource entries on Xcode with “Remove References” option, which only deletes the duplicate entry, not the actual files. Thanks for the reply. jvaronenka commented on Jan 5, 2024 No build issues here either, except that we are using a proprietary tool that does additional processing on Xcode projects. I have not had any luck in getting their developers to acknowledge this as their issue, thus trying here instead. That's what we eventually resorted to - just manually deleting the duplicate sources from inside XCode. Reacted by Igor Randjelovic rigor789 commented on Jan 5, 2024 This is definitely the right place, it's on NativeScript CLI to fix this. I was just commenting that in general this bug should not cause build issues, but it's definitely a bug.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|