gpt4 book ai didi

ios - 生成 Pod 项目时出错 - Pod 安装

转载 作者:IT王子 更新时间:2023-10-29 08:07:05 27 4
gpt4 key购买 nike

我有一个使用 cocoa pod 的工作项目。我尝试“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

不知道为什么我在将 Xcode 项目文件写入 Pods/Pods.xcodeproj 时出错。我试过重新安装 cocoa pod ,但没有成功。

我对 iOS 开发有点菜鸟,所以任何提示都会很好。

最佳答案

这似乎是 Xcode 7 项目序列化的问题。Cocoapods 依赖于 xcodeproj,它在最新的测试版中有一个错误。他们已经发布了一个快速版本来解决这个问题。在终端中运行:

gem install xcodeproj -v 0.24.3

(可能需要 sudo 那个)

关于ios - 生成 Pod 项目时出错 - Pod 安装,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31085306/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com