Pod Spec Lint CoreSimulator检测到Xcode.app重定位或CoreSimulatorService版本更改

Gle*_*enn 6 ios cocoapods

命令pod spec lint失败.我在SO和Cocoapod的回购中找不到类似的问题.完整日志:

- > GPKit(0.1.1) - ERROR | [iOS] unknown:遇到未知错误(757:意外令牌在'2017-08-17 16:12:08.932 simctl [55281:678990] CoreSimulator检测到Xcode.app重定位或CoreSimulatorService版本更改.框架路径(/ Applications/Xcode) .app/Contents/Developer/Library/PrivateFrameworks/CoreSimulator.framework)和版本(375.21)与现有作业路径不匹配(/Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/XPCServices/com.apple.CoreSimulator. CoreSimulatorService.xpc)和版本(459.13).在验证期间尝试删除陈旧服务以添加预期版本.').

分析了1个podspec.

[!]由于1错误,规范没有通过验证.

对此有何解决方案?为什么会这样?

Gle*_*enn 21

作为参考,我设法解决了这个问题.我在这里找到了答案:https://stackoverflow.com/a/40258881/3231194

虽然问题是CI.

简而言之,我得到的解决方案来自Luca,运行:

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

至于导致问题的原因,我认为这是因为我有两个版本的Xcode.8.3和9.0.