OGeek|极客世界-中国程序员成长平台

标题: ios - 错误 : could not build Objective-C module 'Foundation' [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-11 19:19
标题: ios - 错误 : could not build Objective-C module 'Foundation'

我在归档项目时遇到这 2 个错误。我不知道它会发生什么。需要帮助来解决这个问题。

enter image description here

基础框架已经添加到项目中

enter image description here



Best Answer-推荐答案


首先尝试完全清洁,

(Command-Option-Shift-K)

如果不做的话

一旦尝试如下,

从导航器中选择您的项目名称(左侧面板中的最顶部行) -> 转到 build settings -> Apple LLVM 8.1 - Languages - Modules -> 设置启用模块(C 和 Objective-C)NO

这里 8.1 是您的 xcode 版本号,如果您使用的是 xcode 9,那么它将是 Apple LLVM 9.0 而不是 Apple LLVM 8.1

关于ios - 错误 : could not build Objective-C module 'Foundation' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47343398/






欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://ogeek.cn/) Powered by Discuz! X3.4