'pod install'在Xcode 7上给出错误 [英] 'pod install' giving error on Xcode 7

查看:129
本文介绍了'pod install'在Xcode 7上给出错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我更新了我的cocoapods(0.38.2)gem和xcodeproj(0.27.2),但仍然收到错误: -

I have updated my cocoapods(0.38.2) gem and xcodeproj(0.27.2), but still getting error:-

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


推荐答案

尝试 sudo xcode-select -r

如果它没有帮助,请告诉我

If it didn't help, let me know

它对我有帮助

'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更新

Or try home-brew update if you installed pod via brew before

这篇关于'pod install'在Xcode 7上给出错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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