Include of non-modular header inside framework module

created at 07-11-2021 views: 2

description

Usage scenario: macOS framework Swift language, add third-party libraries through pod. Eg: TXIMSDK_Mac, framework xx.h error when quoted.

error message

Include of non-modular header inside framework module 

solution

build setting ->  set OTHER_SWIFT_FLAGS to  -Xcc -Wno-error=non-modular-include-in-framework-module.

Note: The main project using this framework also needs to set OTHER_SWIFT_FLAGS

Allow Non-modular Includes in Framework Modules only work in objc code. not work in swift.

Please log in to leave a comment.