Unityios .a 不支持 arm64arm64吗

Xcode 5.1.1: missing architectures [arm64] - Unity Answers
Navigation
Unity account
You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio.
Xcode 5.1.1: missing architectures [arm64]
I get this error when I validate my archive. I tried setting architectures and valid architectures to only armv7. I tried setting iOS down to 7.0. I tried installing the old Xcode 5.02 and it gives me the same error. I've researched as much as I can on this error. Any ideas?
I tried using the Application Loader and it gives the same error: ERROR ITMS-9000: &Invalid Binary. The binary mygame.app/mygame is missing architectures [arm64].&
Edit: !!! After doing a clean build from Unity, if I set the scheme's archive mode to debug, it validates! So strange... I'm going to change debug settings into the release one at a time until I find what breaks it.
Solved: I feel stupid. I restarted my mac and now the issues gone. Hope this fixes it for everyone else too.
Switching the scripting backend to the IL2CPP and using Universal architecture in the player settings solved this problem for me. Here are the steps:
Open up Player Settings either via Edit menu -& Project Settings -& Player or File menu -& Build Settings ... -& Player Settings... button at the bottom. Player Settings will appear in the inspector.
Click on the iPhone, iPod Touch, and iPad settings tab (the icon that looks like an iPhone).
Under Settings for iOS, open up Other Settings
Under the Configuration heading:
For Scripting Backend, select IL2CPP (Defaults to Mono (2.x)).
For Architecture, select Universal.
Now build the Xcode project, and Xcode should compile without errors. If you still encounter errors, ensure Architectures is set to Standard architectures (armv7, arm64) and Valid Architectures is set to &arm64 armv7 armv7s&
I had the exact same problem. Found my solution in these precise answer:
basically you need to remove arm64 from the list of supported processors. I hope it passes apple's review. if not i will update in a few days.
Hint: You can notify a user about this post by typing @username
Attachments: Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
30 People are following this question.Unity不支持arm64吗【unity3d吧】_百度贴吧
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&签到排名:今日本吧第个签到,本吧因你更精彩,明天继续来努力!
本吧签到人数:0成为超级会员,使用一键签到本月漏签0次!成为超级会员,赠送8张补签卡连续签到:天&&累计签到:天超级会员单次开通12个月以上,赠送连续签到卡3张
关注:74,152贴子:
Unity不支持arm64吗收藏
unity打包出来的Android工程,lib文件夹下没有arm64文件夹,也就是没有arm64的libmain.so的支持。是UNITY不支持arm64还是有其它的方法?我用的是UNity4.6.1
求帮助。。
登录百度帐号推荐应用扫一扫,访问微社区
后使用快捷导航没有帐号?
签到成功!您今天第{todayrank}个签到,签到排名竞争激烈,记得每天都来签到哦!已连续签到:{constant}天,累计签到:{days}天
当前位置: &
_____________________________________________________________________________________________________________
问答求助版块规则:
  1、问题尽量描述清楚
