使用 Ono 报错:`Use of '@import' when C++ modules are disabled, consider using -fmodules and -fcxx-modul`

版权声明:本文为博主原创文章,转载请附上本文链接地址。from : https://blog.csdn.net/lovechris00 https://blog.csdn.net/lovechris00/article/details/81984077

场景描述:
三个控制器引入Ono #import <Ono.h>;
其他两个地方引入没问题,第三个控制器引入就有问题

报错内容:

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

检查了下,是因为控制器 .m 文件被改为 .mm 后缀;
改回来就好了。

猜你喜欢

转载自blog.csdn.net/lovechris00/article/details/81984077