[Unity] Bug: IOS 初始化的时候奔溃
Closed this issue · 5 comments
xtutu commented
chexiongsheng commented
和这个issue可能一样:#1619
在你的xcode重编译plugin试试呢?如果不行把v8也重编译下试试
xtutu commented
项目里还装了: com.tencent.puerts.webgl 2.0.4
排查下来,发现:只要把这个删掉,IOS 就不会奔溃。
chexiongsheng commented
哦,应该是com.tencent.puerts.webgl 2.0.4导致的,它下面有个cpp文件,里面有些符号和puerts plugin是一样的
https://github.com/zombieyang/puerts_unity_webgl_demo/blob/master/packages/webgl/upm/Runtime/Plugins/WebGL/puerts.cpp
chexiongsheng commented
加宏让这些代码只在webgl生效
#if !defined(__EMSCRIPTEN__)
//原来的代码
#endif
xtutu commented
按照上面的方式,修好了