Skip to content

Cant build since Xcode 10 #3909

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
larssn opened this issue Sep 19, 2018 · 66 comments
Closed

Cant build since Xcode 10 #3909

larssn opened this issue Sep 19, 2018 · 66 comments
Assignees

Comments

@larssn
Copy link

larssn commented Sep 19, 2018

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.

@larssn
Copy link
Author

larssn commented Sep 19, 2018

Seems to be related to the new build system in Xcode 10. A temporary workaround seems to be switching to the legacy build system by going to (in Xcode) File -> Workspace Settings -> Build System -> Legacy Build System. But compiling with the CLI still doesnt work.

@mbektchiev
Copy link
Contributor

Hi @larssn, looking at this error I can see that there are multiple TNSCore.frameworks in you node_modules directory:

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'

Probably this is due to the fact that you have different major versions for ListView and SideDrawer:

    "nativescript-ui-listview": "^3.6.1",
    "nativescript-ui-sidedrawer": "~4.2.0"

I suppose that upgrading ListView will fix the error.

@mbektchiev
Copy link
Contributor

It seems that I spoke too fast -- ListView is already the latest but SideDrawer is not. I suggest you upgrade it as well.

@mbektchiev
Copy link
Contributor

Yes, that fixes it. I managed to reproduce the error with your versions, and it got fixed after upgrading. It seems that the old build system has tolerated this inconsistency and has silently selected one of the 2 frameworks, while the new one is stricter and treats this as an error.

@larssn
Copy link
Author

larssn commented Sep 19, 2018

Thanks for the snappy response.

While you are correct that the dependency was behind, even bringing it up to v4.3.0 (using tns plugin update didn't fix the issue. Also updated tns-core-modules from 4.2.0 to 4.2.1.
Getting the same errors.

I suspected nativescript-ui-core but doing a npm list nativescript-ui-core doesn't show any version mismatches:

./ourApp
├─┬ [email protected]
│ └── [email protected] 
└─┬ [email protected]
  └── [email protected] 

Will continue investigating...

@mbektchiev
Copy link
Contributor

mbektchiev commented Sep 19, 2018

I would suggest that you wipe the node_modules directories altogether. Or at least the two nativescript-ui-core dirs. This will make npm install the plugin only once.

The failure continues to occur because you still have two occurrences of the frameworks.

Another alternative is to try and run npm dedupe

@larssn
Copy link
Author

larssn commented Sep 19, 2018

Same issue
Have tried various combinations of rm -rf node_modules / npm i and tns update.

The resulting node_modules folder always seem to have a slightly wrong structure.
Again, doing an npm list nativescript-ui-core reveals:

./ourApp/
├─┬ [email protected]
│ └── [email protected] 
└─┬ [email protected]
  └── [email protected]

So far so good, only one version of nativescript-ui-core.
But when I inspect the folders, they look as following:

./node_modules/nativescript-ui-core
./node_modules/nativescript-ui-listview/node_modules/nativescript-ui-core
./node_modules/nativescript-ui-sidedrawer

So nativescript-ui-listview has it's own node_modules folder, while nativescript-ui-sidedrawer does not, and instead seems to rely on the root level.

Any ideas as to why this happens?

@mbektchiev
Copy link
Contributor

mbektchiev commented Sep 19, 2018

Do you have a package-lock.json? It could be forcing NPM to duplicate the module. Simply delete it if it exists.

@larssn
Copy link
Author

larssn commented Sep 19, 2018

nativescript-ui-listview seems to have just been updated to 3.7.0. That, combined with deleting package-lock.json seems to have corrected the node_modules pathing problem, BUT the problem still remains.

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

error: Multiple commands produce '/Users/<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 './ourApp/node_modules/nativescript-ui-core/platforms/ios/TNSCore.framework' to '/Users/<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 './ourApp/node_modules/nativescript-ui-listview/node_modules/nativescript-ui-core/platforms/ios/TNSCore.framework' to '/Users/<my-user>/Library/Developer/Xcode/DerivedData/ourApp-axpwxekjlqemgxhcqrekmksxyout/Build/Intermediates.noindex/ArchiveIntermediates/ourApp/InstallationBuildProductsLocation/Applications/ourApp.app/Frameworks/TNSCore.framework'

As you can see from the above, it's still copying data from two places. Or so it thinks!
I've verified that the node_modules folder is gone from nativescript-ui-listview, and just to be sure, I've done a cd /Users/<my-user>/workspace/<my-company>/<our-app>/node_modules/nativescript-ui-listview/node_modules and the path does not exist anymore.

So I figure it was cached somehow with some kind of tns magic, so I tried removing the related directories from /Users/<my-user>/Library/Developer/Xcode/DerivedData/, but that didn't work either.

Second idea was that even though the files doesn't exist, Xcode will deny any attempt to copy the same framework file? Not sure how to solve that one, if that is the case. I'm new with NativeScript, and I don't know that much yet.

@rosen-vladimirov
Copy link
Contributor

Hey @larssn ,
Have you tried removing your platforms directory and building your project again (after fixing the package-lock.json issue) ?

@larssn
Copy link
Author

larssn commented Sep 19, 2018

@rosen-vladimirov It was my impression that tns update did that? I have some custom facebook/google configuration each in platform, that I was hoping to keep. It's no biggy if I lose it though.

@larssn
Copy link
Author

larssn commented Sep 19, 2018

No wait, I was thinking about App_Resources. I'll try deleting the platforms.

@larssn
Copy link
Author

larssn commented Sep 19, 2018

😂 It works! Deleting the platforms folder did the trick.
Thank you so much guys, for your good ideas. I'd still be fiddling with this otherwise.

Out of curiosity, is there any recommendation on how to manage your dependencies in NS, so stuff like this doesn't happen again? npm will usually add install modules with the caret (minor) ^, while creating a new project will default to tilde (patch) versions ~. I'm thinking that's how the two plugins got out of sync.

@larssn larssn closed this as completed Sep 19, 2018
@hettiger
Copy link

hettiger commented Sep 23, 2018

Please reopen the issue @larssn

I found a solution, see the bottom of this comment.

I'm having the same problem described here.

I did execute the following commands:

rm -rf node_modules
rm -rf platforms
rm package-lock.json
npm i
pod repo update
tns run ios

I'm still facing the issue. I will try switching to the Legacy Build System now.

Here's the (anonymized) build system log:

Xcode build...
error: unexpected duplicate task: CodeSign /path/platforms/ios/build/emulator/MyApp.app/Frameworks/TNSCore.framework (in target 'MyApp')
error: unexpected duplicate task: CodeSign /path/platforms/ios/build/emulator/MyApp.app/Frameworks/TNSCore.framework (in target 'MyApp')
error: Multiple commands produce '/path/platforms/ios/build/emulator/MyApp.app/Frameworks/TNSCore.framework':
1) Target 'MyApp' has copy command from '/path/node_modules/nativescript-ui-core/platforms/ios/TNSCore.framework' to '/path/platforms/ios/build/emulator/MyApp.app/Frameworks/TNSCore.framework'
2) Target 'MyApp' has copy command from '/path/node_modules/nativescript-ui-listview/node_modules/nativescript-ui-core/platforms/ios/TNSCore.framework' to '/path/platforms/ios/build/emulator/MyApp.app/Frameworks/TNSCore.framework'
error: Multiple commands produce '/path/platforms/ios/build/emulator/MyApp.app/Frameworks/TNSCore.framework/TNSCore':
1) Target 'MyApp' has copy command from '/path/node_modules/nativescript-ui-core/platforms/ios/TNSCore.framework' to '/path/platforms/ios/build/emulator/MyApp.app/Frameworks/TNSCore.framework'
2) Target 'MyApp' has copy command from '/path/node_modules/nativescript-ui-listview/node_modules/nativescript-ui-core/platforms/ios/TNSCore.framework' to '/path/platforms/ios/build/emulator/MyApp.app/Frameworks/TNSCore.framework'
warning: duplicate output file '/path/platforms/ios/build/emulator/MyApp.app/Frameworks/TNSCore.framework' on task: PBXCp /path/node_modules/nativescript-ui-listview/node_modules/nativescript-ui-core/platforms/ios/TNSCore.framework /path/platforms/ios/build/emulator/MyApp.app/Frameworks/TNSCore.framework (in target 'MyApp')
warning: duplicate output file '/path/platforms/ios/build/emulator/MyApp.app/Frameworks/TNSCore.framework/TNSCore' on task: PBXCp /path/node_modules/nativescript-ui-listview/node_modules/nativescript-ui-core/platforms/ios/TNSCore.framework /path/platforms/ios/build/emulator/MyApp.app/Frameworks/TNSCore.framework (in target 'MyApp')
warning: duplicate output file '' on task: PBXCp /path/node_modules/nativescript-ui-listview/node_modules/nativescript-ui-core/platforms/ios/TNSCore.framework /path/platforms/ios/build/emulator/MyApp.app/Frameworks/TNSCore.framework (in target 'MyApp')
note: Using new build systemnote: Planning buildnote: Constructing build description
** BUILD FAILED **

Dependencies:

"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",
    "@ngrx/effects": "^6.1.0",
    "@ngrx/store": "^6.1.0",
    "nativescript-angular": "^6.1.0",
    "nativescript-feedback": "^1.2.0",
    "nativescript-imagepicker": "~5.0.0",
    "nativescript-loading-indicator": "^2.4.0",
    "nativescript-localize": "^3.0.5",
    "nativescript-localstorage": "^1.1.5",
    "nativescript-plugin-firebase": "^6.4.1",
    "nativescript-theme-core": "~1.0.4",
    "nativescript-tslib": "^1.9.1-r1",
    "nativescript-ui-listview": "^3.7.0",
    "ngrx-store-localstorage": "^5.0.1",
    "ngrx-store-logger": "^0.2.2",
    "reflect-metadata": "~0.1.10",
    "rxjs": "^6.0.0",
    "tns-core-modules": "^4.2.1",
    "zone.js": "^0.8.26"
  },
  "devDependencies": {
    "@angular/compiler-cli": "~6.1.0",
    "@ngtools/webpack": "~6.2.0",
    "codelyzer": "~4.3.0",
    "nativescript-dev-sass": "~1.6.0",
    "nativescript-dev-typescript": "^0.7.4",
    "nativescript-dev-webpack": "^0.16.1",
    "tns-platform-declarations": "^4.2.0",
    "tslint": "~5.10.0",
    "typescript": "~2.7.2"
  }

EDIT

After switching to the Legacy Build System I was not able to build successfully.
I had to execute the erase all contents and settings feature from the iOS Simulator first.

Now I'm able to build using Xcode directly. tns run ios still fails with the following (anonymized) output:

Xcode build...
=== BUILD TARGET MyApp OF PROJECT MyApp WITH CONFIGURATION Debug ===
Warning: Multiple build commands for output file /path/platforms/ios/build/emulator/MyApp.app/Frameworks/TNSCore.framework
=== BUILD TARGET MyApp OF PROJECT MyApp WITH CONFIGURATION Debug ===
warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Y0LVQ9G7OBT/UIKit-1V5UHAPTOD24G.pcm: No such file or directory
note: while processing /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Y0LVQ9G7OBT/UIKit-1V5UHAPTOD24G.pcm
note: Linking a static library that was built with -gmodules, but the module cache was not found.  Redistributable static libraries should never be built with module debugging enabled.  The debug experience will be degraded due to incomplete debug information.
warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Y0LVQ9G7OBT/Darwin-38I6DLZ5IH61J.pcm: No such file or directory
note: while processing /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Y0LVQ9G7OBT/Darwin-38I6DLZ5IH61J.pcm
warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Y0LVQ9G7OBT/Foundation-3DFYNEBRQSXST.pcm: No such file or directory
note: while processing /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Y0LVQ9G7OBT/Foundation-3DFYNEBRQSXST.pcm
warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Y0LVQ9G7OBT/Dispatch-2LX9MWM6UEPQW.pcm: No such file or directory
note: while processing /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Y0LVQ9G7OBT/Dispatch-2LX9MWM6UEPQW.pcm
warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Y0LVQ9G7OBT/ObjectiveC-1R06XOY9T4FIM.pcm: No such file or directory
note: while processing /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Y0LVQ9G7OBT/ObjectiveC-1R06XOY9T4FIM.pcm
warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/9G23JDZCI6P8/UIKit-1V5UHAPTOD24G.pcm: No such file or directory
note: while processing /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/9G23JDZCI6P8/UIKit-1V5UHAPTOD24G.pcm
note: Linking a static library that was built with -gmodules, but the module cache was not found.  Redistributable static libraries should never be built with module debugging enabled.  The debug experience will be degraded due to incomplete debug information.
warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/9G23JDZCI6P8/Darwin-38I6DLZ5IH61J.pcm: No such file or directory
note: while processing /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/9G23JDZCI6P8/Darwin-38I6DLZ5IH61J.pcm
warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/9G23JDZCI6P8/Foundation-3DFYNEBRQSXST.pcm: No such file or directory
note: while processing /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/9G23JDZCI6P8/Foundation-3DFYNEBRQSXST.pcm
warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/9G23JDZCI6P8/Dispatch-2LX9MWM6UEPQW.pcm: No such file or directory
note: while processing /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/9G23JDZCI6P8/Dispatch-2LX9MWM6UEPQW.pcm
warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/9G23JDZCI6P8/ObjectiveC-1R06XOY9T4FIM.pcm: No such file or directory
note: while processing /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/9G23JDZCI6P8/ObjectiveC-1R06XOY9T4FIM.pcm
error: make directory /path/platforms/ios/build/emulator/MyApp.app/Frameworks/TNSCore.framework: File exists
2018-09-23 06:05:27.628 xcodebuild[7528:129524]  DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-14306.16/Xcode3Core/LegacyProjects/Frameworks/DevToolsCore/DevToolsCore/BuildSystem/Runtime/PBXTargetBuildContext.mm:757
Details:  unexpected successful exit code from cancelled command <C0029:'PBXCp TNSListView.framework':P16>
Object:   <PBXTargetBuildContext: 0x7fa3974e7b50>
Method:   -createCommandInvocationRecordFromInvocation:
Thread:   <NSThread: 0x7fa397b9f330>{number = 10, name = (null)}
Please file a bug at https://bugreport.apple.com with this warning message and any useful information you can provide.
** BUILD FAILED **

Here's my tns doctor output:

✔ Getting environment information 

No issues were detected.
✔ Your ANDROID_HOME environment variable is set and points to correct directory.
✔ Your adb from the Android SDK is correctly installed.
✔ The Android SDK is installed.
✔ A compatible Android SDK for compilation is found.
✔ Javac is installed and is configured properly.
✔ The Java Development Kit (JDK) is installed and is configured properly.
✔ Xcode is installed and is configured properly.
✔ xcodeproj is installed and is configured properly.
✔ CocoaPods are installed.
✔ CocoaPods update is not required.
✔ CocoaPods are configured properly.
✔ Your current CocoaPods version is newer than 1.0.0.
✔ Python installed and configured correctly.
✔ The Python 'six' package is found.
✔ Getting NativeScript components versions information...
✔ Component nativescript has 4.2.4 version and is up to date.
✔ Component tns-core-modules has 4.2.1 version and is up to date.
✖ Component tns-android is not installed.
✔ Component tns-ios has 4.2.0 version and is up to date.

Solution:

I've managed to find the root of all evil:

