question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Command xcode build failed with exit code 65

See original GitHub issue

Environment Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):

  • CLI: 5.0.0
  • Cross-platform modules: 5.0.3
  • Android Runtime: 5.0.0
  • iOS Runtime: 5.0.0
  • Plugin(s):
    • nativescript-angular: ~7.0.0
      
    • nativescript-camera: ^4.1.1,
      
    • nativescript-theme-core: ~1.0.4,
      
    • nativescript-ui-listview: ^3.8.0,
      

MAC High Sierra 10.13.3 XCode: 9.0.1

Describe the bug Error log:

Skipping node_modules folder! Use the syncAllFiles option to sync files from this folder. Searching for devices… Executing before-liveSync hook from /Users/user/Documents/ngNative/hooks/before-liveSync/nativescript-angular-sync.js Executing before-watchPatterns hook from /Users/user/Documents/ngNative/hooks/before-watchPatterns/nativescript-dev-typescript.js Executing before-watchPatterns hook from /Users/user/Documents/ngNative/hooks/before-watchPatterns/nativescript-dev-webpack.js Executing before-watch hook from /Users/user/Documents/ngNative/hooks/before-watch/nativescript-dev-typescript.js Found peer TypeScript 3.1.6 Executing before-watch hook from /Users/user/Documents/ngNative/hooks/before-watch/nativescript-dev-webpack.js Copying template files… Platform ios successfully added. v5.0.0 Executing before-shouldPrepare hook from /Users/user/Documents/ngNative/hooks/before-shouldPrepare/nativescript-dev-webpack.js Executing before-prepare hook from /Users/user/Documents/ngNative/hooks/before-prepare/nativescript-dev-typescript.js Hook skipped because either bundling or livesync is in progress. Preparing project… Executing before-prepareJSApp hook from /Users/user/Documents/ngNative/hooks/before-prepareJSApp/nativescript-dev-webpack.js Successfully prepared plugin nativescript-angular for ios. Successfully prepared plugin nativescript-camera for ios. Successfully prepared plugin nativescript-theme-core for ios. Successfully prepared plugin nativescript-ui-listview for ios. Successfully prepared plugin tns-core-modules for ios. Successfully prepared plugin nativescript-intl for ios. nativescript-permissions is not supported for ios. Successfully prepared plugin nativescript-permissions for ios. Successfully prepared plugin nativescript-ui-core for ios. Successfully prepared plugin tns-core-modules-widgets for ios. Project successfully prepared (iOS) Executing after-prepare hook from /Users/user/Documents/ngNative/hooks/after-prepare/nativescript-dev-webpack.js Building project… Xcode build… === BUILD TARGET ngNative OF PROJECT ngNative WITH CONFIGURATION Debug === ld: framework not found CoreServices for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation) ld: warning: linking ObjC for iOS Simulator, but dylib (/Users/user/Documents/ngNative/platforms/ios/internal/NativeScript.framework/NativeScript) was compiled for MacOSX ld: warning: linking ObjC for iOS Simulator, but dylib (/Users/user/Documents/ngNative/node_modules/nativescript-ui-listview/platforms/ios/TNSListView.framework/TNSListView) was compiled for MacOSX ld: warning: linking ObjC for iOS Simulator, but dylib (/Users/user/Documents/ngNative/node_modules/nativescript-ui-core/platforms/ios/TNSCore.framework/TNSCore) was compiled for MacOSX ld: warning: ObjC dylib (/Users/user/Documents/ngNative/node_modules/tns-core-modules-widgets/platforms/ios/TNSWidgets.framework/TNSWidgets) was compiled for iOS Simulator, but dylibs others were compiled for MacOSX ld: framework not found CoreServices for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) === BUILD TARGET ngNative OF PROJECT ngNative WITH CONFIGURATION Debug === error: the following command failed with exit code 1 but produced no further output Ld build/ngNative.build/Debug-iphonesimulator/ngNative.build/Objects-normal/x86_64/ngNative normal x86_64 ** BUILD FAILED **

Unable to apply changes on device: BF6E776F-C30A-4908-9746-EB3DFF0A9317. Error is: Command xcodebuild failed with exit code 65. Executing after-watch hook from /Users/user/Documents/ngNative/hooks/after-watch/nativescript-dev-typescript.js Stopping tsc watch Executing after-watch hook from /Users/user/Documents/ngNative/hooks/after-watch/nativescript-dev-webpack.js Stopping webpack watch

To Reproduce

I created a new app via tns create newApp --ng and added the plugins above.

Expected behavior

Sample project

Additional context

App runs on Genymotion Android emulation, but does not run on IOS emulator.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:22 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
alereisancommented, Dec 18, 2018

I have opened the project in xcode. Let xcode auto-fix warnings. Ran directly from xcode on iPhone 6 successfully.

xcode: 10.1 macos: mojave

0reactions
rosen-vladimirovcommented, May 13, 2019

Thanks guys, as this issue is quite old and contains different problems and solutions, I’m closing it. In case you have similar problem, please open a new issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

xcodebuild: command failed with exit code 65 #966 - GitHub
For some background context, error 65 from xcodebuild is a generic error that simply describes that xcodebuild couldn't do a build, which of ......
Read more >
cordova run with ios error .. Error code 65 for command
Future visitors: Archive failed means there is a signature related problem i.e. no provisioning profile. Open Xcode and select a team and Xcode...
Read more >
xcodebuild Exit Code 65 - CircleCI
In your normal development workflow, there is no derived data folder or other files common to Xcode. The working directory won't exist, and...
Read more >
Xcodebuild failed with code 65 (WARNING: The server did not ...
Error code 65 is the signing issue.you need to sign it properly with the same developer account (Certificate and profile) which is used...
Read more >
Unable to build iOS app - Command failed with exit code 65 ...
Hi, the signing certificate error is likely to blame for the build failing. It could be an error in the configuration or a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found