nativescript-cli: Command xcode build failed with exit code 65
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.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 22 (8 by maintainers)
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