How can i fix this warning: CoreSimulator is attempting to unload a stale CoreSimulatorService job
11,239
I had the same issue. I've to run both Xcode 7 (to build old version) and Xcode 8 (to build current develop branch) in my Jenkins server and I was having the issue all the time.
Solution:
launchctl remove com.apple.CoreSimulator.CoreSimulatorService || true
This happens because, even if you quit the simulator app, the service is still running. The above command is needed to remove the service called com.apple.CoreSimulator.CoreSimulatorService
. The || true
is to avoid failure when that service is not running.
Related videos on Youtube
Author by
emoleumassi
Updated on June 10, 2022Comments
-
emoleumassi almost 2 years
I have a warning in my build log in teamcity. I've updated Xcode on my CI-Server from 7.3.1 to 8. The step run successfully but I have this:
[Step 3/3] Starting: /Users/teamcity/local/teamcity-build-agent/temp/agentTmp/custom_scriptxxxxxxx [Step 3/3] in directory: /Users/teamcity/local/teamcity-build-agent/work/yyyy [Step 3/3] 2016-10-11 09:04:41.706 xcodebuild[18180:5010256] CoreSimulator is attempting to unload a stale CoreSimulatorService job. Detected Xcode.app relocation or CoreSimulatorService version change. Framework path (/Applications/Xcodes/Xcode_8.0.app/Contents/Developer/Library/PrivateFrameworks/CoreSimulator.framework) and version (303.8) does not match existing job path (/Applications/Xcodes/Xcode-7.3.1.app/Contents/Developer/Library/PrivateFrameworks/CoreSimulator.framework/Versions/A/XPCServices/com.apple.CoreSimulator.CoreSimulatorService.xpc) and version (209.19). [Step 3/3] 2016-10-11 09:04:41.961 xcodebuild[18180:5010256] Failed to locate a valid instance of CoreSimulatorService in the bootstrap. Adding it now.
How can i fix this warning?
-
RichAppz about 7 yearsLove to find quick solutions like this - Thanks
-
Doro almost 7 yearsCould You please explain why it happened? What's the root cause?
-
stan liu over 6 yearsquick solution is good. but could you explain what this bash script do, please?
-
Luca Torella over 6 yearsI just added a short explanation
-
Christian Fox over 4 yearsFixed this error for me: ERROR | [watchOS] unknown: Encountered an unknown error (434: unexpected token at ) during validation.