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

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

-> GPKit (0.1.1)
– ERROR | [iOS] unknown: Encountered an unknown error (757: unexpected token at ‘2017-08-17 16:12:08.932 simctl[55281:678990]
CoreSimulator detected Xcode.app relocation or CoreSimulatorService
version change. Framework path
(/Applications/Xcode.app/Contents/Developer/Library/PrivateFrameworks/CoreSimulator.framework)
and version (375.21) does not match existing job path
(/Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/XPCServices/com.apple.CoreSimulator.CoreSimulatorService.xpc)
and version (459.13). Attempting to remove the stale service in order
to add the expected version. ‘) during validation.

Analyzed 1 podspec.

[!] The spec did not pass validation,due to 1 error.

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

解决方法

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

虽然问题是CI.

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

launchctl删除com.apple.CoreSimulator.CoreSimulatorService ||真正

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

相关文章

UITabBarController 是 iOS 中用于管理和显示选项卡界面的一...
UITableView的重用机制避免了频繁创建和销毁单元格的开销,使...
Objective-C中,类的实例变量(instance variables)和属性(...
从内存管理的角度来看,block可以作为方法的传入参数是因为b...
WKWebView 是 iOS 开发中用于显示网页内容的组件,它是在 iO...
OC中常用的多线程编程技术: 1. NSThread NSThread是Objecti...