unity5.5 [XXX] was compiled with optimization - stepping may behave oddly variables may not be available.

unity5.5发布IOS版本,打开某些界面游戏会闪退,调试运行发现游戏崩溃时xcode会显示[XXX] was compiled with optimization - stepping may behave oddly variables may not be available.解决这个坑花了几天时间,直接上解决方案。

unity5.5 [XXX] was compiled with optimization - stepping may behave oddly variables may not be available._第1张图片
屏幕快照 2017-01-23 23.00.28.png

Run in Xcode as设置为Debug

unity5.5 [XXX] was compiled with optimization - stepping may behave oddly variables may not be available._第2张图片
屏幕快照 2017-01-23 23.03.42.png

取消Strip Engine Code,这个选项默认是选中状态,这就是Unity坑爹的地方。

你可能感兴趣的:(unity5.5 [XXX] was compiled with optimization - stepping may behave oddly variables may not be available.)