遷移了SVN倉庫後,從新在本地執行pod install以便生產workspace文件來打開工程時,產生以下錯誤。看這個帖子:http://www.cocoachina.com/bbs/read.php?tid-324308.html 說建議更新gem在執行命令,的確是可以的。
xxxx$ pod install
Analyzing dependencies
CocoaPods 0.39.0 is available.
To update use: `gem install cocoapods`
For more information see http://blog.cocoapods.org
and the CHANGELOG for this version http://git.io/BaH8pQ.
Downloading dependencies
Installing AFNetworking (2.5.4)
Installing DACircularProgress (2.3.1)
Installing FMDB (2.5)
Installing GCJSONKit (1.5.0)
Installing IQKeyboardManager (3.2.0.3)
Installing MBProgressHUD (0.9.1)
Installing MWPhotoBrowser (1.4.1)
Installing MarqueeLabel (2.0.10)
Installing NJKScrollFullScreen (0.2.6)
Installing PSTCollectionView (1.2.3)
Installing SDWebImage (3.7.3)
Installing SSKeychain (1.2.3)
Installing TOWebViewController (2.0.19)
Installing TTTAttributedLabel (1.10.1)
Installing UICountingLabel (1.1.0)
Installing UMeng (2.2.1)
Installing UMengSocial (4.3)
Installing XYPieChart (0.2)
Generating Pods project
2015-11-05 11:01:20.189 ruby[8479:192138] [MT] DVTAssertions: ASSERTION FAILURE in /Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-9079/IDEFoundation/Initialization/IDEInitialization.m:590
Details: Assertion failed: _initializationCompletedSuccessfully
Function: BOOL IDEIsInitializedForUserInteraction()
Thread: <NSThread: 0x7f90cc95dea0>{number = 1, name = main}
Hints: None
Backtrace:
0 0x000000010ed82f96 -[DVTAssertionHandler handleFailureInFunction:fileName:lineNumber:assertionSignature:messageFormat:arguments:] (in DVTFoundation)
1 0x000000010ed82723 _DVTAssertionHandler (in DVTFoundation)
2 0x000000010ed8298f _DVTAssertionFailureHandler (in DVTFoundation)
3 0x000000010ed828f1 _DVTAssertionFailureHandler (in DVTFoundation)
4 0x00000001102c86fd IDEIsInitializedForUserInteraction (in IDEFoundation)
5 0x0000000112afb081 +[PBXProject projectWithFile:errorHandler:readOnly:] (in DevToolsCore)
6 0x0000000112afcc06 +[PBXProject projectWithFile:errorHandler:] (in DevToolsCore)
7 0x00007fff97d38f44 ffi_call_unix64 (in libffi.dylib)
Abort trap: 6
解決方案:運行gem install cocoapods 更新cocoapods工具,然後再執行pod install
xxxxx$ gem install cocoapods
Fetching: nap-1.0.0.gem (100%)
Successfully installed nap-1.0.0
Fetching: molinillo-0.4.0.gem (100%)
Successfully installed molinillo-0.4.0
Fetching: cocoapods-trunk-0.6.4.gem (100%)
Successfully installed cocoapods-trunk-0.6.4
Fetching: cocoapods-try-0.5.1.gem (100%)
Successfully installed cocoapods-try-0.5.1
Fetching: cocoapods-stats-0.6.2.gem (100%)
Successfully installed cocoapods-stats-0.6.2
Fetching: cocoapods-search-0.1.0.gem (100%)
Successfully installed cocoapods-search-0.1.0
Fetching: cocoapods-downloader-0.9.3.gem (100%)
Successfully installed cocoapods-downloader-0.9.3
Fetching: cocoapods-core-0.39.0.gem (100%)
Successfully installed cocoapods-core-0.39.0
Fetching: cocoapods-0.39.0.gem (100%)
Successfully installed cocoapods-0.39.0
Parsing documentation for nap-1.0.0
Installing ri documentation for nap-1.0.0
Parsing documentation for molinillo-0.4.0
Installing ri documentation for molinillo-0.4.0
Parsing documentation for cocoapods-trunk-0.6.4
Installing ri documentation for cocoapods-trunk-0.6.4
Parsing documentation for cocoapods-try-0.5.1
Installing ri documentation for cocoapods-try-0.5.1
Parsing documentation for cocoapods-stats-0.6.2
Installing ri documentation for cocoapods-stats-0.6.2
Parsing documentation for cocoapods-search-0.1.0
Installing ri documentation for cocoapods-search-0.1.0
Parsing documentation for cocoapods-downloader-0.9.3
Installing ri documentation for cocoapods-downloader-0.9.3
Parsing documentation for cocoapods-core-0.39.0
Installing ri documentation for cocoapods-core-0.39.0
Parsing documentation for cocoapods-0.39.0
Installing ri documentation for cocoapods-0.39.0
9 gems installed
xxxxx$ pod install
Updating local specs repositories
Analyzing dependencies
Downloading dependencies
Installing AFNetworking (2.5.4)
Installing DACircularProgress (2.3.1)
Installing FMDB (2.5)
Installing GCJSONKit (1.5.0)
Installing IQKeyboardManager (3.2.0.3)
Installing MBProgressHUD (0.9.1)
Installing MWPhotoBrowser (1.4.1)
Installing MarqueeLabel (2.0.10)
Installing NJKScrollFullScreen (0.2.6)
Installing PSTCollectionView (1.2.3)
Installing SDWebImage (3.7.3)
Installing SSKeychain (1.2.3)
Installing TOWebViewController (2.0.19)
Installing TTTAttributedLabel (1.10.1)
Installing UICountingLabel (1.1.0)
Installing UMeng (2.2.1)
Installing UMengSocial (4.3)
Installing XYPieChart (0.2)
Generating Pods project
Integrating client project
[!] Please close any current Xcode sessions and use `xxx.xcworkspace` for this project from now on.
Sending stats
Pod installation complete! There are 14 dependencies from the Podfile and 18
total pods installed.
xxxxx$