ProgressNS / nativescript-ui-feedback

This repository is used for customer feedback regarding Telerik UI for NativeScript. The issues system here is used by customers who want to submit their feature requests or vote for existing ones.
Other
115 stars 21 forks source link

ios build fails in 8.0.1 #1304

Closed dottodot closed 4 years ago

dottodot commented 4 years ago

Please take a minute to read our NativeScript Code of Conduct before proceeding with posting issues or discussing. The purpose of this guide is to make communication and cooperation within our forums a pleasure for you and the other members.

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.

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.

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

VladimirAmiorkov commented 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.

dottodot commented 4 years ago

@VladimirAmiorkov I've tried that and it still does the same thing

VladimirAmiorkov commented 4 years ago

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

dottodot commented 4 years ago

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"
  }
dottodot commented 4 years ago

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 
dottodot commented 4 years ago

Ok I found that if I run npm dedupe it resolves the issue