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

标签 ios cocoapods

命令 pod spec lint 失败。我在 SO 和 Cocoapod 的 repo 上找不到类似的问题。完整日志:

-> 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 remove com.apple.CoreSimulator.CoreSimulatorService ||真

至于导致问题的解释,我认为是因为我有并运行了两个版本的 Xcode。 8.3 和 9.0。

关于ios - Pod Spec Lint CoreSimulator 检测到 Xcode.app 重定位或 CoreSimulatorService 版本更改,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45730217/

相关文章:

ios - 通过 Cocoapods 添加到 Objective-C 应用程序中的 Swift 框架 - "Module not found"

ios - 为什么 Cocoapods 将 HockeyMac-SDK 添加到我的 iOS 目标?

php - 我的代码有什么问题( future 支付服务器端集成)

ios - 如何使用 ImageView 制作无限分页 ScrollView ?

ios - iOS后台执行指南示例的Apple编程指南?

ios - 在另一个类(scene.swift)中引用我的 View Controller - 所有变量都变为空? swift 3

ios - 开发iOS框架时如何在WKWebView中加载本地HTML文件

ios - 使用 Xcode 和 Cocoapods 进行代码签名

ios - Swift - 从 switch 语句中的字符串初始化枚举

ios - Swift 版本 NativeScript