npm list nativescript-ui-core
├─┬ [email protected]
│ └── [email protected] 
└─┬ [email protected]
  └── [email protected] 

Fix:

tns plugin update nativescript-imagepicker
npm dedupe

Now everything's working like a charm. Even with the new build system.

@larssn larssn reopened this Sep 23, 2018
@larssn
Copy link
Author

larssn commented Sep 23, 2018

Not sure if this is going to be a general problem in the ecosystem, so I've reopened it.

@nuno-morais
Copy link

I have the same issue here.

@mbektchiev
Copy link
Contributor

@xnramx, did you try to deduplicate any plugins that might have appeared more than once under node_modules?

Can you send us the output of npm ls so that we can help you with your project?

@peppeg85
Copy link

hello, i have the same issue, with these errors:what i could try to solve it?
in my case the duplicated tasks are for TNSCalendar.framework and tnscore.framework, depending from nativescript-pro-ui and nativescript ui-core.
i tried with npm deduper, but it answers with up to date.... here is the list of errors:

Xcode build...
error: unexpected duplicate task: CodeSign /Users/mac/WebstormProjects/appname/platforms/ios/build/emulator/appname.app/Frameworks/TNSCalendar.framework (in target 'appname')
error: unexpected duplicate task: CodeSign /Users/mac/WebstormProjects/appname/platforms/ios/build/emulator/appname.app/Frameworks/TNSCalendar.framework (in target 'appname')
error: unexpected duplicate task: CodeSign /Users/mac/WebstormProjects/appname/platforms/ios/build/emulator/appname.app/Frameworks/TNSCore.framework (in target 'appname')
error: unexpected duplicate task: CodeSign /Users/mac/WebstormProjects/appname/platforms/ios/build/emulator/appname.app/Frameworks/TNSCore.framework (in target 'appname')
error: Multiple commands produce '/Users/mac/WebstormProjects/appname/platforms/ios/build/emulator/appname.app/Frameworks/TNSCore.framework/TNSCore':
1) Target 'appname' has copy command from '/Users/mac/WebstormProjects/appname/node_modules/nativescript-pro-ui/platforms/ios/TNSCore.framework' to '/Users/mac/WebstormProjects/appname/platforms/ios/build/emulator/appname.app/Frameworks/TNSCore.framework'
2) Target 'appname' has copy command from '/Users/mac/WebstormProjects/appname/node_modules/nativescript-ui-core/platforms/ios/TNSCore.framework' to '/Users/mac/WebstormProjects/appname/platforms/ios/build/emulator/appname.app/Frameworks/TNSCore.framework'
error: Multiple commands produce '/Users/mac/WebstormProjects/appname/platforms/ios/build/emulator/appname.app/Frameworks/TNSCalendar.framework/TNSCalendar':
1) Target 'appname' has copy command from '/Users/mac/WebstormProjects/appname/node_modules/nativescript-pro-ui/platforms/ios/TNSCalendar.framework' to '/Users/mac/WebstormProjects/appname/platforms/ios/build/emulator/appname.app/Frameworks/TNSCalendar.framework'
2) Target 'appname' has copy command from '/Users/mac/WebstormProjects/appname/node_modules/nativescript-ui-calendar/platforms/ios/TNSCalendar.framework' to '/Users/mac/WebstormProjects/appname/platforms/ios/build/emulator/appname.app/Frameworks/TNSCalendar.framework'
error: Multiple commands produce '/Users/mac/WebstormProjects/appname/platforms/ios/build/emulator/appname.app/Frameworks/TNSCalendar.framework':
1) Target 'appname' has copy command from '/Users/mac/WebstormProjects/appname/node_modules/nativescript-pro-ui/platforms/ios/TNSCalendar.framework' to '/Users/mac/WebstormProjects/appname/platforms/ios/build/emulator/appname.app/Frameworks/TNSCalendar.framework'
2) Target 'appname' has copy command from '/Users/mac/WebstormProjects/appname/node_modules/nativescript-ui-calendar/platforms/ios/TNSCalendar.framework' to '/Users/mac/WebstormProjects/appname/platforms/ios/build/emulator/appname.app/Frameworks/TNSCalendar.framework'
error: Multiple commands produce '/Users/mac/WebstormProjects/appname/platforms/ios/build/emulator/appname.app/Frameworks/TNSCore.framework':
1) Target 'appname' has copy command from '/Users/mac/WebstormProjects/appname/node_modules/nativescript-pro-ui/platforms/ios/TNSCore.framework' to '/Users/mac/WebstormProjects/appname/platforms/ios/build/emulator/appname.app/Frameworks/TNSCore.framework'
2) Target 'appname' has copy command from '/Users/mac/WebstormProjects/appname/node_modules/nativescript-ui-core/platforms/ios/TNSCore.framework' to '/Users/mac/WebstormProjects/appname/platforms/ios/build/emulator/appname.app/Frameworks/TNSCore.framework'
warning: Capabilities for appname may not function correctly because its entitlements use a placeholder team ID. To resolve this, select a development team in the build settings editor. (in target 'appname')
warning: duplicate output file '/Users/mac/WebstormProjects/appname/platforms/ios/build/emulator/appname.app/Frameworks/TNSCalendar.framework' on task: PBXCp /Users/mac/WebstormProjects/appname/node_modules/nativescript-ui-calendar/platforms/ios/TNSCalendar.framework /Users/mac/WebstormProjects/appname/platforms/ios/build/emulator/appname.app/Frameworks/TNSCalendar.framework (in target 'appname')
warning: duplicate output file '/Users/mac/WebstormProjects/appname/platforms/ios/build/emulator/appname.app/Frameworks/TNSCalendar.framework/TNSCalendar' on task: PBXCp /Users/mac/WebstormProjects/appname/node_modules/nativescript-ui-calendar/platforms/ios/TNSCalendar.framework /Users/mac/WebstormProjects/appname/platforms/ios/build/emulator/appname.app/Frameworks/TNSCalendar.framework (in target 'appname')
warning: duplicate output file '' on task: PBXCp /Users/mac/WebstormProjects/appname/node_modules/nativescript-ui-calendar/platforms/ios/TNSCalendar.framework /Users/mac/WebstormProjects/appname/platforms/ios/build/emulator/appname.app/Frameworks/TNSCalendar.framework (in target 'appname')
warning: duplicate output file '/Users/mac/WebstormProjects/appname/platforms/ios/build/emulator/appname.app/Frameworks/TNSCore.framework' on task: PBXCp /Users/mac/WebstormProjects/appname/node_modules/nativescript-ui-core/platforms/ios/TNSCore.framework /Users/mac/WebstormProjects/appname/platforms/ios/build/emulator/appname.app/Frameworks/TNSCore.framework (in target 'appname')
warning: duplicate output file '/Users/mac/WebstormProjects/appname/platforms/ios/build/emulator/appname.app/Frameworks/TNSCore.framework/TNSCore' on task: PBXCp /Users/mac/WebstormProjects/appname/node_modules/nativescript-ui-core/platforms/ios/TNSCore.framework /Users/mac/WebstormProjects/appname/platforms/ios/build/emulator/appname.app/Frameworks/TNSCore.framework (in target 'appname')
warning: duplicate output file '' on task: PBXCp /Users/mac/WebstormProjects/appname/node_modules/nativescript-ui-core/platforms/ios/TNSCore.framework /Users/mac/WebstormProjects/appname/platforms/ios/build/emulator/appname.app/Frameworks/TNSCore.framework (in target 'appname')
note: Using new build systemnote: Planning buildnote: Constructing build description
** BUILD FAILED **

Unable to apply changes on device: 5E60EAED-CD38-4D00-B4C8-CD78379E326B. Error is: Command xcodebuild failed with exit code 65.

thank you

@mbektchiev
Copy link
Contributor

