首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >如何修复此警告: CoreSimulator正在尝试卸载过时的CoreSimulatorService作业

如何修复此警告: CoreSimulator正在尝试卸载过时的CoreSimulatorService作业
EN

Stack Overflow用户
提问于 2016-10-11 15:13:41
回答 1查看 10.8K关注 0票数 25

我在teamcity的构建日志中有一个警告。我已经在CI-Server上将Xcode从7.3.1更新到8。该步骤运行成功,但我有:

代码语言:javascript
复制
[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.

如何修复此警告?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-10-26 17:45:37

我也有同样的问题。我不得不在我的Jenkins服务器上运行Xcode7(构建旧版本)和Xcode8(构建当前的开发分支),我一直都有这个问题。

解决方案:

代码语言:javascript
复制
launchctl remove com.apple.CoreSimulator.CoreSimulatorService || true

这是因为,即使您退出模拟器应用程序,服务仍在运行。需要上面的命令来删除名为com.apple.CoreSimulator.CoreSimulatorService的服务。|| true是为了避免在服务未运行时出现故障。

票数 83
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/39972105

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档