我有一个使用可可豆荚的工作项目.我尝试'pod install'并得到了这个奇怪的错误:
Generating Pods project
- Creating Pods project
- Adding source files to Pods project
- Adding frameworks to Pods project
- Adding libraries to Pods project
- Adding resources to Pods project
- Linking headers
- Installing targets
- Installing target `Pods-NIDropDown` iOS 7.0
- Installing target `Pods-SDWebImage` iOS 7.0
- Installing target `Pods-SQCommonUtils` iOS 7.0
- Installing target `Pods` iOS 7.0
- Running post install hooks
- Writing Xcode project file to `Pods/Pods.xcodeproj`
2015-06-27 01:20:37.359 ruby[3841:138874] [MT] DVTAssertions: ASSERTION FAILURE in /Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-8123.33/IDEFoundation/Initialization/IDEInitialization.m:590
Details: Assertion failed: _initializationCompletedSuccessfully
Function: BOOL IDEIsInitializedForUserInteraction()
Thread: <NSThread: 0x7fedd50822b0>{number = 1, name = main}
Hints: None
Backtrace:
0 0x00000001057f7047 -[DVTAssertionHandler handleFailureInFunction:fileName:lineNumber:assertionSignature:messageFormat:arguments:] (in DVTFoundation)
1 0x00000001057f67d4 _DVTAssertionHandler (in DVTFoundation)
2 0x00000001057f6a40 _DVTAssertionFailureHandler (in DVTFoundation)
3 0x00000001057f69a2 _DVTAssertionFailureHandler (in DVTFoundation)
4 0x0000000106bbf1a9 IDEIsInitializedForUserInteraction (in IDEFoundation)
5 0x000000010ab2ea5d +[PBXProject projectWithFile:errorHandler:readOnly:] (in DevToolsCore)
6 0x000000010ab305e2 +[PBXProject projectWithFile:errorHandler:] (in DevToolsCore)
7 0x00007fff9262af44 ffi_call_unix64 (in libffi.dylib)
Abort trap: 6
Run Code Online (Sandbox Code Playgroud)
不知道为什么我在编写Xcode项目文件时遇到错误Pods/Pods.xcodeproj
.我尝试过重新安装可可豆荚,但没有成功.
我对iOS开发很不错,所以任何提示都会很好.
Par*_*ots 28
似乎是使用Xcode 7进行项目序列化的问题.Cocoapods依赖于xcodeproj,它有最新测试版的bug.他们发布了一个快速发布来解决这个问题.在终端中运行:
gem install xcodeproj -v 0.24.3
(可能要sudo那个)
Aar*_*ain 21
我在使用Xcode 7 beta 2时遇到了这个问题.设置xcode-select回到Xcode的发布版本帮助了我.
尝试在终端中运行:
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
Run Code Online (Sandbox Code Playgroud)
然后再次尝试安装CocoaPods:
pod install
Run Code Online (Sandbox Code Playgroud)
然后我用这个命令回到Xcode beta没问题:
sudo xcode-select -s /Applications/Xcode-beta.app/Contents/Developer
Run Code Online (Sandbox Code Playgroud)
dst*_*eba 21
对于那些在最近的Xcode更新后得到错误的人,我做了以上操作,直到我更新了cocoa pods(从版本0.36.0开始)它才能工作:
sudo gem update
Run Code Online (Sandbox Code Playgroud)
这更新到0.38.2(我也看到有0.37.x的参考有问题)
归档时间: |
|
查看次数: |
7623 次 |
最近记录: |