@peppeg85, can you send us the output of npm ls?

@peppeg85
Copy link

sure:

├── @nota/[email protected]
├─┬ [email protected]
│ ├─┬ [email protected]
│ │ ├─┬ [email protected]
│ │ │ ├── [email protected]
│ │ │ ├── [email protected]
│ │ │ ├─┬ [email protected]
│ │ │ │ └── [email protected]
│ │ │ ├─┬ [email protected]
│ │ │ │ └── [email protected] deduped
│ │ │ └── [email protected]
│ │ ├── [email protected] deduped
│ │ └── [email protected]
│ ├─┬ [email protected]
│ │ └─┬ [email protected]
│ │   ├── [email protected]
│ │   └── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected] deduped
│ ├── [email protected] deduped
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ └─┬ [email protected]
│ │   └── [email protected] deduped
│ ├── [email protected]
│ └─┬ [email protected]
│   └─┬ [email protected]
│     └── [email protected]
├─┬ [email protected]
│ ├── [email protected] deduped
│ ├── [email protected] deduped
│ ├── [email protected]
│ ├── [email protected] deduped
│ └── [email protected]
├─┬ [email protected]
│ └── [email protected] deduped
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├─┬ [email protected]
│ └── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├─┬ [email protected]
│ └── [email protected]
├── [email protected]
├── [email protected]
└─┬ [email protected]
  └── [email protected]

thank you

@mbektchiev
Copy link
Contributor

@peppeg85 I found out the problem. The nativescript-pro-ui plugin has been deprecated and its incompatible with the new Telerik UI plugins (nativescript-ui-calendar in your case). You can read this article for guidelines about how to migrate your project: http://docs.telerik.com/devtools/nativescript-ui/migration.

@peppeg85
Copy link

hi, thanks for your answer, but it donesn't work:

Building project...
Xcode build...
error: unexpected duplicate task: CodeSign /Users/mac/WebstormProjects/appname/platforms/ios/build/emulator/appname.app/Frameworks/TNSCore.framework (in target 'appname')
error: unexpected duplicate task: CodeSign /Users/mac/WebstormProjects/appname/platforms/ios/build/emulator/appname.app/Frameworks/TNSCore.framework (in target 'appname')
error: unexpected duplicate task: CodeSign /Users/mac/WebstormProjects/appname/platforms/ios/build/emulator/appname.app/Frameworks/TNSCore.framework (in target 'appname')
error: unexpected duplicate task: CodeSign /Users/mac/WebstormProjects/appname/platforms/ios/build/emulator/appname.app/Frameworks/TNSCore.framework (in target 'appname')
error: Multiple commands produce '/Users/mac/WebstormProjects/appname/platforms/ios/build/emulator/appname.app/Frameworks/TNSCore.framework':
1) Target 'appname' has copy command from '/Users/mac/WebstormProjects/appname/node_modules/nativescript-ui-core/platforms/ios/TNSCore.framework' to '/Users/mac/WebstormProjects/appname/platforms/ios/build/emulator/appname.app/Frameworks/TNSCore.framework'
2) Target 'appname' has copy command from '/Users/mac/WebstormProjects/appname/node_modules/nativescript-ui-gauge/node_modules/nativescript-ui-core/platforms/ios/TNSCore.framework' to '/Users/mac/WebstormProjects/appname/platforms/ios/build/emulator/appname.app/Frameworks/TNSCore.framework'
3) Target 'appname' has copy command from '/Users/mac/WebstormProjects/appname/node_modules/nativescript-ui-listview/node_modules/nativescript-ui-core/platforms/ios/TNSCore.framework' to '/Users/mac/WebstormProjects/appname/platforms/ios/build/emulator/appname.app/Frameworks/TNSCore.framework'
4) Target 'appname' has copy command from '/Users/mac/WebstormProjects/appname/node_modules/nativescript-ui-sidedrawer/node_modules/nativescript-ui-core/platforms/ios/TNSCore.framework' to '/Users/mac/WebstormProjects/appname/platforms/ios/build/emulator/appname.app/Frameworks/TNSCore.framework'
error: Multiple commands produce '/Users/mac/WebstormProjects/appname/platforms/ios/build/emulator/appname.app/Frameworks/TNSCore.framework/TNSCore':
1) Target 'appname' has copy command from '/Users/mac/WebstormProjects/appname/node_modules/nativescript-ui-core/platforms/ios/TNSCore.framework' to '/Users/mac/WebstormProjects/appname/platforms/ios/build/emulator/appname.app/Frameworks/TNSCore.framework'
2) Target 'appname' has copy command from '/Users/mac/WebstormProjects/appname/node_modules/nativescript-ui-gauge/node_modules/nativescript-ui-core/platforms/ios/TNSCore.framework' to '/Users/mac/WebstormProjects/appname/platforms/ios/build/emulator/appname.app/Frameworks/TNSCore.framework'
3) Target 'appname' has copy command from '/Users/mac/WebstormProjects/appname/node_modules/nativescript-ui-listview/node_modules/nativescript-ui-core/platforms/ios/TNSCore.framework' to '/Users/mac/WebstormProjects/appname/platforms/ios/build/emulator/appname.app/Frameworks/TNSCore.framework'
4) Target 'appname' has copy command from '/Users/mac/WebstormProjects/appname/node_modules/nativescript-ui-sidedrawer/node_modules/nativescript-ui-core/platforms/ios/TNSCore.framework' to '/Users/mac/WebstormProjects/appname/platforms/ios/build/emulator/appname.app/Frameworks/TNSCore.framework'
warning: Capabilities for appname may not function correctly because its entitlements use a placeholder team ID. To resolve this, select a development team in the build settings editor. (in target 'appname')
warning: duplicate output file '/Users/mac/WebstormProjects/appname/platforms/ios/build/emulator/appname.app/Frameworks/TNSCore.framework' on task: PBXCp /Users/mac/WebstormProjects/appname/node_modules/nativescript-ui-gauge/node_modules/nativescript-ui-core/platforms/ios/TNSCore.framework /Users/mac/WebstormProjects/appname/platforms/ios/build/emulator/appname.app/Frameworks/TNSCore.framework (in target 'appname')
warning: duplicate output file '/Users/mac/WebstormProjects/appname/platforms/ios/build/emulator/appname.app/Frameworks/TNSCore.framework/TNSCore' on task: PBXCp /Users/mac/WebstormProjects/appname/node_modules/nativescript-ui-gauge/node_modules/nativescript-ui-core/platforms/ios/TNSCore.framework /Users/mac/WebstormProjects/appname/platforms/ios/build/emulator/appname.app/Frameworks/TNSCore.framework (in target 'appname')
warning: duplicate output file '' on task: PBXCp /Users/mac/WebstormProjects/appname/node_modules/nativescript-ui-gauge/node_modules/nativescript-ui-core/platforms/ios/TNSCore.framework /Users/mac/WebstormProjects/appname/platforms/ios/build/emulator/appname.app/Frameworks/TNSCore.framework (in target 'appname')
warning: duplicate output file '/Users/mac/WebstormProjects/appname/platforms/ios/build/emulator/appname.app/Frameworks/TNSCore.framework' on task: PBXCp /Users/mac/WebstormProjects/appname/node_modules/nativescript-ui-listview/node_modules/nativescript-ui-core/platforms/ios/TNSCore.framework /Users/mac/WebstormProjects/appname/platforms/ios/build/emulator/appname.app/Frameworks/TNSCore.framework (in target 'appname')
warning: duplicate output file '/Users/mac/WebstormProjects/appname/platforms/ios/build/emulator/appname.app/Frameworks/TNSCore.framework/TNSCore' on task: PBXCp /Users/mac/WebstormProjects/appname/node_modules/nativescript-ui-listview/node_modules/nativescript-ui-core/platforms/ios/TNSCore.framework /Users/mac/WebstormProjects/appname/platforms/ios/build/emulator/appname.app/Frameworks/TNSCore.framework (in target 'appname')
warning: duplicate output file '' on task: PBXCp /Users/mac/WebstormProjects/appname/node_modules/nativescript-ui-listview/node_modules/nativescript-ui-core/platforms/ios/TNSCore.framework /Users/mac/WebstormProjects/appname/platforms/ios/build/emulator/appname.app/Frameworks/TNSCore.framework (in target 'appname')
warning: duplicate output file '/Users/mac/WebstormProjects/appname/platforms/ios/build/emulator/appname.app/Frameworks/TNSCore.framework' on task: PBXCp /Users/mac/WebstormProjects/appname/node_modules/nativescript-ui-sidedrawer/node_modules/nativescript-ui-core/platforms/ios/TNSCore.framework /Users/mac/WebstormProjects/appname/platforms/ios/build/emulator/appname.app/Frameworks/TNSCore.framework (in target 'appname')
warning: duplicate output file '/Users/mac/WebstormProjects/appname/platforms/ios/build/emulator/appname.app/Frameworks/TNSCore.framework/TNSCore' on task: PBXCp /Users/mac/WebstormProjects/appname/node_modules/nativescript-ui-sidedrawer/node_modules/nativescript-ui-core/platforms/ios/TNSCore.framework /Users/mac/WebstormProjects/appname/platforms/ios/build/emulator/appname.app/Frameworks/TNSCore.framework (in target 'appname')
warning: duplicate output file '' on task: PBXCp /Users/mac/WebstormProjects/appname/node_modules/nativescript-ui-sidedrawer/node_modules/nativescript-ui-core/platforms/ios/TNSCore.framework /Users/mac/WebstormProjects/appname/platforms/ios/build/emulator/appname.app/Frameworks/TNSCore.framework (in target 'appname')
note: Using new build systemnote: Planning buildnote: Constructing build description
** BUILD FAILED **

