Skip to content

Cant build since Xcode 10 #3909

@larssn

Description

@larssn

Did you verify this is a real problem by searching the [NativeScript Forum]

Found a related issue: https://stackoverflow.com/questions/52340033/xcodebuild-failed-exit-code-65-ios

Tell us about the problem

After updating to Xcode 10 (today), my tns run ios --log trace fails on the xcode build step with:

stderr: 
spawn: xcodebuild "archive" "-archivePath" "./platforms/ios/build/archive/ourApp.xcarchive" "-configuration" "Debug" "-workspace" "./platforms/ios/ourApp.xcworkspace" "-scheme" "ourApp" "SHARED_PRECOMPS_DIR=./platforms/ios/build/sharedpch" "ARCHS=arm64" "VALID_ARCHS=arm64" "-sdk" "iphoneos" "CONFIGURATION_BUILD_DIR=./platforms/ios/build/device" "-allowProvisioningUpdates"
User defaults from command line:
    IDEArchivePathOverride = ./platforms/ios/build/archive/ourApp.xcarchive

Build settings from command line:
    ARCHS = arm64
    CONFIGURATION_BUILD_DIR = ./platforms/ios/build/device
    SDKROOT = iphoneos12.0
    SHARED_PRECOMPS_DIR = ./platforms/ios/build/sharedpch
    VALID_ARCHS = arm64

note: Using new build system
note: Planning build
note: Constructing build description
Build system information
error: unexpected duplicate task: CodeSign <my-user>/Library/Developer/Xcode/DerivedData/ourApp-axpwxekjlqemgxhcqrekmksxyout/Build/Intermediates.noindex/ArchiveIntermediates/ourApp/InstallationBuildProductsLocation/Applications/ourApp.app/Frameworks/TNSCore.framework (in target 'ourApp')

Build system information
error: unexpected duplicate task: CodeSign <my-user>/Library/Developer/Xcode/DerivedData/ourApp-axpwxekjlqemgxhcqrekmksxyout/Build/Intermediates.noindex/ArchiveIntermediates/ourApp/InstallationBuildProductsLocation/Applications/ourApp.app/Frameworks/TNSCore.framework (in target 'ourApp')

Build system information
error: Multiple commands produce '<my-user>/Library/Developer/Xcode/DerivedData/ourApp-axpwxekjlqemgxhcqrekmksxyout/Build/Intermediates.noindex/ArchiveIntermediates/ourApp/InstallationBuildProductsLocation/Applications/ourApp.app/Frameworks/TNSCore.framework/TNSCore':
1) Target 'ourApp' has copy command from './node_modules/nativescript-ui-core/platforms/ios/TNSCore.framework' to '<my-user>/Library/Developer/Xcode/DerivedData/ourApp-axpwxekjlqemgxhcqrekmksxyout/Build/Intermediates.noindex/ArchiveIntermediates/ourApp/InstallationBuildProductsLocation/Applications/ourApp.app/Frameworks/TNSCore.framework'
2) Target 'ourApp' has copy command from './node_modules/nativescript-ui-listview/node_modules/nativescript-ui-core/platforms/ios/TNSCore.framework' to '<my-user>/Library/Developer/Xcode/DerivedData/ourApp-axpwxekjlqemgxhcqrekmksxyout/Build/Intermediates.noindex/ArchiveIntermediates/ourApp/InstallationBuildProductsLocation/Applications/ourApp.app/Frameworks/TNSCore.framework'

Build system information
error: Multiple commands produce '<my-user>/Library/Developer/Xcode/DerivedData/ourApp-axpwxekjlqemgxhcqrekmksxyout/Build/Intermediates.noindex/ArchiveIntermediates/ourApp/InstallationBuildProductsLocation/Applications/ourApp.app/Frameworks/TNSCore.framework':
1) Target 'ourApp' has copy command from './node_modules/nativescript-ui-core/platforms/ios/TNSCore.framework' to '<my-user>/Library/Developer/Xcode/DerivedData/ourApp-axpwxekjlqemgxhcqrekmksxyout/Build/Intermediates.noindex/ArchiveIntermediates/ourApp/InstallationBuildProductsLocation/Applications/ourApp.app/Frameworks/TNSCore.framework'
2) Target 'ourApp' has copy command from './node_modules/nativescript-ui-listview/node_modules/nativescript-ui-core/platforms/ios/TNSCore.framework' to '<my-user>/Library/Developer/Xcode/DerivedData/ourApp-axpwxekjlqemgxhcqrekmksxyout/Build/Intermediates.noindex/ArchiveIntermediates/ourApp/InstallationBuildProductsLocation/Applications/ourApp.app/Frameworks/TNSCore.framework'

