优化-步进的行为可能会很奇怪:iOS/Unity [英] optimization - stepping may behave oddly : iOS/Unity

查看:98
本文介绍了优化-步进的行为可能会很奇怪: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 :

  1. APPNAME已通过优化进行了编译-步进可能表现古怪;变量可能不可用
  2. 项目名称"已与优化-步进的行为可能会很奇怪;变量可能不可用
  3. 经过优化编译的Xcode目标
  4. Xcode:无法设置调试的优化级别
  1. APPNAME was compiled with optimization - stepping may behave oddly; variables may not be available
  2. 'Project Name' was compiled with optimization - stepping may behave oddly; variables may not be available
  3. Xcode target compiled with optimization
  4. 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