![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Unity项目出IOS包问题汇总
「已注销」
这个作者很懒,什么都没留下…
展开
-
xxx was compiled with optimization - stepping may behave oddly; variables may not be available.
问题描述:使用Xcode打出Release包,运行闪退,报错was compiled with optimization - stepping may behave oddly; variables may not be available.(使用Debug模式打包不会有这个问题)解决:1.查看是否为debug模式2.项目的优化级别设置3.有无额外的编译c++ flag原主遇到到是第三种情况,然后我是转的,我遇到了第二种情况。因为网上很多都是第一种反反复复转载 2021-10-19 16:05:49 · 583 阅读 · 0 评论 -
validateRenderPassDescriptor:xxx: failed assertion XXX
报错:validateRenderPassDescriptor:xxx: failed assertion `Texture at depthAttachment has usage (0x01) which doesn’t specify MTLTextureUsageRenderTarget (0x04)’解决办法:Xcode options 设置GPU Frame Capture : OpenGL ESMetal API Vaildation: Disabled...原创 2021-10-19 15:51:00 · 1787 阅读 · 0 评论 -
NSString变量赋值中文后再取值,会造成空引用闪退
问题描述:在xr设备上,初始化了一个NSString变量,赋值中文str后再取值,会造成空引用闪退解决方法:尽量不用NSString保存中文数据原创 2021-10-19 15:49:58 · 1631 阅读 · 0 评论 -
MapFileParser: Bad CPU type in executable
报错内容:使用Xcode打包时报错MapFileParser: Bad CPU type in executable报错文件:问题分析:1.可能系统不兼容该文件2.可能登录shell设置不对解决方法:如果是第一种情况,需要使用新版本Unity目录下的该文件来出包如果是第二种情况,需要设shell...原创 2021-10-19 15:46:15 · 2163 阅读 · 0 评论