【问题标题】:'pod install' giving error on Xcode 7'pod install' 在 Xcode 7 上给出错误
【发布时间】:2015-09-24 08:10:08
【问题描述】:

我已经更新了我的 cocoapods(0.38.2) gem 和 xcodeproj(0.27.2),但仍然出现错误:-

Writing Xcode project file to `Pods/Pods.xcodeproj`
2015-09-24 09:40:27.969 ruby[12098:428715] [MT] DVTAssertions:      ASSERTION FAILURE in      /Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-8227/IDEFoundation/Initialization/IDEInitialization.m:590
Details:  Assertion failed: _initializationCompletedSuccessfully
Function: BOOL IDEIsInitializedForUserInteraction()
Thread:   <NSThread: 0x7fb9adbd99d0>{number = 1, name = main}
Hints: None
Backtrace:0  0x000000011038ca5c -[DVTAssertionHandler handleFailureInFunction:fileName:lineNumber:assertionSignature:messageFormat:arguments:] (in DVTFoundation)
  1  0x000000011038c1e9 _DVTAssertionHandler (in DVTFoundation)
  2  0x000000011038c455 _DVTAssertionFailureHandler (in DVTFoundation)
  3  0x000000011038c3b7 _DVTAssertionFailureHandler (in DVTFoundation)
  4  0x00000001118c5f5c IDEIsInitializedForUserInteraction (in IDEFoundation)
  5  0x000000011451deb9 +[PBXProject projectWithFile:errorHandler:readOnly:] (in DevToolsCore)
  6  0x000000011451fa3e +[PBXProject projectWithFile:errorHandler:] (in DevToolsCore)
  7  0x00007fff8da7df44 ffi_call_unix64 (in libffi.dylib)
[1]    12098 abort      pod install --verbose

【问题讨论】:

    标签: ios xcode cocoapods xcode7


    【解决方案1】:

    我刚刚安装了新版本,所有错误都消失了。 sudo gem install cocoapods --pre。 我有 0.37.2,我更新到测试版 0.39.0

    【讨论】:

      【解决方案2】:

      试试sudo xcode-select -r

      如果没有帮助,请告诉我

      对我有帮助

      'pod --version' returned 0.37.2 (even after updating cocoa pods to 0.38.2) it would update but still for some reason use 0.37.2 for all pod commands
      So what I did: 
      1) run 'pod --verbose' to locate the 0.37.2, delete it manually
      2) run 'gem list --local | grep cocoapods' to find all cocoa pods installed on machine
      2.1) 'gem uninstall' everything returned by step2 
      2.2) run 'gem list --local | grep cocoapods' just to make sure everything is deleted
      3) '[sudo] gem uninstall cocoapods'
      4) '[sudo] gem install cocoapods'
      

      如果您之前通过 brew 安装过 pod,请尝试 home-brew update

      【讨论】:

      • 已经试过了。不工作。这会重置 xcode-select,但我的 xcode-select 已配置为正确的路径。
      • 谢谢。最后,它奏效了。我按照您的建议删除了所有内容并安装了 0.38.2。但在 w=on 'pod install --verbose' 之前,我得到的是 0.38.2 版。还是不明白是什么问题,
      【解决方案3】:

      您是否尝试过使用 sudo 更新您的 cocoapods gem?

      sudo gem 更新

      【讨论】:

        【解决方案4】:

        我在安装 pod 时遇到了同样的错误。

        以下命令对我有用。

        ~> sudo gem uninstall cocoapods
        ~> sudo gem install cocoapods
        ~> pod install
        

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 2022-08-23
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 2020-04-03
          相关资源
          最近更新 更多