Closed dottodot closed 4 years ago
When you upgrade any of the ui plugins between major versions you have to delete the node_modules. This is because all ui plugins share the nativescript-ui-core package as a dependency and if a new major version is released all ui plugins need to be updated so that they all can use the latest version of the core dep.
@VladimirAmiorkov I've tried that and it still does the same thing
Can you share with me the package json and all of the ui plugins and their versions. I looks like there is a mismatch between them
OK I had nativescript-ui-autocomplete also installed so I've updated that as well but still get an error although slightly different.
Xcode build...
error: Multiple commands produce '/platforms/ios/build/Debug-iphonesimulator/ars.app/Frameworks/TNSCore.framework':
1) Target 'ars' (project 'ars') has copy command from '/node_modules/nativescript-ui-core/platforms/ios/TNSCore.framework' to '/platforms/ios/build/Debug-iphonesimulator/ars.app/Frameworks/TNSCore.framework'
2) Target 'ars' (project 'ars') has copy command from '/node_modules/nativescript-ui-listview/node_modules/nativescript-ui-core/platforms/ios/TNSCore.framework' to '/platforms/ios/build/Debug-iphonesimulator/ars.app/Frameworks/TNSCore.framework'
note: Using new build systemnote: Planning buildnote: Constructing build descriptionwarning: duplicate output file '/platforms/ios/build/Debug-iphonesimulator/ars.app/Frameworks/TNSCore.framework' on task: PBXCp /node_modules/nativescript-ui-listview/node_modules/nativescript-ui-core/platforms/ios/TNSCore.framework /platforms/ios/build/Debug-iphonesimulator/ars.app/Frameworks/TNSCore.framework (in target 'ars' from project 'ars')warning: duplicate output file '' on task: PBXCp /node_modules/nativescript-ui-listview/node_modules/nativescript-ui-core/platforms/ios/TNSCore.framework /platforms/ios/build/Debug-iphonesimulator/ars.app/Frameworks/TNSCore.framework (in target 'ars' from project 'ars')
** BUILD FAILED **
Unable to apply changes on device: 2403983D-A582-4C0C-9D2C-07034185F253. Error is: Command xcodebuild failed with exit code 65.
here's my dependencies
"dependencies": {
"@angular/animations": "~8.2.0",
"@angular/common": "~8.2.0",
"@angular/compiler": "~8.2.0",
"@angular/core": "~8.2.0",
"@angular/forms": "~8.2.0",
"@angular/platform-browser": "~8.2.0",
"@angular/platform-browser-dynamic": "~8.2.0",
"@angular/router": "~8.2.0",
"@nstudio/nativescript-loading-indicator": "^1.0.0",
"@w11k/ngx-componentdestroyed": "^4.1.4",
"core-js": "^2.5.4",
"jwt-decode": "^2.2.0",
"nativescript-angular": "^8.20.3",
"nativescript-background-http": "^4.2.0",
"nativescript-camera": "^4.5.0",
"nativescript-checkbox": "^3.0.3",
"nativescript-iqkeyboardmanager": "^1.5.1",
"nativescript-photoviewer": "^2.1.5",
"nativescript-sentry": "^1.9.1",
"nativescript-sqlite": "^2.3.3",
"nativescript-status-bar": "^1.2.0",
"nativescript-theme-core": "^1.0.6",
"nativescript-ui-autocomplete": "^6.0.0",
"nativescript-ui-listview": "^8.0.1",
"reflect-metadata": "~0.1.8",
"rxjs": "^6.4.0",
"rxjs-observable-store": "^1.0.1",
"tns-core-modules": "^6.2.1",
"tslib": "^1.9.0",
"typeorm": "^0.2.20",
"zone.js": "^0.9.1"
}
And there is only one version of nativescript-ui-core installed
$ npm ls -a nativescript-ui-core
├─┬ nativescript-ui-autocomplete@6.0.0
│ └── nativescript-ui-core@4.0.0
└─┬ nativescript-ui-listview@8.0.1
└── nativescript-ui-core@4.0.0
Ok I found that if I run npm dedupe
it resolves the issue
Please, provide the details below:
Tell us about the problem
After upgrading from 7.1.0 to 8.0.1 I get the following error when building for ios.
Which platform(s) does your issue occur on?
_iOS
Please provide the following version numbers that your issue occurs with:
Please tell us how to recreate the issue in as much detail as possible.
tns run ios