Build system information
warning: duplicate output file '<my-user>/Library/Developer/Xcode/DerivedData/ourApp-axpwxekjlqemgxhcqrekmksxyout/Build/Intermediates.noindex/ArchiveIntermediates/ourApp/InstallationBuildProductsLocation/Applications/ourApp.app/Frameworks/TNSCore.framework' on task: PBXCp ./node_modules/nativescript-ui-listview/node_modules/nativescript-ui-core/platforms/ios/TNSCore.framework <my-user>/Library/Developer/Xcode/DerivedData/ourApp-axpwxekjlqemgxhcqrekmksxyout/Build/Intermediates.noindex/ArchiveIntermediates/ourApp/InstallationBuildProductsLocation/Applications/ourApp.app/Frameworks/TNSCore.framework (in target 'ourApp')

Build system information
warning: duplicate output file '<my-user>/Library/Developer/Xcode/DerivedData/ourApp-axpwxekjlqemgxhcqrekmksxyout/Build/Intermediates.noindex/ArchiveIntermediates/ourApp/InstallationBuildProductsLocation/Applications/ourApp.app/Frameworks/TNSCore.framework/TNSCore' on task: PBXCp ./node_modules/nativescript-ui-listview/node_modules/nativescript-ui-core/platforms/ios/TNSCore.framework <my-user>/Library/Developer/Xcode/DerivedData/ourApp-axpwxekjlqemgxhcqrekmksxyout/Build/Intermediates.noindex/ArchiveIntermediates/ourApp/InstallationBuildProductsLocation/Applications/ourApp.app/Frameworks/TNSCore.framework (in target 'ourApp')

Build system information
warning: duplicate output file '' on task: PBXCp ./node_modules/nativescript-ui-listview/node_modules/nativescript-ui-core/platforms/ios/TNSCore.framework <my-user>/Library/Developer/Xcode/DerivedData/ourApp-axpwxekjlqemgxhcqrekmksxyout/Build/Intermediates.noindex/ArchiveIntermediates/ourApp/InstallationBuildProductsLocation/Applications/ourApp.app/Frameworks/TNSCore.framework (in target 'ourApp')

Command xcodebuild failed with exit code 65
Unable to apply changes on device: a1f50f93c3c6c8473b2ce8a5ceafe1ddbd5cb753. Error is: Command xcodebuild failed with exit code 65.

(I've anonymized the output)

I have the entire trace log output if anyone needs it.

Not sure if the error could be related to having the xcode update run in the background, while xcodebuild being used from the commandline. I've tried doing a tns update, but it didn't fix the issue.

Which platform(s) does your issue occur on?

MacOS 10.13.6 (High Sierra)

Please provide the following version numbers that your issue occurs with:

  • CLI: 4.2.3
  • Cross-platform modules: 4.2.0
  • Runtime(s): 4.2.0 & 4.2.0
  • Plugin(s):
  "dependencies": {
    "@angular/animations": "~6.1.0",
    "@angular/common": "~6.1.0",
    "@angular/compiler": "~6.1.0",
    "@angular/core": "~6.1.0",
    "@angular/forms": "~6.1.0",
    "@angular/http": "~6.1.0",
    "@angular/platform-browser": "~6.1.0",
    "@angular/platform-browser-dynamic": "~6.1.0",
    "@angular/router": "~6.1.0",
    "@ngx-translate/core": "^10.0.2",
    "nativescript-angular": "^6.1.0",
    "nativescript-plugin-firebase": "^6.8.1",
    "nativescript-theme-core": "~1.0.4",
    "nativescript-ui-listview": "^3.6.1",
    "nativescript-ui-sidedrawer": "~4.2.0",
    "reflect-metadata": "~0.1.10",
    "rxjs": "^6.3.2",
    "tns-core-modules": "^4.2.0",
    "zone.js": "~0.8.18"
  },
  "devDependencies": {
    "@angular/compiler-cli": "~6.1.0",
    "@nativescript/schematics": "~0.2.5",
    "@ngtools/webpack": "~6.2.0",
    "codelyzer": "~4.3.0",
    "nativescript-dev-sass": "~1.6.0",
    "nativescript-dev-typescript": "~0.7.0",
    "nativescript-dev-webpack": "~0.16.0",
    "tns-platform-declarations": "^4.2.0",
    "tslint": "~5.11.0",
    "typescript": "~2.7.2"
  },

Please tell us how to recreate the issue in as much detail as possible.

Not sure how to recreate if it doesn't fail on a fresh upgrade of xcode 10 in your end.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions