我尝试构建由 renpy(Ren'Py 6.99.11.1749)创建的游戏。我成功在iOS模拟器(iPhone 6)上构建游戏。但我试图在我的设备上运行(iPhone 5s,iOS 10.0.2)并且构建失败。 Xcode(Xcode 8.0)抱怨:
Undefined symbols for architecture arm64:
"_png_init_filter_functions_neon", referenced from:
_png_init_filter_functions in libpng.a(pngrutil.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
答案 0 :(得分:0)
其他人之前也遇到过同样的问题。似乎原因是由于不支持ARM霓虹灯的优化。例如,请参阅this bug report或this question。
一个解决方案(解决方法)seems to be来定义预处理程序标记PNG_ARM_NEON_OPT=0
。