我如何解决此警告:CoreSimulator尝试卸载陈旧的CoreSimulatorService作业 [英] How can i fix this warning: CoreSimulator is attempting to unload a stale CoreSimulatorService job

查看:219
本文介绍了我如何解决此警告:CoreSimulator尝试卸载陈旧的CoreSimulatorService作业的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Teamcity的构建日志中有一个警告。我已经将我的CI服务器上的Xcode从7.3.1更新为8。该步骤成功运行,但是我有:

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.

如何解决此警告?

推荐答案

我遇到了同样的问题。我必须在Jenkins服务器中同时运行Xcode 7(以构建旧版本)和Xcode 8(以构建当前的develop分支),而我一直都在遇到问题。

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.

解决方案:

launchctl remove com.apple.CoreSimulator.CoreSimulatorService || true

发生这种情况是因为,即使您退出了模拟器应用程序,该服务仍在运行。需要上述命令来删除名为 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.

这篇关于我如何解决此警告:CoreSimulator尝试卸载陈旧的CoreSimulatorService作业的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