Unity 打包IOS平台错误

1、Unity 下打包


Bulid Failed
Assets/Plugins/uLua/x86_64/ulua.dll would be copied to /ulua.dll

Plugin ‘ulua.dll’ is used from several locations:
Assets/Plugins/uLua/x86_64/ulua.dll would be copied to /ulua.dll
Assets/Plugins/uLua/x86/ulua.dll would be copied to /ulua.dll
Please fix plugin settings and try again.

UnityEditor.Modules.DefaultPluginImporterExtension:CheckFileCollisions(String)
UnityEditorInternal.PluginsHelper:CheckFileCollisions(BuildTarget) (at /Users/builduser/buildslave/unity/build/Editor/Mono/Plugins/PluginsHelper.cs:25)
UnityEditor.HostView:OnGUI()

解决:
http://doc.ulua.org/article/faq/pluginuluadllisusedfromserverallocations.html

Plugin ‘ulua.dll’ is used from serveral locations
Assets/Plugins/xxx/ulua.dll would be copied to /ulua.dll 解决方案:

如果是32位Unity编辑器,删掉x86_64目录,如果是64位编辑,删除x86目录即可。


DXT5 compressed textures are not supported when publishing to iPhone
Bulid Success 但仍然有错误,这些问题可能导致游戏闪退

DXT5 compressed textures are not supported when publishing to iPhone
Assets/FX/textures/daoguang/daoguang_00019.dds
Included from scene:
UnityEditor.HostView:OnGUI()

DXT5 纹理压缩时不支持发布iPhone

暂时解决方案:
删除这种纹理贴图



2、Xcode下编译


Signing for “Unity-iPhone” requires a development team. Select a development team in the project editor.
Code signing is required for product type ‘Application’ in SDK ‘iOS 10.3’

原因:
没有在Signing team里面添加签名信息

解决:
xcode7.0开始就可以免证书真机调试
Unity发布至IOS的流程(踩坑记录)
xcode8.2 免证书手机调试详解


ld:’/…/Libraries/Plugins/uLua/iOS/libulua.a(array.o)’ does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

iOS中关于bitcode没有被包含的解决方法:http://www.jianshu.com/p/9eb11e365312
Xcode7 does not contain bitcode. 的错误:http://blog.csdn.net/lwuit/article/details/48783885


‘XXXX’ was compiled with optimization - stepping may behave oddly; variables may not be available

工程在编译之后被优化了,所以导致单步的时候程序表现异常,变量也都不能访问了。这是由于编译的时候选择的是 release,而 release 的时候是会做很多优化,导致上述结果。

解决方法

http://blog.csdn.net/zhyl8157121/article/details/48780897

把编译方式改为Debug。
1、
这里写图片描述
2、
这里写图片描述
3、
这里写图片描述


  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值