Unable to apply changes on device: 5E60EAED-CD38-4D00-B4C8-CD78379E326B. Error is: Command xcodebuild failed with exit code 65.


├── @nota/[email protected]
├─┬ [email protected]
│ ├─┬ [email protected]
│ │ ├─┬ [email protected]
│ │ │ ├── [email protected]
│ │ │ ├── [email protected]
│ │ │ ├─┬ [email protected]
│ │ │ │ └── [email protected]
│ │ │ ├─┬ [email protected]
│ │ │ │ └── [email protected] deduped
│ │ │ └── [email protected]
│ │ ├── [email protected] deduped
│ │ └── [email protected]
│ ├─┬ [email protected]
│ │ └─┬ [email protected]
│ │   ├── [email protected]
│ │   └── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected] deduped
│ ├── [email protected] deduped
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ └─┬ [email protected]
│ │   └── [email protected] deduped
│ ├── [email protected]
│ └─┬ [email protected]
│   └─┬ [email protected]
│     └── [email protected]
├─┬ [email protected]
│ ├── [email protected] deduped
│ ├── [email protected] deduped
│ ├── [email protected]
│ ├── [email protected] deduped
│ └── [email protected]
├─┬ [email protected]
│ └── [email protected] deduped
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├─┬ [email protected]
│ └── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├─┬ [email protected]
│ └── [email protected]
├─┬ [email protected]
│ └── [email protected]
├─┬ [email protected]
│ └── [email protected]
├─┬ [email protected]
│ └── [email protected]
├── [email protected]
├── [email protected]
└─┬ [email protected]
  └── [email protected]

@mbektchiev
Copy link
Contributor

You'll have to upgrade nativescript-ui-calendar as it uses an older version of nativescript-ui-core. After you do it, you may need to delete node_modules or execute npm dedupe, because I can see that you still have many occurrences of nativescript-ui-core in the directory tree

├─┬ [email protected]
│ └── [email protected]
├─┬ [email protected]
│ └── [email protected]

@peppeg85
Copy link

peppeg85 commented Sep 27, 2018

hello, i've updated everything and now the build is ok...but the app crashes after the splashscreen...

@peppeg85
Copy link

in the build i have this error:

error: the following command failed with exit code 0 but produced no further output
Ld /Users/mac/Library/Developer/Xcode/DerivedData/appname-crqbudvtguybzbcbtvxssrrpwiqq/Build/Intermediates.noindex/appname.build/Debug-iphonesimulator/appname.build/Objects-normal/i386/appname normal i386

@ignaciofuentes
Copy link

ignaciofuentes commented Sep 28, 2018

I am having a similar issue with Xcode 10.

As soon as I add the google maps plugin the app fails to build.
Switching to legacy build, as @larssn suggested fixes this problem.

Please see:

https://www.screencast.com/t/z4Mo73HihZre

@mbektchiev
Copy link
Contributor

@peppeg85 Can you send us more information about the crash? Some device logs for example and what kind of crash it is (e.g. Unhandled exception, signal, Access violation). You can refer to this docs section for guidelines how to obtain diagnostic logs from the device if tns run's output seems to be incomplete for some reason.

@ignaciofuentes We couldn't reproduce the error that you see. Can you tell us the exact version strings of CocoaPods and Xcode on your machine? You can send us the outputs of pod --version, xcodebuild -version commands. It seems that the cause is the plugin's CocoaPod reference. With the latest versions (Xcode 10.0 Build version 10A255 and CocoaPods - 1.5.3) there's no such error.

@larssn
Copy link
Author

larssn commented Oct 1, 2018

I am having a similar issue with Xcode 10.

As soon as I add the google maps plugin the app fails to build.
Switching to legacy build, as @larssn suggested fixes this problem.

Please see:

https://www.screencast.com/t/z4Mo73HihZre

Have you tried:

rm -rf node_modules
rm -rf platforms
rm package-lock.json
<bring all nativescript packages up to date in package.json>
npm i
tns run

Basically that sequence fixed my issues.

@peppeg85
Copy link

peppeg85 commented Oct 2, 2018

hello i have this error:

could not attach to pid:"2228"
Ensure “appname” is not already running, and mac has permission to debug it.

is it a problem of permissions?

Edit:

during nativescript running i have these warnings, maybe someone of them could be useful:

warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Y0LVQ9G7OBT/UIKit-1V5UHAPTOD24G.pcm: No such file or directory
note: while processing /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Y0LVQ9G7OBT/UIKit-1V5UHAPTOD24G.pcm
note: Linking a static library that was built with -gmodules, but the module cache was not found.  Redistributable static libraries should never be built with module debugging enabled.  The debug experience will be degraded due to incomplete debug information.
warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Y0LVQ9G7OBT/Darwin-38I6DLZ5IH61J.pcm: No such file or directory
note: while processing /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Y0LVQ9G7OBT/Darwin-38I6DLZ5IH61J.pcm
warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Y0LVQ9G7OBT/Foundation-3DFYNEBRQSXST.pcm: No such file or directory
note: while processing /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Y0LVQ9G7OBT/Foundation-3DFYNEBRQSXST.pcm
warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Y0LVQ9G7OBT/Dispatch-2LX9MWM6UEPQW.pcm: No such file or directory
note: while processing /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Y0LVQ9G7OBT/Dispatch-2LX9MWM6UEPQW.pcm
warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Y0LVQ9G7OBT/ObjectiveC-1R06XOY9T4FIM.pcm: No such file or directory
note: while processing /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Y0LVQ9G7OBT/ObjectiveC-1R06XOY9T4FIM.pcm
warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/9G23JDZCI6P8/UIKit-1V5UHAPTOD24G.pcm: No such file or directory
note: while processing /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/9G23JDZCI6P8/UIKit-1V5UHAPTOD24G.pcm
note: Linking a static library that was built with -gmodules, but the module cache was not found.  Redistributable static libraries should never be built with module debugging enabled.  The debug experience will be degraded due to incomplete debug information.
warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/9G23JDZCI6P8/Darwin-38I6DLZ5IH61J.pcm: No such file or directory
note: while processing /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/9G23JDZCI6P8/Darwin-38I6DLZ5IH61J.pcm
warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/9G23JDZCI6P8/Foundation-3DFYNEBRQSXST.pcm: No such file or directory
note: while processing /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/9G23JDZCI6P8/Foundation-3DFYNEBRQSXST.pcm
warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/9G23JDZCI6P8/Dispatch-2LX9MWM6UEPQW.pcm: No such file or directory
note: while processing /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/9G23JDZCI6P8/Dispatch-2LX9MWM6UEPQW.pcm
warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/9G23JDZCI6P8/ObjectiveC-1R06XOY9T4FIM.pcm: No such file or directory
note: while processing /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/9G23JDZCI6P8/ObjectiveC-1R06XOY9T4FIM.pcm
note: Using new build systemnote: Planning buildnote: Constructing build description
Project successfully built.
Installing...
Successfully installed on device with identifier '5E60EAED-CD38-4D00-B4C8-CD78379E326B'.
Successfully transferred all files.

