Pod Spec Lint CoreSimulator检测到Xcode.app重定位或CoreSimulatorService版本更改 [英] Pod Spec Lint CoreSimulator detected Xcode.app relocation or CoreSimulatorService version change

查看:320
本文介绍了Pod Spec Lint CoreSimulator检测到Xcode.app重定位或CoreSimulatorService版本更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

命令 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 /)不匹配开发人员/ PrivateFrameworks / CoreSimulator.framework / Versions / A / XPCServices / com.apple.CoreSimulator.CoreSimulatorService.xpc)
和版本(459.13)。尝试删除陈旧服务,按
添加预期验证过程中。版本。')

分析1 podspec。



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


任何解决方案?为什么会发生这种情况?

解决方案

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



虽然问题是CI。



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



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



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


The command pod spec lint fails. I couldn't find a similar question here on SO and on Cocoapod's repo. Full log:

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

Any solution for this? And why it happens?

解决方案

For reference, I've managed to solve this problem. I found the answer here: https://stackoverflow.com/a/40258881/3231194

Though the question is about CI.

In short, the solution I got was from Luca, run this:

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

As for the explanation what caused the problem, I think it's because I have and run two versions of Xcode. 8.3 and 9.0.

这篇关于Pod Spec Lint CoreSimulator检测到Xcode.app重定位或CoreSimulatorService版本更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