当我游戏项目直接选择iOS平台导出时可以正常运行,
然后我将一部分原生代码 移植到到 导出的工程中是 就出现报错 !
#include // To include uint8_t, uint16_t and so on.
‘cstdint’ file not found
这是修改后的CMakeLists.txt 文件
WX20240828-215904|533x500
我的全部代码都在 NativeClass下
它的路径是 …/native/engine/ios/NativeClass
我修改了导出工程的以下配置
XXX-mobile -> build setting
automatic reference YES
weak reference YES
use header map YES
并且在工程导出后 使用 cocopods 集成了部分第三方库
我导入的代码 完整的放在一个新工程中 是不会报错 并且可以运行的!
