xcode - 我怎样才能摆脱错误消息 "Ambiguous use of internal linkage declaration ' .. .' defined in multiple modules"

标签 xcode cocoapods cocoalumberjack

我最近收到了数百个以下类型的错误:

Ambiguous use of internal linkage declaration 'DDLogFlagError' defined in multiple modules

我的 podfile 包含以下内容:

use_frameworks!
pod 'CocoaLumberjack/Swift'

我能做什么?

最佳答案

我已经通过移动 "#import <CocoaLumberjack/CocoaLumberjack.h>" 解决了这个问题 到我的 xxx-Prefix.pch 文件的顶部。然后我可以删除一些 "#import "CocoaLumberjack.h"从我的文件中。

关于xcode - 我怎样才能摆脱错误消息 "Ambiguous use of internal linkage declaration ' .. .' defined in multiple modules",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37361556/

相关文章:

swift - Alamofire Promise 制定通用请求方法

ios - Xcode 6 Swift - 显示本地 PDF

swift - 在框架中使用 cocoapods 框架 - 找不到图像

ios - 如何指定 cocoa pod Assets 目标

ios - pod repo lint error : [! ] `<a dir>` 存储库中的 `<Parent Dir>` Pod 遇到意外版本目录 `<Parent Dir>`

ios - 运行测试用例时 CocoaLumberJack XCTest Linker Error

xcode - slider 内 flutter 图像未出现

ios - Swift:如何使用 SwiftUI 4 根据侧栏选择状态更改 DetailView?

ios - 使用 Swift 的 Lumberjack 2.0 记录器

ios - Swift 中的 CocoaLumberjack 动态日志记录