[MacPorts] #49950: Error installing MacVim
#49950: Error installing MacVim -------------------------------+-------------------------------- Reporter: jianguohsiang82@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Keywords: | Port: MacVim -------------------------------+-------------------------------- See log file attached. Thank you. -- Ticket URL: <https://trac.macports.org/ticket/49950> MacPorts <https://www.macports.org/> Ports system for OS X
#49950: Error installing MacVim --------------------------------+---------------------- Reporter: jianguohsiang82@… | Owner: raimue@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: MacVim | --------------------------------+---------------------- Changes (by mf2k@…): * owner: macports-tickets@… => raimue@… * cc: raimue@… (removed) -- Ticket URL: <https://trac.macports.org/ticket/49950#comment:1> MacPorts <https://www.macports.org/> Ports system for OS X
#49950: MacVim @7.4.snapshot85: build fails due to permissions on com.apple.CoreSimulator.CoreSimulatorService.xpc --------------------------------+---------------------- Reporter: jianguohsiang82@… | Owner: raimue@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: MacVim | --------------------------------+---------------------- Changes (by raimue@…): * status: new => assigned Comment: {{{ 62 :info:build Could not find service "com.apple.CoreSimulator.CoreSimulatorService" in domain for uid: 507 63 :info:build 2015-12-10 06:56:58.574 xcodebuild[25749:220557] launchctl print returned an error code: 28928 64 :info:build 2015-12-10 06:56:58.574 xcodebuild[25749:220557] Failed to locate a valid instance of CoreSimulatorService in the bootstrap. Adding it now. 65 :info:build Could not find service "com.apple.CoreSimulator.CoreSimulatorService" in domain for uid: 507 66 :info:build 2015-12-10 06:56:58.634 xcodebuild[25749:220557] launchctl print returned an error code: 28928 67 :info:build 2015-12-10 06:56:58.634 xcodebuild[25749:220557] *** Assertion failure in -[SimServiceContext reloadServiceIfMovedOrAbortIfWeAreInvalid], /BuildRoot/Library/Caches/com.apple.xbs/Sources/CoreSimulator/CoreSimulator-201.3/CoreSimulator/SimServiceContext.m:451 68 :info:build ** INTERNAL ERROR: Uncaught exception ** 69 :info:build 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>. }}} I do not have El Capitan available to test right now. Which permissions are set on this file? Please show me the output of this command: {{{ ls -lad /Applications/Xcode.app/Contents/Developer/Library/PrivateFrameworks/CoreSimulator.framework/Versions/A/XPCServices/com.apple.CoreSimulator.CoreSimulatorService.xpc }}} For reference, this is the output on my OS X 10.10 Yosemite. {{{ drwxrwxr-x 3 root wheel 102 Oct 2 23:11 /Applications/Xcode.app/Contents/Developer/Library/PrivateFrameworks/CoreSimulator.framework/Versions/A/XPCServices/com.apple.CoreSimulator.CoreSimulatorService.xpc/ }}} This is actually against the requirements mentioned in the log above. Did you upgrade your Xcode and Command Line Tools to the latest version? {{{ $ sw_vers ProductName: Mac OS X ProductVersion: 10.10.5 BuildVersion: 14F1021 $ xcodebuild -version Xcode 7.1 Build version 7B91b }}} -- Ticket URL: <https://trac.macports.org/ticket/49950#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
#49950: MacVim @7.4.snapshot85: build fails due to permissions on com.apple.CoreSimulator.CoreSimulatorService.xpc --------------------------------+---------------------- Reporter: jianguohsiang82@… | Owner: raimue@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: MacVim | --------------------------------+---------------------- Comment (by sean@…): FYI, I'm having the same issue on Yosemite 10.10.5 with Xcode 7.2 {{{
sw_vers ProductName: Mac OS X ProductVersion: 10.10.5 BuildVersion: 14F1021 xcodebuild -version Xcode 7.2 Build version 7C68 }}}
The output of: {{{
ls -lad /Applications/Xcode.app/Contents/Developer/Library/PrivateFrameworks/CoreSimulator.framework/Versions/A/XPCServices/com.apple.CoreSimulator.CoreSimulatorService.xpc drwxrwxr-x 3 root wheel 102 Nov 10 05:21 /Applications/Xcode.app/Contents/Developer/Library/PrivateFrameworks/CoreSimulator.framework/Versions/A/XPCServices/com.apple.CoreSimulator.CoreSimulatorService.xpc/ }}}
which seems to match your output. Against my better judgement, I ran: {{{ sudo chmod 755 /Applications/Xcode.app/Contents/Developer/Library/PrivateFrameworks/CoreSimulator.framework/Versions/A/XPCServices/com.apple.CoreSimulator.CoreSimulatorService.xpc }}} And the build now succeeds. This seems like more than just a problem with the MacVim build, though. -- Ticket URL: <https://trac.macports.org/ticket/49950#comment:4> MacPorts <https://www.macports.org/> Ports system for OS X
#49950: MacVim @7.4.snapshot85: build fails due to permissions on com.apple.CoreSimulator.CoreSimulatorService.xpc --------------------------------+---------------------- Reporter: jianguohsiang82@… | Owner: raimue@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: MacVim | --------------------------------+---------------------- Comment (by trond.kandal@…): This really beats me... How can a stricter access on the catalog allow to build MacVim? Shouldn't it be the opposite? -- Ticket URL: <https://trac.macports.org/ticket/49950#comment:5> MacPorts <https://www.macports.org/> Ports system for OS X
#49950: MacVim @7.4.snapshot85: build fails due to permissions on com.apple.CoreSimulator.CoreSimulatorService.xpc --------------------------------+---------------------- Reporter: jianguohsiang82@… | Owner: raimue@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: worksforme | Keywords: Port: MacVim | --------------------------------+---------------------- Changes (by raimue@…): * status: assigned => closed * resolution: => worksforme Comment: I was able to reproduce the problem and the workaround also worked for me. Apparently it is an additional security check in Xcode 7.2 that checks the permissions on CoreSimulatorService.xpc and errors out if they are not strict enough. I doubt this is actually needed for building MacVim, but Xcode 7.2 wants this check to be satisfied. This is now also documented in the [wiki:ProblemHotlist#xcode7.2 ProblemHotlist]. Since this is not a problem specific to MacVim only, I am closing this ticket. -- Ticket URL: <https://trac.macports.org/ticket/49950#comment:6> MacPorts <https://www.macports.org/> Ports system for OS X
#49950: MacVim @7.4.snapshot85: build fails due to permissions on com.apple.CoreSimulator.CoreSimulatorService.xpc --------------------------------+---------------------- Reporter: jianguohsiang82@… | Owner: raimue@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: worksforme | Keywords: Port: MacVim | --------------------------------+---------------------- Comment (by jianguohsiang82@…): Replying to [comment:2 raimue@…]:
I do not have El Capitan available to test right now. Which permissions are set on this file? Please show me the output of this command: {{{ ls -lad /Applications/Xcode.app/Contents/Developer/Library/PrivateFrameworks/CoreSimulator.framework/Versions/A/XPCServices/com.apple.CoreSimulator.CoreSimulatorService.xpc }}}
I get the following: {{{ drwxrwxr-x 3 root wheel 102 Nov 10 00:21 /Applications/Xcode.app/Contents/Developer/Library/PrivateFrameworks/CoreSimulator.framework/Versions/A/XPCServices/com.apple.CoreSimulator.CoreSimulatorService.xpc }}}
This is actually against the requirements mentioned in the log above. Did you upgrade your Xcode and Command Line Tools to the latest version?
Yes -- Ticket URL: <https://trac.macports.org/ticket/49950#comment:7> MacPorts <https://www.macports.org/> Ports system for OS X
#49950: MacVim @7.4.snapshot85: build fails due to permissions on com.apple.CoreSimulator.CoreSimulatorService.xpc --------------------------------+---------------------- Reporter: jianguohsiang82@… | Owner: raimue@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: worksforme | Keywords: Port: MacVim | --------------------------------+---------------------- Comment (by eborisch@…): Replying to [comment:4 sean@…]:
Against my better judgement, I ran:
{{{ sudo chmod 755 /Applications/Xcode.app/Contents/Developer/Library/PrivateFrameworks/CoreSimulator.framework/Versions/A/XPCServices/com.apple.CoreSimulator.CoreSimulatorService.xpc }}}
And the build now succeeds. This seems like more than just a problem with the MacVim build, though.
For others hitting this, this resolved the issue for me as well. -- Ticket URL: <https://trac.macports.org/ticket/49950#comment:8> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts