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

Continuous integration 如何修复此警告:CoreSimulator正在尝试卸载过时的CoreSimulatorService作业,continuous-integration,teamcity,xcode8,xcodebuild,Continuous Integration,Teamcity,Xcode8,Xcodebuild,我在teamcity的构建日志中有一条警告。我已将CI服务器上的Xcode从7.3.1更新为8。步骤已成功运行,但我有以下问题: [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/

我在teamcity的构建日志中有一条警告。我已将CI服务器上的Xcode从7.3.1更新为8。步骤已成功运行,但我有以下问题:

[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.

如何修复此警告

遇到相同的问题并通过以下步骤解决:

  • 将Xcode从应用程序文件夹复制到其他位置
  • 删除应用程序中留下的副本并确保不保留Xcode副本
  • 将副本从步骤1移回“应用程序”文件夹
  • 重新启动的机器

  • 似乎没有设置某些值,因为Xcode没有通过应用商店安装。

    我也有同样的问题。我必须在Jenkins服务器上运行Xcode 7(用于构建旧版本)和Xcode 8(用于构建当前开发分支),我一直都有这个问题

    解决方案:

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

    这是因为,即使您退出模拟器应用程序,该服务仍在运行。删除名为
    com.apple.CoreSimulator.CoreSimulatorService
    的服务需要上述命令。
    | |真正的
    是在服务未运行时避免失败。

    喜欢找到这样的快速解决方案-谢谢。请解释一下为什么会发生这种情况?根本原因是什么?快速解决是好的。但是你能解释一下这个bash脚本的作用吗?我刚刚添加了一个简短的解释为我修复了这个错误:error |[watchOS]unknown:在验证过程中遇到未知错误(434:unexpected token at)。