2015-09-24 38 views
5

我已經更新了我的CocoaPods(0.38.2)寶石和xcodeproj(0.27.2),但仍然得到錯誤: -'吊艙安裝' 給錯誤的Xcode的7

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 

回答

4

嘗試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' 

或者試試家庭釀造更新,如果你安裝通過沖泡前的莢

+0

已經嘗試過。不工作。這將重置xcode選擇,但我的xcode選擇配置爲更正路徑。 – Aks

+0

謝謝。最後,它的工作。我按照你的建議刪除了所有東西,並安裝了0.38.2。但之前也w = on'pod install --verbose'我得到了0.38.2版本。仍然不明白是什麼問題, – Aks

+0

下面的指令xcode-select很好,thx! – eav

5

我剛剛安裝了較新的版本,所有的錯誤都消失了。 sudo gem安裝cocoapods --pre。 我有0.37.2,我更新到測試版0.39.0

5

您是否嘗試過使用sudo更新您的cocoapods寶石?

sudo gem update

0

我在安裝pod時遇到同樣的錯誤。

以下命令適用於我。

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