@mbektchiev
Copy link
Contributor

If you have a running debugging session in CLI (tns run or tns debug) you may not be able to start the app from Xcode and vice versa. Make sure that you've stopped all sessions before starting a new one.

These warnings are normal for all tns ios builds and we've already fixed them -- in the next release of NativeScript they won't show up.

@peppeg85
Copy link

peppeg85 commented Oct 2, 2018

here there are xcode errors:

dyld`__abort_with_payload:
    0x110e32240 <+0>:  movl   $0x2000209, %eax          ; imm = 0x2000209 
    0x110e32245 <+5>:  movq   %rcx, %r10
    0x110e32248 <+8>:  syscall 
->  0x110e3224a <+10>: jae    0x110e32254               ; <+20> Thread 1: signal SIGABRT
    0x110e3224c <+12>: movq   %rax, %rdi
    0x110e3224f <+15>: jmp    0x110e31aa8               ; cerror_nocancel
    0x110e32254 <+20>: retq   
    0x110e32255 <+21>: nop    
    0x110e32256 <+22>: nop    
    0x110e32257 <+23>: nop  

dyld: Symbol not found: __T0BOWV
  Referenced from: /Users/mac/Library/Developer/CoreSimulator/Devices/A8869A1E-A38E-4FEE-9181-AFD9A5852FF3/data/Containers/Bundle/Application/9AC06D71-D294-4C71-AE86-5AD33DCE701F/myappname.app/Frameworks/NotaWebViewExt.framework/NotaWebViewExt
  Expected in: /Users/mac/Library/Developer/CoreSimulator/Devices/A8869A1E-A38E-4FEE-9181-AFD9A5852FF3/data/Containers/Bundle/Application/9AC06D71-D294-4C71-AE86-5AD33DCE701F/myappname.app/Frameworks/libswiftCore.dylib
 in /Users/mac/Library/Developer/CoreSimulator/Devices/A8869A1E-A38E-4FEE-9181-AFD9A5852FF3/data/Containers/Bundle/Application/9AC06D71-D294-4C71-AE86-5AD33DCE701F/myappname.app/Frameworks/NotaWebViewExt.framework/NotaWebViewExt
(lldb) 

@mbektchiev
Copy link
Contributor

@peppeg85 Thanks! This is far more meaningful now. I think that the problem is with the NotaWebViewExt.framework, it hasn't been built with support for Swift 4.2 which comes with Xcode 10. Maybe your project links with an older version. This framework seems to be a dependency of the [email protected] plugin. You should check and see if there's an update which fixes the problem.

@mbektchiev
Copy link
Contributor

It seems that version 0.5.0 is rebuilt with Xcode 10 and should have this problem fixed. Refs Added official support for Swift 4.2.

@peppeg85
Copy link

peppeg85 commented Oct 2, 2018

yes, i've upgraded all the dependencies to the latest, but i still crashes, now i have this alert from xcode:

Failed to load Info.plist from bundle at path /Users/mac/Library/Developer/CoreSimulator/Devices/A8869A1E-A38E-4FEE-9181-AFD9A5852FF3/data/Library/Caches/com.apple.mobile.installd.staging/temp.1jTLCJ/extracted/Payload/myappname.app

this is the error in the console:

Unable to apply changes on device: A8869A1E-A38E-4FEE-9181-AFD9A5852FF3. Error is: Command xcrun with arguments simctl install A8869A1E-A38E-4FEE-9181-AFD9A5852FF3 /Users/mac/WebstormProjects/myappname/platforms/ios/build/emulator/myappname.app failed with exit code 1. Error output:
 An error was encountered processing the command (domain=IXUserPresentableErrorDomain, code=1):
This app could not be installed at this time.
Failed to load Info.plist from bundle at path /Users/mac/Library/Developer/CoreSimulator/Devices/A8869A1E-A38E-4FEE-9181-AFD9A5852FF3/data/Library/Caches/com.apple.mobile.installd.staging/temp.hj86Ap/extracted/Payload/myappname.app
Failed to load Info.plist from bundle at path /Users/mac/Library/Developer/CoreSimulator/Devices/A8869A1E-A38E-4FEE-9181-AFD9A5852FF3/data/Library/Caches/com.apple.mobile.installd.staging/temp.hj86Ap/extracted/Payload/myappname.app
Underlying error (domain=MIInstallerErrorDomain, code=35):
        Failed to load Info.plist from bundle at path /Users/mac/Library/Developer/CoreSimulator/Devices/A8869A1E-A38E-4FEE-9181-AFD9A5852FF3/data/Library/Caches/com.apple.mobile.installd.staging/temp.hj86Ap/extracted/Payload/myappname.app
.

@mbektchiev
Copy link
Contributor

This is related to another issue that we found with Xcode 10. The fix has already been published in NPM as nativescript@next. You can upgrade NativeScript CLI and try again.

Refs: #3920

@peppeg85
Copy link

peppeg85 commented Oct 2, 2018

i'm trying to update nativescript but i have the eaccess error, i tried the guide:
https://docs.npmjs.com/getting-started/fixing-npm-permissions
but i always have the problem...

EACCES: permission denied, mkdir '/usr/local/lib/node_modules/nativescript/docs/html'

i've followed all the guide, if i type "command -v nvm" it answer nvm, but when i run " npm install -g nativescript@next " i have the eaccess error

@rosen-vladimirov
Copy link
Contributor

Hey @peppeg85 ,
This is a known problem when using npm - the postinstall script is run with a user nobody, which have limited permissions. You can try:

npm install -g nativescript --unsafe-perm

Which should fix the problem.

@peppeg85
Copy link

peppeg85 commented Oct 2, 2018

@rosen-vladimirov thanks, it worked...with sudo, but installed the 4.2.4, is it right?
EDIT: i missed @next

@peppeg85
Copy link

peppeg85 commented Oct 2, 2018

sorry but...i've updated nativescript, but when i run it uses always tns-ios 4.2.0. I tried the global installation and also a local update, in the package lock file i have nativescript version 5.0.0-10-02, but when i run ios it uses tns-ios version 4.2.0
sorry for one more answer, i have this error:

Unable to apply changes on device: A8869A1E-A38E-4FEE-9181-AFD9A5852FF3. Error is: Processing node_modules failed. Error: ENOENT: no such file or directory, open '/Users/mac/WebstormProjects/myappname/platforms/ios/myappname/app/tns_modules/nativescript/node_modules/ios-device-lib/node_modules/.bin/package.json'.

EDIT: it seems to be this error, but if i delete and reinstall node_modules and reinstall
it doesn't run, this after the nativescript update:

 https://github.com/NativeScript/nativescript-cli/issues/3864

@felipebueno
Copy link

Hey @peppeg85, did you try running tns update before running the project?

@peppeg85
Copy link

peppeg85 commented Oct 3, 2018

no, i didn't, now it works, i had to reinstall cocoapods too

edit:
i'm trying to setup another mac, ive updated nativescript, cocoapods, run tns update....and have the same error:

 Error is: Processing node_modules failed. Error: ENOENT: no such file or directory, open '/Users/macbook/WebstormProjects/myappname/platforms/ios/myappname/app/tns_modules/npm/node_modules/node-gyp/node_modules/.bin/package.json'.

on this i still dont update xcode, here is tns doctor:

No issues were detected.
✔ Your ANDROID_HOME environment variable is set and points to correct directory.
✔ Your adb from the Android SDK is correctly installed.
✔ The Android SDK is installed.
✔ A compatible Android SDK for compilation is found.
✔ Javac is installed and is configured properly.
✔ The Java Development Kit (JDK) is installed and is configured properly.
✔ Xcode is installed and is configured properly.
✔ xcodeproj is installed and is configured properly.
✔ CocoaPods are installed.
✔ CocoaPods update is not required.
✔ CocoaPods are configured properly.
✔ Your current CocoaPods version is newer than 1.0.0.
✔ Python installed and configured correctly.
✔ The Python 'six' package is found.
✔ Getting NativeScript components versions information...
✔ Component nativescript has 5.0.0-2018-10-02-12369 version and is up to date.
✔ Component tns-core-modules has 4.2.1 version and is up to date.
✖ Component tns-android is not installed.
✔ Component tns-ios has 4.2.0 version and is up to date.

@mbektchiev
Copy link
Contributor

@peppeg85 removing platforms and node_modules directories should fix the problem:

rm -rf platforms node_modules

@peppeg85
Copy link

peppeg85 commented Oct 3, 2018

i tried but it doesnt work,
following this discussion:

https://github.com/NativeScript/nativescript-cli/issues/3703

i've upgraded xcode, nativescript, cocoapods, run tns update...can i open another issue or can i paste here the tns debug ios --log trace report?

--SOLVED:
imported the project from github again and it runs....

@mbektchiev
Copy link
Contributor

I'm glad you've fixed it!

It seems that the issue was triggered by having npm installed locally: /Users/macbook/WebstormProjects/myappname/platforms/ios/myappname/app/tns_modules/npm/.... Most probably when you attempted to upgrade npm to the latest version you've omitted the -g switch and that's how it has appeared in the first place.

@peppeg85
Copy link

peppeg85 commented Oct 3, 2018

maybe, yes i ran npm i npm, if i update it now i should run

npm i -g npm

right?

@mbektchiev
Copy link
Contributor

Yes.

@peppeg85
Copy link

peppeg85 commented Oct 3, 2018

thanks for all the support

@divyachandana
Copy link

UPDATED every Plugin. i can able to build app now. my package.json looks like this
{
"description": "NativeScript Application",
"license": "SEE LICENSE IN ",
"readme": "NativeScript Application",
"repository": "",
"nativescript": {
"id": "org.socialresponsibilityscore.srs",
"tns-ios": {
"version": "5.0.0-2018-10-08-180008-01"
},
"tns-android": {
"version": "5.0.0-2018-10-12-112221-01"
}
},
"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",
"email-validator": "^2.0.3",
"nativescript-angular": "^6.1.0",
"nativescript-aws-sdk": "0.0.4",
"nativescript-camera": "^4.0.2",
"nativescript-imagepicker": "^6.0.4",
"nativescript-plugin-firebase": "^7.1.6",
"nativescript-social-share": "^1.5.1",
"nativescript-socket.io": "^0.9.0",
"nativescript-theme-core": "~1.0.4",
"nativescript-ui-calendar": "^3.9.0",
"nativescript-ui-chart": "^3.9.0",
"nativescript-ui-listview": "^3.7.1",
"nativescript-ui-sidedrawer": "^4.3.1",
"node-sass": "^4.9.4",
"reflect-metadata": "^0.1.12",
"rxjs": "^6.3.3",
"rxjs-compat": "^6.3.3",
"tns-core-modules": "^4.2.1",
"tns-platform-declarations": "^4.2.1",
"zone.js": "^0.8.2"
},
"devDependencies": {
"@angular/compiler-cli": "~6.1.0-rc.0",
"@ngtools/webpack": "~6.1.0-rc.2",
"babel-traverse": "6.4.5",
"babel-types": "6.4.5",
"babylon": "6.4.5",
"lazy": "1.0.11",
"nativescript-dev-typescript": "^0.7.1",
"nativescript-dev-webpack": "^0.15.0",
"typescript": "~2.7.2"
}
}

@AnHLB
Copy link

AnHLB commented Dec 18, 2018

Please reopen the issue @larssn

I found a solution, see the bottom of this comment.

I'm having the same problem described here.

I did execute the following commands:

rm -rf node_modules
rm -rf platforms
rm package-lock.json
npm i
pod repo update
tns run ios

I'm still facing the issue. I will try switching to the Legacy Build System now.

Here's the (anonymized) build system log:

Xcode build...
error: unexpected duplicate task: CodeSign /path/platforms/ios/build/emulator/MyApp.app/Frameworks/TNSCore.framework (in target 'MyApp')
error: unexpected duplicate task: CodeSign /path/platforms/ios/build/emulator/MyApp.app/Frameworks/TNSCore.framework (in target 'MyApp')
error: Multiple commands produce '/path/platforms/ios/build/emulator/MyApp.app/Frameworks/TNSCore.framework':
1) Target 'MyApp' has copy command from '/path/node_modules/nativescript-ui-core/platforms/ios/TNSCore.framework' to '/path/platforms/ios/build/emulator/MyApp.app/Frameworks/TNSCore.framework'
2) Target 'MyApp' has copy command from '/path/node_modules/nativescript-ui-listview/node_modules/nativescript-ui-core/platforms/ios/TNSCore.framework' to '/path/platforms/ios/build/emulator/MyApp.app/Frameworks/TNSCore.framework'
error: Multiple commands produce '/path/platforms/ios/build/emulator/MyApp.app/Frameworks/TNSCore.framework/TNSCore':
1) Target 'MyApp' has copy command from '/path/node_modules/nativescript-ui-core/platforms/ios/TNSCore.framework' to '/path/platforms/ios/build/emulator/MyApp.app/Frameworks/TNSCore.framework'
2) Target 'MyApp' has copy command from '/path/node_modules/nativescript-ui-listview/node_modules/nativescript-ui-core/platforms/ios/TNSCore.framework' to '/path/platforms/ios/build/emulator/MyApp.app/Frameworks/TNSCore.framework'
warning: duplicate output file '/path/platforms/ios/build/emulator/MyApp.app/Frameworks/TNSCore.framework' on task: PBXCp /path/node_modules/nativescript-ui-listview/node_modules/nativescript-ui-core/platforms/ios/TNSCore.framework /path/platforms/ios/build/emulator/MyApp.app/Frameworks/TNSCore.framework (in target 'MyApp')
warning: duplicate output file '/path/platforms/ios/build/emulator/MyApp.app/Frameworks/TNSCore.framework/TNSCore' on task: PBXCp /path/node_modules/nativescript-ui-listview/node_modules/nativescript-ui-core/platforms/ios/TNSCore.framework /path/platforms/ios/build/emulator/MyApp.app/Frameworks/TNSCore.framework (in target 'MyApp')
warning: duplicate output file '' on task: PBXCp /path/node_modules/nativescript-ui-listview/node_modules/nativescript-ui-core/platforms/ios/TNSCore.framework /path/platforms/ios/build/emulator/MyApp.app/Frameworks/TNSCore.framework (in target 'MyApp')
note: Using new build systemnote: Planning buildnote: Constructing build description
** BUILD FAILED **

Dependencies:

"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",
    "@ngrx/effects": "^6.1.0",
    "@ngrx/store": "^6.1.0",
    "nativescript-angular": "^6.1.0",
    "nativescript-feedback": "^1.2.0",
    "nativescript-imagepicker": "~5.0.0",
    "nativescript-loading-indicator": "^2.4.0",
    "nativescript-localize": "^3.0.5",
    "nativescript-localstorage": "^1.1.5",
    "nativescript-plugin-firebase": "^6.4.1",
    "nativescript-theme-core": "~1.0.4",
    "nativescript-tslib": "^1.9.1-r1",
    "nativescript-ui-listview": "^3.7.0",
    "ngrx-store-localstorage": "^5.0.1",
    "ngrx-store-logger": "^0.2.2",
    "reflect-metadata": "~0.1.10",
    "rxjs": "^6.0.0",
    "tns-core-modules": "^4.2.1",
    "zone.js": "^0.8.26"
  },
  "devDependencies": {
    "@angular/compiler-cli": "~6.1.0",
    "@ngtools/webpack": "~6.2.0",
    "codelyzer": "~4.3.0",
    "nativescript-dev-sass": "~1.6.0",
    "nativescript-dev-typescript": "^0.7.4",
    "nativescript-dev-webpack": "^0.16.1",
    "tns-platform-declarations": "^4.2.0",
    "tslint": "~5.10.0",
    "typescript": "~2.7.2"
  }

EDIT

After switching to the Legacy Build System I was not able to build successfully.
I had to execute the erase all contents and settings feature from the iOS Simulator first.

Now I'm able to build using Xcode directly. tns run ios still fails with the following (anonymized) output:

Xcode build...
=== BUILD TARGET MyApp OF PROJECT MyApp WITH CONFIGURATION Debug ===
Warning: Multiple build commands for output file /path/platforms/ios/build/emulator/MyApp.app/Frameworks/TNSCore.framework
=== BUILD TARGET MyApp OF PROJECT MyApp WITH CONFIGURATION Debug ===
warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Y0LVQ9G7OBT/UIKit-1V5UHAPTOD24G.pcm: No such file or directory
note: while processing /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Y0LVQ9G7OBT/UIKit-1V5UHAPTOD24G.pcm
note: Linking a static library that was built with -gmodules, but the module cache was not found.  Redistributable static libraries should never be built with module debugging enabled.  The debug experience will be degraded due to incomplete debug information.
warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Y0LVQ9G7OBT/Darwin-38I6DLZ5IH61J.pcm: No such file or directory
note: while processing /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Y0LVQ9G7OBT/Darwin-38I6DLZ5IH61J.pcm
warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Y0LVQ9G7OBT/Foundation-3DFYNEBRQSXST.pcm: No such file or directory
note: while processing /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Y0LVQ9G7OBT/Foundation-3DFYNEBRQSXST.pcm
warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Y0LVQ9G7OBT/Dispatch-2LX9MWM6UEPQW.pcm: No such file or directory
note: while processing /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Y0LVQ9G7OBT/Dispatch-2LX9MWM6UEPQW.pcm
warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Y0LVQ9G7OBT/ObjectiveC-1R06XOY9T4FIM.pcm: No such file or directory
note: while processing /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Y0LVQ9G7OBT/ObjectiveC-1R06XOY9T4FIM.pcm
warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/9G23JDZCI6P8/UIKit-1V5UHAPTOD24G.pcm: No such file or directory
note: while processing /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/9G23JDZCI6P8/UIKit-1V5UHAPTOD24G.pcm
note: Linking a static library that was built with -gmodules, but the module cache was not found.  Redistributable static libraries should never be built with module debugging enabled.  The debug experience will be degraded due to incomplete debug information.
warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/9G23JDZCI6P8/Darwin-38I6DLZ5IH61J.pcm: No such file or directory
note: while processing /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/9G23JDZCI6P8/Darwin-38I6DLZ5IH61J.pcm
warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/9G23JDZCI6P8/Foundation-3DFYNEBRQSXST.pcm: No such file or directory
note: while processing /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/9G23JDZCI6P8/Foundation-3DFYNEBRQSXST.pcm
warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/9G23JDZCI6P8/Dispatch-2LX9MWM6UEPQW.pcm: No such file or directory
note: while processing /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/9G23JDZCI6P8/Dispatch-2LX9MWM6UEPQW.pcm
warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/9G23JDZCI6P8/ObjectiveC-1R06XOY9T4FIM.pcm: No such file or directory
note: while processing /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/9G23JDZCI6P8/ObjectiveC-1R06XOY9T4FIM.pcm
error: make directory /path/platforms/ios/build/emulator/MyApp.app/Frameworks/TNSCore.framework: File exists
2018-09-23 06:05:27.628 xcodebuild[7528:129524]  DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-14306.16/Xcode3Core/LegacyProjects/Frameworks/DevToolsCore/DevToolsCore/BuildSystem/Runtime/PBXTargetBuildContext.mm:757
Details:  unexpected successful exit code from cancelled command <C0029:'PBXCp TNSListView.framework':P16>
Object:   <PBXTargetBuildContext: 0x7fa3974e7b50>
Method:   -createCommandInvocationRecordFromInvocation:
Thread:   <NSThread: 0x7fa397b9f330>{number = 10, name = (null)}
Please file a bug at https://bugreport.apple.com with this warning message and any useful information you can provide.
** BUILD FAILED **

Here's my tns doctor output:

✔ Getting environment information 

No issues were detected.
✔ Your ANDROID_HOME environment variable is set and points to correct directory.
✔ Your adb from the Android SDK is correctly installed.
✔ The Android SDK is installed.
✔ A compatible Android SDK for compilation is found.
✔ Javac is installed and is configured properly.
✔ The Java Development Kit (JDK) is installed and is configured properly.
✔ Xcode is installed and is configured properly.
✔ xcodeproj is installed and is configured properly.
✔ CocoaPods are installed.
✔ CocoaPods update is not required.
✔ CocoaPods are configured properly.
✔ Your current CocoaPods version is newer than 1.0.0.
✔ Python installed and configured correctly.
✔ The Python 'six' package is found.
✔ Getting NativeScript components versions information...
✔ Component nativescript has 4.2.4 version and is up to date.
✔ Component tns-core-modules has 4.2.1 version and is up to date.
✖ Component tns-android is not installed.
✔ Component tns-ios has 4.2.0 version and is up to date.

Solution:

I've managed to find the root of all evil:

npm list nativescript-ui-core
├─┬ [email protected]
│ └── [email protected] 
└─┬ [email protected]
  └── [email protected] 

Fix:

tns plugin update nativescript-imagepicker
npm dedupe

Now everything's working like a charm. Even with the new build system.

In my situation, it is different. I just run command line npm dedupe . Everything works like a charm without error 65

@khoists02

This comment has been minimized.

@rosen-vladimirov
Copy link
Contributor

Hey all,
As this issue is quite old and contains a lot of information, I'll try to summary everything described above and after that I'll close the issue from further comments. In case you face any of the errors mentioned in the other comments, please follow the steps below.

  1. Ensure all of nativescript-ui... packages referenced in your application are updated to their latest versions.
  2. Remove package-lock.json, node_modules and platforms directories.
  3. Ensure your cocoapods repository is up-to-date: execute pod repo update command.
  4. Execute tns run ios

In case the build still fails, please open a new issue and provide all the required information in the issue template. You can also add the out.txt file produced from the execution of the following command: tns build ios --log trace &>out.txt.

@NativeScript NativeScript locked as resolved and limited conversation to collaborators Apr 15, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests