[IOS]Unexpected duplicate tasks
Environment
- CLI: 8.1.3
- Cross-platform modules: nativescript-angular-cli
- Android Runtime:
- iOS Runtime:
- XCode Version: 13.0
- Plugin(s):
Describe the bug When run command tns build ios it finally give the following error:
error: Unexpected duplicate tasks:
- Target 'IPA' (project 'IPA'): CodeSign /Users/admin/IPA/platforms/ios/build/Debug-iphonesimulator/IPA.app/Frameworks/TNSWidgets.framework
- Target 'IPA' (project 'IPA'): CodeSign /Users/admin/IPA/platforms/ios/build/Debug-iphonesimulator/IPA.app/Frameworks/TNSWidgets.framework error: Multiple commands produce '/Users/admin/IPA/platforms/ios/build/Debug-iphonesimulator/IPA.app/Frameworks/TNSWidgets.framework':
- Target 'IPA' has copy command from '/Users/admin/IPA/node_modules/@nativescript/core/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework' to '/Users/admin/IPA/platforms/ios/build/Debug-iphonesimulator/IPA.app/Frameworks/TNSWidgets.framework'
- Target 'IPA' has copy command from '/Users/admin/IPA/node_modules/tns-core-modules-widgets/platforms/ios/TNSWidgets.framework' to '/Users/admin/IPA/platforms/ios/build/Debug-iphonesimulator/IPA.app/Frameworks/TNSWidgets.framework'
error: Multiple commands produce '/Users/admin/IPA/platforms/ios/build/Debug-iphonesimulator/IPA.app/Frameworks/TNSWidgets.framework/TNSWidgets':
- Target 'IPA' has copy command from '/Users/admin/IPA/node_modules/@nativescript/core/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework' to '/Users/admin/IPA/platforms/ios/build/Debug-iphonesimulator/IPA.app/Frameworks/TNSWidgets.framework'
- Target 'IPA' has copy command from '/Users/admin/IPA/node_modules/tns-core-modules-widgets/platforms/ios/TNSWidgets.framework' to '/Users/admin/IPA/platforms/ios/build/Debug-iphonesimulator/IPA.app/Frameworks/TNSWidgets.framework'
warning: duplicate output file '/Users/admin/IPA/platforms/ios/build/Debug-iphonesimulator/IPA.app/Frameworks/TNSWidgets.framework' on task: PBXCp /Users/admin/IPA/node_modules/tns-core-modules-widgets/platforms/ios/TNSWidgets.framework /Users/admin/IPA/platforms/ios/build/Debug-iphonesimulator/IPA.app/Frameworks/TNSWidgets.framework (in target 'IPA' from project 'IPA') warning: duplicate output file '/Users/admin/IPA/platforms/ios/build/Debug-iphonesimulator/IPA.app/Frameworks/TNSWidgets.framework/TNSWidgets' on task: PBXCp /Users/admin/IPA/node_modules/tns-core-modules-widgets/platforms/ios/TNSWidgets.framework /Users/admin/IPA/platforms/ios/build/Debug-iphonesimulator/IPA.app/Frameworks/TNSWidgets.framework (in target 'IPA' from project 'IPA') warning: duplicate output file '' on task: PBXCp /Users/admin/IPA/node_modules/tns-core-modules-widgets/platforms/ios/TNSWidgets.framework /Users/admin/IPA/platforms/ios/build/Debug-iphonesimulator/IPA.app/Frameworks/TNSWidgets.framework (in target 'IPA' from project 'IPA') /Users/admin/IPA/platforms/ios/IPA.xcodeproj: warning: Building for iOS Simulator, but the linked and embedded framework 'TNSWidgets.framework' was built for iOS + iOS Simulator. (in target 'IPA' from project 'IPA')
Package.json
{
"name": "@nativescript/template-hello-world-ng",
"main": "./src/main.ts",
"version": "8.0.7",
"author": "NativeScript Team [email protected]",
"description": "NativeScript Application",
"license": "SEE LICENSE IN
Please post your package.json - I suspect you have both tns-core-modules and @nativescript/core installed, and their versions are mismatched.
{
"name": "@nativescript/template-hello-world-ng",
"main": "./src/main.ts",
"version": "8.0.7",
"author": "NativeScript Team [email protected]",
"description": "NativeScript Application",
"license": "SEE LICENSE IN
"nativescript-splashscreen": "^2.3.0", is outdated, it pulls in tns-core-modules and is generally pretty outdated. You will need to remove it/replace it. Here's how you can achieve similar effects https://blog.nativescript.org/angular-launch-animations/index.html