Closed YuvarajManickam closed 8 years ago
Try uninstalling and reinstalling XCode. See this forum post for more information. If this doesn't help, could you provide more details, e.g. the output of ionic info
?
Thank you for your reply @iignatov . Here is the info on ionic,
ionic info
Your system information:
Cordova CLI: 6.2.0 Ionic Framework Version: 1.3.1 Ionic CLI Version: 1.7.15 Ionic App Lib Version: 0.7.2 ios-deploy version: Not installed ios-sim version: Not installed OS: Mac OS X El Capitan Node Version: v4.4.5 Xcode version: Xcode 7.3.1 Build version 7D1014
Dependency warning - for the CLI to run correctly,
it is highly recommended to install/upgrade the following:Install ios-sim to deploy iOS applications.
npm install -g ios-sim
(may require sudo) Install ios-deploy to deploy iOS applications to devices.npm install -g ios-deploy
(may require sudo)
Also, when I tried to when I tried to install ios-deploy am getting following warning,
"> ios-deploy@1.8.6 preinstall /usr/local/lib/node_modules/ios-deploy
> ./src/scripts/check_reqs.js && xcodebuild
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!! WARNING: You are on OS X 10.11 El Capitan, you may need to add the
!!!! WARNING: `--unsafe-perm=true` flag when running `npm install`
!!!! WARNING: or else it will fail.
!!!! WARNING: link:
!!!! WARNING: https://github.com/phonegap/ios-deploy#os-x-1011-el-capitan
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
2016-06-10 15:05:57.476 xcodebuild[40108:288797] launchctl print returned an error status: 256: exited? 1,1 signaled? 0,0 stopped? 0,1
2016-06-10 15:05:57.477 xcodebuild[40108:288797] CoreSimulator is attempting to unload a stale CoreSimulatorService job. Detected Xcode.app relocation or CoreSimulatorService version change. Framework path (/Applications/Xcode 7.3.1.app/Contents/Developer/Library/PrivateFrameworks/CoreSimulator.framework) and version (209.19) does not match existing job path (/Applications/Xcode 7.3.1.app/Contents/Developer/Library/PrivateFrameworks/CoreSimulator.framework/Versions/A/XPCServices/com.apple.CoreSimulator.CoreSimulatorService.xpc/Contents/MacOS/com.apple.CoreSimulator.CoreSimulatorService) and version ((null)).
Could not switch to audit session 0x18d01: 1: Operation not permitted
2016-06-10 15:05:57.479 xcodebuild[40108:288797] Failed to us launchctl asuser, falling back to not using asuser.
2016-06-10 15:05:57.736 xcodebuild[40108:288797] Failed to locate a valid instance of CoreSimulatorService in the bootstrap. Adding it now.
2016-06-10 15:05:57.741 xcodebuild[40108:288797] launchctl print returned an error status: 256: exited? 1,1 signaled? 0,0 stopped? 0,1
2016-06-10 15:05:57.742 xcodebuild[40108:288797] *** Assertion failure in -[SimServiceContext reloadServiceIfMovedOrAbortIfWeAreInvalid], /BuildRoot/Library/Caches/com.apple.xbs/Sources/CoreSimulator/CoreSimulator-209.19/CoreSimulator/SimServiceContext.m:537
** INTERNAL ERROR: Uncaught exception **
Uncaught Exception: The loaded com.apple.CoreSimulator.CoreSimulatorService job does not match our expectations: versionOfLoadedJob: (null), our version: 209.19
Stack:
=== BUILD TARGET ios-deploy-lib OF PROJECT ios-deploy WITH THE DEFAULT CONFIGURATION (Release) ===
Check dependencies
Write auxiliary files
write-file /usr/local/lib/node_modules/ios-deploy/build/ios-deploy.build/Release/ios-deploy-lib.build/ios-deploy.hmap
write-file /usr/local/lib/node_modules/ios-deploy/build/ios-deploy.build/Release/ios-deploy-lib.build/ios-deploy-project-headers.hmap
write-file /usr/local/lib/node_modules/ios-deploy/build/ios-deploy.build/Release/ios-deploy-lib.build/ios-deploy-all-target-headers.hmap
/bin/mkdir -p /usr/local/lib/node_modules/ios-deploy/build/ios-deploy.build/Release/ios-deploy-lib.build/Objects-normal/x86_64
write-file /usr/local/lib/node_modules/ios-deploy/build/ios-deploy.build/Release/ios-deploy-lib.build/Objects-normal/x86_64/ios-deploy.LinkFileList
write-file /usr/local/lib/node_modules/ios-deploy/build/ios-deploy.build/Release/ios-deploy-lib.build/ios-deploy-own-target-headers.hmap
write-file /usr/local/lib/node_modules/ios-deploy/build/ios-deploy.build/Release/ios-deploy-lib.build/ios-deploy-generated-files.hmap
write-file /usr/local/lib/node_modules/ios-deploy/build/ios-deploy.build/Release/ios-deploy-lib.build/ios-deploy-all-non-framework-target-headers.hmap
CompileC build/ios-deploy.build/Release/ios-deploy-lib.build/Objects-normal/x86_64/libios_deploy.o src/ios-deploy-lib/libios_deploy.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd /usr/local/lib/node_modules/ios-deploy
export LANG=en_US.US-ASCII
/Applications/Xcode\ 7.3.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch x86_64 -fmessage-length=109 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -fcolor-diagnostics -std=gnu99 -fobjc-arc -fmodules -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/var/folders/zz/zyxvpxvq6csfxvn_ngzzzzzvzzzzzy/C/org.llvm.clang/ModuleCache/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -Os -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wunreachable-code -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DNS_BLOCK_ASSERTIONS=1 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode\ 7.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mmacosx-version-min=10.11 -g -Wno-sign-conversion -iquote /usr/local/lib/node_modules/ios-deploy/build/ios-deploy.build/Release/ios-deploy-lib.build/ios-deploy-generated-files.hmap -I/usr/local/lib/node_modules/ios-deploy/build/ios-deploy.build/Release/ios-deploy-lib.build/ios-deploy-own-target-headers.hmap -I/usr/local/lib/node_modules/ios-deploy/build/ios-deploy.build/Release/ios-deploy-lib.build/ios-deploy-all-target-headers.hmap -iquote /usr/local/lib/node_modules/ios-deploy/build/ios-deploy.build/Release/ios-deploy-lib.build/ios-deploy-project-headers.hmap -I/usr/local/lib/node_modules/ios-deploy/build/Release/include -I/usr/local/lib/node_modules/ios-deploy/build/ios-deploy.build/Release/ios-deploy-lib.build/DerivedSources/x86_64 -I/usr/local/lib/node_modules/ios-deploy/build/ios-deploy.build/Release/ios-deploy-lib.build/DerivedSources -F/usr/local/lib/node_modules/ios-deploy/build/Release -fno-objc-arc -MMD -MT dependencies -MF /usr/local/lib/node_modules/ios-deploy/build/ios-deploy.build/Release/ios-deploy-lib.build/Objects-normal/x86_64/libios_deploy.d --serialize-diagnostics /usr/local/lib/node_modules/ios-deploy/build/ios-deploy.build/Release/ios-deploy-lib.build/Objects-normal/x86_64/libios_deploy.dia -c /usr/local/lib/node_modules/ios-deploy/src/ios-deploy-lib/libios_deploy.m -o /usr/local/lib/node_modules/ios-deploy/build/ios-deploy.build/Release/ios-deploy-lib.build/Objects-normal/x86_64/libios_deploy.o
0 __exceptionPreprocess (in CoreFoundation)
1 objc_exception_throw (in libobjc.A.dylib)
2 +[NSException raise:format:arguments:] (in CoreFoundation)
3 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] (in Foundation)
4 -[SimServiceContext reloadServiceIfMovedOrAbortIfWeAreInvalid] (in CoreSimulator)
5 -[SimServiceContext connect] (in CoreSimulator)
6 -[SimServiceContext initWithDeveloperDir:connectionType:] (in CoreSimulator)
7 __63+[SimServiceContext sharedServiceContextForDeveloperDir:error:]_block_invoke_2 (in CoreSimulator)
8 _dispatch_client_callout (in libdispatch.dylib)
9 _dispatch_barrier_sync_f_invoke (in libdispatch.dylib)
10 +[SimServiceContext sharedServiceContextForDeveloperDir:error:] (in CoreSimulator)
11 __60+[SimServiceContext(DVTAdditions) dvt_sharedServiceContext:]_block_invoke (in DVTiPhoneSimulatorRemoteClient)
12 _dispatch_client_callout (in libdispatch.dylib)
13 dispatch_once_f (in libdispatch.dylib)
14 +[SimServiceContext(DVTAdditions) dvt_sharedServiceContext:] (in DVTiPhoneSimulatorRemoteClient)
15 __42-[DVTiPhoneSimulatorLocator startLocating]_block_invoke (in IDEiOSSupportCore)
16 __DVTDispatchAsync_block_invoke (in DVTFoundation)
17 _dispatch_call_block_and_release (in libdispatch.dylib)
18 _dispatch_client_callout (in libdispatch.dylib)
19 _dispatch_root_queue_drain (in libdispatch.dylib)
20 _dispatch_worker_thread3 (in libdispatch.dylib)
21 _pthread_wqthread (in libsystem_pthread.dylib)
22 start_wqthread (in libsystem_pthread.dylib)
sh: line 1: 40108 Abort trap: 6 xcodebuild
npm ERR! Darwin 15.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "ios-deploy"
npm ERR! node v4.4.5
npm ERR! npm v2.15.5
npm ERR! code ELIFECYCLE
npm ERR! ios-deploy@1.8.6 preinstall: `./src/scripts/check_reqs.js && xcodebuild`
npm ERR! Exit status 134
npm ERR!
npm ERR! Failed at the ios-deploy@1.8.6 preinstall script './src/scripts/check_reqs.js && xcodebuild'.
npm ERR! This is most likely a problem with the ios-deploy package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! ./src/scripts/check_reqs.js && xcodebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs ios-deploy
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR! npm owner ls ios-deploy
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/yuvarajmanickam/Documents/Cordova Projets/myApp/npm-debug.log
"
My Xcode version is 7.3.1. Can you please help me on this? Thanks.
@YuvarajManickam Have you tried reinstalling XCode?
Also, when I tried to when I tried to install ios-deploy am getting following warning,
Well, IMHO everything is explained pretty well in the warning, just do what it says:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!! WARNING: You are on OS X 10.11 El Capitan, you may need to add the
!!!! WARNING: `--unsafe-perm=true` flag when running `npm install`
!!!! WARNING: or else it will fail.
!!!! WARNING: link:
!!!! WARNING: https://github.com/phonegap/ios-deploy#os-x-1011-el-capitan
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
@iignatov Thank you for your reply. I have reinstalled the XCode 7.3.1 in my machine and executed the same command "ionic build ios". But, getting the same error,
"\ BUILD FAILED **
The following build commands failed: CompileC build/myApp.build/Debug-iphonesimulator/myApp.build/Objects-normal/i386/MainViewController.o myApp/Classes/MainViewController.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler (1 failure) Error: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/ym/Documents/Cordova Projets/myApp/platforms/ios/cordova/build-debug.xcconfig,-project,myApp.xcodeproj,ARCHS=i386,-target,myApp,-configuration,Debug,-sdk,iphonesimulator,build,VALID_ARCHS=i386,CONFIGURATION_BUILD_DIR=/Users/ym/Documents/Cordova Projets/myApp/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/ym/Documents/Cordova Projets/myApp/platforms/ios/build/sharedpch"
Also, I have added "--unsafe-perm=true" on npm install like below one,
"sudo npm install -g ios-deploy --unsafe-perm=true"
Can you please help me on this? Thanks.
Can you please help me on this?
Unfortunately - not really, I'm not using OS X.
However I would recommend you to check the following links:
If the above links don't help you, you could also try the following (source):
ionic platform remove ios
ionic platform add ios
Hello, thanks for opening an issue with us. As this issue is and issue with the Ionic CLI and not the Ionic framework I am going to be moving this issue to the ionic-cli repo. Thanks for using Ionic!
This issue was moved to driftyco/ionic-cli#1060
I am also facing same issue when i have upgrade my OS form IOS 9 to 10 and Update Xcode version from 7.2 to 8, after lots of research i have find solution and based on that solution i have write a blog.
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.
Hi Team,
Today I started to learn Ionic for hybrid mobile application. Am trying to set up the environment on my Mac OS X. I installed Node-js, npm, cordova and created one sidemenu app. But, am not able to build and run the app through Terminal. Am getting the following error while doing build ios,
Can anyone please help me to fix this issue? Thanks.