ios - 无法构建 Objective-C 模块“CoreFoundation”
问题描述
通过 CocoaPods 更新 Firebase 后,我遇到了这个问题。
任何帮助是极大的赞赏。
任何超过 4.0.2 的 Firebase 版本都会在 Xcode(10.1 版)中导致相同的错误。
错误:
Swift 编译器错误
未找到“字符串”文件
无法构建 Objective-C 模块“CoreFoundation”
已经尝试过:
清洁项目
手动添加 SDK
删除级别数据库并手动添加
问题出在哪里?使用 Swift 文件/标题?用leveldb?还是火力基地?
相关(GitHub上的类似问题,但那里建议的解决方案对我不起作用):
https://github.com/google/leveldb/issues/515
Xcode 消息:
> <module-includes>:1:9: note: in file included from
> <module-includes>:1:
> #import "Headers/CoreFoundation.h"
> ^ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:43:10:
> note: in file included from
> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:43:
> #include <CoreFoundation/CFBase.h>
> ^ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:72:10:
> note: in file included from
> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:72:
> #include <Block.h>
> ^ /Users/Besfort/Desktop/Coding/Xcode - projects/0.1/Pods/leveldb-library/table/Block.h:10:10: note: in file
> included from /Users/Besfort/Desktop/Coding/Xcode -
> projects/0.1/Pods/leveldb-library/table/Block.h:10:
> #include "leveldb/iterator.h"
> ^ /Users/Besfort/Desktop/Coding/Xcode - projects/0.1/Pods/leveldb-library/include/leveldb/iterator.h:18:10:
> note: in file included from /Users/Besfort/Desktop/Coding/Xcode -
> projects/0.1/Pods/leveldb-library/include/leveldb/iterator.h:18:
> #include "leveldb/slice.h"
> ^ /Users/Besfort/Desktop/Coding/Xcode - projects/0.1/Pods/leveldb-library/include/leveldb/slice.h:21:10:
> error: 'string' file not found
> #include <string>
> ^ <unknown>:0: error: could not build Objective-C module 'CoreFoundation'
解决方案
推荐阅读
- asp.net-mvc - 更新实体框架中的多对多关系
- python - 如何删除特定 html 标签内的所有内容(连同标签本身)
- php - 如何从包含外语的mysql中获取数据?
- python - 使用 Python 将电子邮件的主题和正文提取到字典中
- android - 在 Android FMX Canvas 的 DrawBitmap 上使用屏幕比例而不是像素
- php - 添加到灯箱不适用于动态加载的内容(AJAX PHP)
- c# - Oracle ODP.net 非托管 12.2 (Oracle.DataAccess.dll) 需要哪些依赖项/dll?
- dita - dita map 文件中的 Reltable 不提供 pdf 输出,但提供 html5 输出
- r - 更改 ggplot2 中因子的图例文本
- corda - 如何使用 RPC 客户端运行黑名单