目前(2023-07-29)babylon 不支持 arm 架构的模拟器,所以需要开启 Rosetta
构建命令(使用模拟器64位,x86_64)
cmake -B build/iOS -G Xcode -D CMAKE_TOOLCHAIN_FILE=Dependencies/ios-cmake/ios.toolchain.cmake -D PLATFORM=SIMULATOR64 -D ENABLE_ARC=0 -D DEPLOYMENT_TARGET=16
xcode 忽略 clang 编译警告
-Wno-nested-anon-types
-Wno-gnu-anonymous-struct
-Wzero-length-array
-Wunused-parameter
ref: https://github.com/BabylonJS/BabylonNative/issues/1268
标签:cmake,ios,mac,m1,64,babylon,native From: https://www.cnblogs.com/zjy4fun/p/17589733.html