bat*_*man 4 objective-c xcode8
根据这里的讨论,我在我的 Xcode 项目中使用了 .mm 并且我需要启用-fcxx-modules flag.
我有 Xcode8.3 以及如何启用-fcxx-modules flag.
小智 5
有多种可能的方法:
在使用模块的源文件的 Compiler Flags 列中Target->Build Phases -> Compile Sources添加
-fcxx-modules
如果始终需要,请考虑将其添加到 Target->BuildSettings->Other C++ Flags