& && &2、代码要放在代码块里
& && &3、附件最好放到云盘,然后把链接放到TXT文档里,上传TXT文档。【最好没有附件,你懂得】
& && &4、本版块回复不得无意义,如:顶、呵呵、不错......以及擦边!【真的会扣分的哦】严重者,封IP!
& && &5、问题得到解决,请选择最佳答案。
& && &6、若问题是你自己解决了,可以联系管理员,返还蛮牛币,写下你的答案,另有蛮牛币奖赏。
_____________________________________________________________________________________________________________
查看: 772|回复: 4
关于Unity3d 发布工程支持arm64-v8a问题
2147/150排名<font color="#FF昨日变化4主题帖子积分
初来乍到, 积分 147, 距离下一级还需 3 积分
初来乍到, 积分 147, 距离下一级还需 3 积分
在线时间26 小时
最近遇到一个非常棘手的,使用给别人制作一个小得游戏,但对方有集成很多不同freelence提供的模块儿,主平台需要支持arm64-v8a平台,unity制作的工程需要导出成google
project给到对方,但发现unity打包的device filter选项只有 arm-v7a和x86平台可选,那么问题来了,打包的安卓工程,要如何才能支持arm64-v8a平台呢?
每日推荐:
916795/50000排名<font color="#FF昨日变化6主题帖子积分
以坛为家, 积分 16795, 距离下一级还需 33205 积分
以坛为家, 积分 16795, 距离下一级还需 33205 积分
蛮牛币55012
在线时间1267 小时
来自Mobile---
你要去下载个打包平台的支持包,新版的unity是需要这么做的
每日推荐:
2147/150排名<font color="#FF昨日变化4主题帖子积分
初来乍到, 积分 147, 距离下一级还需 3 积分
初来乍到, 积分 147, 距离下一级还需 3 积分
在线时间26 小时
打包平台的支持包?能详细说一下嘛?不懂这块儿
每日推荐:
286/150排名<font color="#FF昨日变化51主题帖子积分
初来乍到, 积分 86, 距离下一级还需 64 积分
初来乍到, 积分 86, 距离下一级还需 64 积分
在线时间44 小时
同问,现在我也遇到这样问题,不知道怎么解决。求告知
每日推荐:
4351/500排名<font color="#FF昨日变化主题帖子积分
四处流浪, 积分 351, 距离下一级还需 149 积分
四处流浪, 积分 351, 距离下一级还需 149 积分
在线时间100 小时
楼主怎么解决的,急求告知
每日推荐:
社区QQ达人
使用QQ帐号登录论坛的用户Unity:IOS可执行程序超过80MB问题及各版本IL2CPP对比 - 简书
Unity:IOS可执行程序超过80MB问题及各版本IL2CPP对比
测试版本: Unity 4.x
都是IL2CPP惹的祸
Unity的IL2CPP技术,会把所有的DLL中的IL代码转换成C++。这造成了最终编译的可执行文件大小激增。一些大的项目,在上传App Store时会出现大小超载的提示:
invalid executable size, the size of your app's executable file app_Name is
bytes,whichexceeds the maximum allowed size of 80MB.
如何查看IPA的可执行程序文件大小?
在mac下使用命令行
unzip /XXX/AppName.ipa Payload/AppName.app/AppName
size Payload/AppName.app/AppName
size命令可以查看到armv7和arm64分别占据的执行文件大小
图中的示例中,执行文件大小则是 + ,约87MB。超出规定。
不同Unity版本IL2CPP对比
我们的项目就遇到了可执行文件太大的问题,抱住试一试的心态,试了各个不同的Unity版本,发现不同版本的IL2CPP表现差异巨大!
不同Unity版本IL2CPP的差异
从Unity 4.6.2开始,之后的所有版本主要精力几乎都集中在IL2CPP的修复和改进。尝试了不同Unity版本的IL2CPP,发现生成的C++代码有非常大的差异,连生成的策略都很不一样。
在4.6.6后,object引用类型的泛型,会进行泛型共享,但是值类型的泛型,依然会生成非常大量的代码。关于IL2CPP的泛型共享技术,可以参考Unity官方博客:
苹果公司对执行文件的规定
苹果公司规定,IOS应用执行文件大小有上限限制。只支持64位的应用,执行文件必须在60MB以下。
要求iPhone 5S或以上,iOS 8.0或以上版本。支持32位+64位的应用,执行文件必须在80MB以下,要求iOS 6.0以上。
表格中是怎样评估泛型代码占用的?
使用find命令,搜索带有“Generic"字符串的C++文件,用wc命令进行统计。
IL2CPP的重灾区 —— 泛型 Generic 和 数组Array
非常严重, 4.7.1的IL2CPP优化重点,就是对于对泛型进行共享优化。比如Dictionary&(KItem), (KWeapon)&,会变成Dictionary&( void), ( void)&但是Dictionary&(KItem), (int)&,依然会生成C++代码。
64位+32位要小于80MB才能允许上传到App Store!
纯64位程序,要求小于60MB才能上传到AppStore
IL2CPP的BUG集中在反射!尽可能不使用反射;
执行文件大小跟泛型的使用成正比
代码风格越简洁越不会出现问题!
最新的几个版本4.6.8-4.7.1,IL2CPP已经没有太多变化了
禁止多重泛型、泛型类、泛型接口、泛型委托, 泛型方法用前斟酌
尽可能避免使用反射
object引用类型的泛型,4.6.6后,会进行泛型共享,但是值类型的泛型,依然会生成非常大量的代码
struct改class!
数组struct[] 会生成大量代码,数组class[]则不会
修复带有值类型的泛型: 如IList&(struct)& 改成IList&(class)&, Dict&(value), (value)& 改成Hashtable
最终我们选择Unity 4.6.7,因为它生成的执行程序足够小,并开始进行优化。最新版本的IL2CPP会比4.6.7的可执行文件大,对我们这样快完成项目,实在没办法了,只能用着4.6.7了。
==========================
多谢网友提醒,以上文字基于Xcode的最小版本设定iOS 8.0。后来出了另一篇相关的更详细的文章,建议参详:
自学编程的「商学院毕业的程序员」,资深Unity游戏工程师、Web全栈,漫谈技术科技、智能商业,喜欢喝喜茶。
人生是一场认知升级的旅行,喜欢与有趣的灵魂结伴同行。
公众号:商学院毕业的程序员
我已委托“维权骑士”()为我的文章进行维权行动
/material/author?id=24775}

我要回帖

更多关于 不支持 armv7s 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信