导入自己写的动态库(framework)报错问题

1.Could Not build module 'xxx'

解决:change In target setting the "Allow Non-modular Includes in Framework modules" setting to YES.

2.Use of '@import' when C++ modules are disabled, consider using -fmodules and -fcxx-modul

解决:在target-build settings - Apple Clang - Custom Compiler Flags ,将Other C++ Flags选项debug和release加上-fcxx-modules

3.'string' file not found:

解决:在target-build settings - Apple Clang - Language,将Compile Sources As改为Objective-C++

猜你喜欢

转载自www.cnblogs.com/hadyt/p/12419738.html