最新CocoaPods下载库报错ASSERTION FAILURE in /Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFramewor

来源:互联网 发布:电脑图标美化软件 编辑:程序博客网 时间:2024/06/06 05:39

[MT] DVTAssertions: ASSERTION FAILURE in
/Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-8228/IDEFoundation/Initialization/IDEInitialization.m:590
Details: Assertion failed: _initializationCompletedSuccessfully
Function: BOOL IDEIsInitializedForUserInteraction() Thread:
{number = 1, name = main} Hints: None
Backtrace: 0 0x000000010b47ea4c -[DVTAssertionHandler
handleFailureInFunction:fileName:lineNumber:assertionSignature:messageFormat:arguments:]
(in DVTFoundation) 1 0x000000010b47e1d9 _DVTAssertionHandler (in
DVTFoundation) 2 0x000000010b47e445 _DVTAssertionFailureHandler (in
DVTFoundation) 3 0x000000010b47e3a7 _DVTAssertionFailureHandler (in
DVTFoundation) 4 0x000000010c95bf5c
IDEIsInitializedForUserInteraction (in IDEFoundation) 5
0x000000010f5b9e49 +[PBXProject
projectWithFile:errorHandler:readOnly:] (in DevToolsCore) 6
0x000000010f5bb9ce +[PBXProject projectWithFile:errorHandler:] (in
DevToolsCore) 7 0x00007fff8f053f44 ffi_call_unix64 (in
libffi.dylib) [1] 64246 abort pod install

解决步骤:(1)先切换 gem 的源。$ gem sources --remove https://rubygems.org/(如果你原来的源地址是: http://ruby.taobao.org/ 记得把后面的链接替换一下)$ gem sources -a https://ruby.taobao.org/ (这一步在很多博客中 http 是没有 s 的,记得要加 s )上面两行是可以合成一行的:gem sources --add https://ruby.taobao.org/ --remove http://ruby.taobao.org/$ gem sources -l(查看源)*** CURRENT SOURCES ***https://ruby.taobao.org/(2)更新 gem。$ sudo gem update --system(3)更新CocoaPods。$ sudo gem install cocoapods // 安装CocoaPods$ pod setup(4)完成后检查下版本。pod --version。

从新运行即可~~~~

0 0
原创粉丝点击