Failed to build module 'xxx'; this SDK is not supported by the compiler (the SDK is built with 'Apple Swift version 5.5 effective-4.2 (swiftlang-1300.0.31.1 clang-1300.0.29.1)', while this compiler is 'Apple Swift version 5.5.2 effective-4.2 (swiftlang-1300.0.47.5 clang-1300.0.29.30)'). Please select a toolchain which matches the SDK.
在build setting中将BUILD_LIBRARY_FOR_DISTRIBUTION
设置为Yes
-
Include of non-modular header inside framework module
该问题发生场景为:依赖第三方framework,且项目中只能看到framework,头文件必须在Finder中才能看到。
解决:如果能看到头文件,在build perhaps
->Headers
中将头文件放到public中。如果看不到,需要在build setting
->OTHER_SWIFT_FLAGS
中添加-Xcc -Wno-error=non-modular-include-in-framework-module
网友评论