我正在使用Xcode 7.2和CocoaPods 0.37.2。
我正在尝试通过CocoaPods安装一个插件,它给我以下错误,而且它也没有生成xcworkspace。
我已经浏览了一些链接,他们建议通过以下命令更新xcodeproject。这是正确的方法吗?这对我已经建成的产品有什么影响吗?
ruby[2047:53486] [MT] DVTAssertions: ASSERTION FAILURE in /Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks- 9548/IDEFoundation/Initialization/IDEInitialization.m:590
Details: Assertion failed: _initializationCompletedSuccessfully
Function: BOOL IDEIsInitializedForUserInteraction()
Thread: <NSThread: 0x7fb7c3087460>{number = 1, name = main}
Hints: None
Backtrace:
0 0x0000000110a35f7f -[DVTAssertionHandler handleFailureInFunction:fileName:lineNumber:assertionSignature:messageFormat:argum ents:] (in DVTFoundation)
1 0x0000000110a3570c _DVTAssertionHandler (in DVTFoundation)
2 0x0000000110a35978 _DVTAssertionFailureHandler (in DVTFoundation)
3 0x0000000110a358da _DVTAssertionFailureHandler (in DVTFoundation)
4 0x0000000111e4654d IDEIsInitializedForUserInteraction (in IDEFoundation)
5 0x0000000114abc631 +[PBXProject projectWithFile:errorHandler:readOnly:] (in DevToolsCore)
6 0x0000000114abe1b6 +[PBXProject projectWithFile:errorHandler:] (in DevToolsCore)
7 0x00007fff85d08f44 ffi_call_unix64 (in libffi.dylib)
Abort trap: 6
我先尝试下面的命令但是没有用
sudo xcode-select -r
有些人建议通过此更新
“gem install xcodeproj -v 0.24.3” 它做了什么?
答案 0 :(得分:1)
运行sudo gem install cocoapods
或sudo gem update cocoapods
然后运行pod install
就我而言,它解决了我的问题。
答案 1 :(得分:0)
我必须删除cocoapod的每个实例,然后安装0.38.0来解决问题。