cocoapod - CoreSimulator detected Xcode.app relocation or CoreSimulatorService version change.

  • 概述:
  • Mac上同时存在 XCode 8 与 XCode 9 beta
  • 执行pod lib lint XXXX.podspecerror如下
-> AnyFormatProtocol (0.1.0)
  - ERROR | [iOS] unknown: Encountered an unknown error (765: unexpected token at '2017-07-25 14:04:44.234 simctl[8142:392095] 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 (487.2).  Attempting to remove the stale service in order to add the expected version.
') during validation.
  • 解决方法
    • 执行
launchctl remove com.apple.CoreSimulator.CoreSimulatorService || true

你可能感兴趣的:(cocoapod - CoreSimulator detected Xcode.app relocation or CoreSimulatorService version change.)