Skip to content
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

installing ios-deploy ends with an error #152

Closed
fabioz23 opened this issue Jan 25, 2016 · 1 comment
Closed

installing ios-deploy ends with an error #152

fabioz23 opened this issue Jan 25, 2016 · 1 comment

Comments

@fabioz23
Copy link

Hi,

I understand that this is a non-zmNinja related problem but I think you've already encountered this problem when install ios-deploy nodejs package.
This is the error:

» sudo npm install -g ios-deploy                                                                                                                                          ◉ ◼◼◼◼◼◼◼◼◼◼
/
> [email protected] preinstall /usr/local/lib/node_modules/ios-deploy
> ./src/check_reqs.js && xcodebuild

Could not print domain: 1: Operation not permitted
2016-01-25 08:14:47.829 xcodebuild[6516:79279] launchctl print returned an error code: 256
2016-01-25 08:14:47.829 xcodebuild[6516:79279] CoreSimulator is attempting to unload a stale CoreSimulatorService job.  Detected Xcode.app relocation or CoreSimulatorService version change.  Framework path (/Applications/Xcode.app/Contents/Developer/Library/PrivateFrameworks/CoreSimulator.framework) and version (201.3) does not match existing job path (/Applications/Xcode.app/Contents/Developer/Library/PrivateFrameworks/CoreSimulator.framework/Versions/A/XPCServices/com.apple.CoreSimulator.CoreSimulatorService.xpc/Contents/MacOS/com.apple.CoreSimulator.CoreSimulatorService) and version ((null)).
2016-01-25 08:14:47.829 xcodebuild[6516:79279] Failed to remove job com.apple.CoreSimulator.CoreSimulatorService via SMJobRemove: Error Domain=CFErrorDomainLaunchd Code=4 "(null)"
2016-01-25 08:14:47.831 xcodebuild[6516:79279] Failed to locate a valid instance of CoreSimulatorService in the bootstrap.  Adding it now.
Could not print domain: 1: Operation not permitted
2016-01-25 08:14:47.887 xcodebuild[6516:79279] launchctl print returned an error code: 256
2016-01-25 08:14:47.888 xcodebuild[6516:79279] *** Assertion failure in -[SimServiceContext reloadServiceIfMovedOrAbortIfWeAreInvalid], /BuildRoot/Library/Caches/com.apple.xbs/Sources/CoreSimulator/CoreSimulator-201.3/CoreSimulator/SimServiceContext.m:453
** INTERNAL ERROR: Uncaught exception **
Exception: The loaded com.apple.CoreSimulator.CoreSimulatorService job does not match our expectations: versionOfLoadedJob: (null), our version: 201.3
Stack:
  0  0x00007fff9bf68aca __exceptionPreprocess (in CoreFoundation)
  1  0x00007fff8c009f7e objc_exception_throw (in libobjc.A.dylib)
  2  0x00007fff9bf688ba +[NSException raise:format:arguments:] (in CoreFoundation)
  3  0x00007fff8f08d88c -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] (in Foundation)
  4  0x0000000106946484 -[SimServiceContext reloadServiceIfMovedOrAbortIfWeAreInvalid] (in CoreSimulator)
  5  0x0000000106946c03 -[SimServiceContext connect] (in CoreSimulator)
  6  0x00000001069458bc -[SimServiceContext initWithConnectionType:] (in CoreSimulator)
  7  0x000000010694541a +[SimServiceContext simContextWithConnectionType:] (in CoreSimulator)
  8  0x00000001069453cb __41+[SimServiceContext sharedServiceContext]_block_invoke (in CoreSimulator)
  9  0x00007fff907d933f _dispatch_client_callout (in libdispatch.dylib)
 10  0x00007fff907d9237 dispatch_once_f (in libdispatch.dylib)
 11  0x00000001069453a9 +[SimServiceContext sharedServiceContext] (in CoreSimulator)
 12  0x000000010696541a +[SimDeviceSet setForSetPath:] (in CoreSimulator)
 13  0x00000001069653b6 +[SimDeviceSet defaultSet] (in CoreSimulator)
 14  0x000000010c3a1fe0 __42-[DVTiPhoneSimulatorLocator startLocating]_block_invoke (in IDEiOSSupportCore)
 15  0x0000000102869a58 __DVTDispatchAsync_block_invoke (in DVTFoundation)
 16  0x00007fff907e4871 _dispatch_call_block_and_release (in libdispatch.dylib)
 17  0x00007fff907d933f _dispatch_client_callout (in libdispatch.dylib)
 18  0x00007fff907dd1cf _dispatch_root_queue_drain (in libdispatch.dylib)
 19  0x00007fff907dca34 _dispatch_worker_thread3 (in libdispatch.dylib)
 20  0x00007fff99e2568f _pthread_wqthread (in libsystem_pthread.dylib)
 21  0x00007fff99e23365 start_wqthread (in libsystem_pthread.dylib)

sh: line 1:  6516 Abort trap: 6           xcodebuild
npm ERR! Darwin 15.3.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "ios-deploy"
npm ERR! node v4.2.3
npm ERR! npm  v2.14.7
npm ERR! code ELIFECYCLE

npm ERR! [email protected] preinstall: `./src/check_reqs.js && xcodebuild`
npm ERR! Exit status 134
npm ERR!
npm ERR! Failed at the [email protected] preinstall script './src/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/check_reqs.js && xcodebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls ios-deploy
npm ERR! There is likely additional logging output above.
@fabioz23
Copy link
Author

I'm sorry, searching on ionic project I've found that running:

sudo npm install -g --unsafe-perm ios-deploy

solves or avoid the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant