| 31 | |
| 32 | == Build failures after upgrading to Xcode 7.2 == #xcode7.2 |
| 33 | |
| 34 | After installing the update to Xcode 7.2, port installations or upgrades using `xcodebuild` may fail with the following error due to an error in the Xcode installation. This is a problem that should be addressed by Apple, please also file a [https://bugreport.apple.com bug report] to raise awareness. |
| 35 | |
| 36 | {{{ |
| 37 | Could not find service "com.apple.CoreSimulator.CoreSimulatorService" in domain for uid: 502 |
| 38 | 2015-12-10 17:21:27.407 xcodebuild[7363:75765] launchctl print returned an error code: 28928 |
| 39 | 2015-12-10 17:21:27.407 xcodebuild[7363:75765] Failed to locate a valid instance of CoreSimulatorService in the bootstrap. Adding it now. |
| 40 | Could not find service "com.apple.CoreSimulator.CoreSimulatorService" in domain for uid: 502 |
| 41 | 2015-12-10 17:21:27.431 xcodebuild[7363:75765] launchctl print returned an error code: 28928 |
| 42 | 2015-12-10 17:21:27.431 xcodebuild[7363:75765] *** Assertion failure in -[SimServiceContext reloadServiceIfMovedOrAbortIfWeAreInvalid], /BuildRoot/Library/Caches/com.apple.xbs/Sources/CoreSimulator/CoreSimulator-201.3/CoreSimulator/SimServiceContext.m:451 |
| 43 | ** INTERNAL ERROR: Uncaught exception ** |
| 44 | Exception: Unable to lookup com.apple.CoreSimulator.CoreSimulatorService in the bootstrap. This can happen if running with a sandbox profile. When running with a sandbox profile, make sure that com.apple.CoreSimulator.CoreSimulatorService.xpc is owned by root, not group writable, and not world writable. See <rdar://problem/22142915>. |
| 45 | }}} |
| 46 | |
| 47 | At the moment, a known workaround is to manually fix the permissions of the path mentioned in the error message: |
| 48 | |
| 49 | {{{ |
| 50 | $ sudo chmod 755 /Applications/Xcode.app/Contents/Developer/Library/PrivateFrameworks/CoreSimulator.framework/Versions/A/XPCServices/com.apple.CoreSimulator.CoreSimulatorService.xpc |
| 51 | }}} |
| 52 | |
| 53 | |