This came up for me when I tried to integrate AdMob using Cocoapods into an Objective C++ project.
use of '@import' when c++ modules are disabled, consider using -fmodules and -fcxx-modules
What is this error and how do I fix it?
This came up for me when I tried to integrate AdMob using Cocoapods into an Objective C++ project.
use of '@import' when c++ modules are disabled, consider using -fmodules and -fcxx-modules
What is this error and how do I fix it?
Fix is easy, you have to do what the warning says and not only enable C and Objective-C modules but also C++ modules.
So you must add the compiler flag -fcxx-modules
to "Other C++ Flags" in your Build Settings
Try this:
GCC_INPUT_FILETYPE
Follow these steps :-
© 2022 - 2024 — McMap. All rights reserved.