2015-09-24 50 views
5

Tôi đã cập nhật cocoapods tôi (0.38.2) đá quý và xcodeproj (0.27.2), nhưng vẫn nhận được lỗi: -'pod cài đặt' cho lỗi trên 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 

Trả lời

4

Hãy thử sudo xcode-select -r

Nếu nó không giúp đỡ, cho tôi biết

nó giúp cho tôi

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

Hoặc thử cập nhật home-brew nếu bạn cài đặt pod qua brew trước

+0

Đã thử. Không làm việc. Điều này reset xcode-select, nhưng xcode-select của tôi được cấu hình để sửa đường dẫn. – Aks

+0

Cảm ơn. Cuối cùng, nó hoạt động. Tôi đã xóa mọi thứ như bạn đã đề xuất và cài đặt 0.38.2. Nhưng trước đó cũng w = trên 'pod install --verbose' Tôi đã nhận được phiên bản 0.38.2. Vẫn không hiểu vấn đề là gì, – Aks

+0

hướng dẫn bên dưới xcode-chọn làm việc tuyệt vời, thx! – eav

5

Tôi vừa cài đặt phiên bản mới hơn, tất cả các lỗi đều biến mất. sudo gem cài đặt cocoapods --pre. Tôi đã có 0,37,2, tôi đã cập nhật lên phiên bản beta 0.39.0

5

Bạn đã cố gắng cập nhật đá quý cocoapods của mình bằng cách sử dụng sudo?

sudo gem update

0

Tôi gặp lỗi tương tự khi cài đặt nhóm.

Các lệnh sau hoạt động với tôi.

~> sudo gem uninstall cocoapods 
~> sudo gem install cocoapods 
~> pod install 
Các vấn đề liên quan