优化-步进的行为可能会很奇怪:iOS/Unity [英] optimization - stepping may behave oddly : iOS/Unity
问题描述
我正在尝试将统一性集成到iOS应用程序中.我已按照本教程 http://www.agnosticdev.com/blog-entry/swift/integrating-unity-and-vuforia-ios-swift-project
I am trying to integrate unity to iOS application. I have followed this tutorial http://www.agnosticdev.com/blog-entry/swift/integrating-unity-and-vuforia-ios-swift-project
现在,当我启动我的应用程序进行集成后,它崩溃并在控制台上显示此错误:was compiled with optimization - stepping may behave oddly; variables may not be available.
Now after integrating when i start my app it crashes and show this error on console : was compiled with optimization - stepping may behave oddly; variables may not be available.
崩溃:
我尝试使用谷歌搜索并找到以下链接:
I have tried googling this and found these links :
- APPNAME was compiled with optimization - stepping may behave oddly; variables may not be available
- 'Project Name' was compiled with optimization - stepping may behave oddly; variables may not be available
- Xcode target compiled with optimization
- Xcode: Cannot set optimization level for debug
什么都没有改变.
我更改了项目和pod的优化级别.
我还将这一行添加到pod文件中:project 'MyProject', 'Debug - local'=>:debug, 'Debug - staging'=>:debug, 'Debug - PRODUCTION'=>:debug
(在目标'projectname'执行之前)
I have changed optimization level of both project and pod.
I have also added this line to pod file : project 'MyProject', 'Debug - local'=>:debug, 'Debug - staging'=>:debug, 'Debug - PRODUCTION'=>:debug
( before target 'projectname' do)
我还取消了对 Strip Engine代码的统一检查.
Also I have unchecked Strip Engine Code in unity.
我该怎么做才能克服此错误? 任何帮助将不胜感激,谢谢.
What can i do to overcome this error ? Any help would be appreciated, thanks.
推荐答案
我遇到了同样的问题,并将其添加到Apple LLVM - Custom Compiler FLags
:
I had the same issue and I solve it adding to Apple LLVM - Custom Compiler FLags
:
其他C标志:-DRUNTIME_IL2CPP = 1
Other C Flags: -DRUNTIME_IL2CPP=1
这篇关于优化-步进的行为可能会很奇怪:iOS/Unity的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!