Page "ProblemHotlist" was changed by raimue@macports.org Diff URL: <https://trac.macports.org/wiki/ProblemHotlist?action=diff&version=126> Revision 126 Comment: Document build failures after Xcode 7.2 update Changes: -------8<------8<------8<------8<------8<------8<------8<------8<-------- Index: ProblemHotlist ========================================================================= --- ProblemHotlist (version: 125) +++ ProblemHotlist (version: 126) @@ -28,6 +28,29 @@ Note you might have an older version of the `xcode-select` tool in case you installed Xcode 4.2 after installing the Mac OS X 10.7.3 update. If the command `xcode-select -version` returns `version 2003`, this is from Xcode 4.2 and we recommend to install the update once again with the [http://support.apple.com/kb/DL1484 Mac OS X 10.7.3 combo updater]. The current `xcode-select` version that comes with Mac OS X 10.7.3 identifies itself as `version 2307`. + +== Build failures after upgrading to Xcode 7.2 == #xcode7.2 + +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. + +{{{ +Could not find service "com.apple.CoreSimulator.CoreSimulatorService" in domain for uid: 502 +2015-12-10 17:21:27.407 xcodebuild[7363:75765] launchctl print returned an error code: 28928 +2015-12-10 17:21:27.407 xcodebuild[7363:75765] Failed to locate a valid instance of CoreSimulatorService in the bootstrap. Adding it now. +Could not find service "com.apple.CoreSimulator.CoreSimulatorService" in domain for uid: 502 +2015-12-10 17:21:27.431 xcodebuild[7363:75765] launchctl print returned an error code: 28928 +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 +** INTERNAL ERROR: Uncaught exception ** +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>. +}}} + +At the moment, a known workaround is to manually fix the permissions of the path mentioned in the error message: + +{{{ +$ sudo chmod 755 /Applications/Xcode.app/Contents/Developer/Library/PrivateFrameworks/CoreSimulator.framework/Versions/A/XPCServices/com.apple.CoreSimulator.CoreSimulatorService.xpc +}}} + + == Port installation fails with "no destroot found" == #nodestrootfound Installing a port fails with the error message "no destroot found", for example: -------8<------8<------8<------8<------8<------8<------8<------8<-------- -- Page URL: <https://trac.macports.org/wiki/ProblemHotlist> MacPorts <https://www.macports.org/> Ports system for OS X This is an automated message. Someone added your email address to be notified of changes on 'ProblemHotlist' page. If it was not you, please report to .