错误:无法构建Objective-C模块' Foundation'

时间:2017-11-17 04:40:57

标签: ios swift3 compiler-errors

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

enter image description here

基础框架已添加到项目中

enter image description here

1 个答案:

答案 0 :(得分:0)

首先尝试完全清理,

@Saurabh Agrawal

然后如果不这样做那么

尝试如下,

从导航器中选择项目名称(左侧面板中最顶行) - >转到(Command-Option-Shift-K) - > build settings - >将Apple LLVM 8.1 - Languages - Modules设为Enable modules(C and Objective-C)

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

相关问题