[英]XCode error when buiding for app store
Since the start of 2015 apple have new restrictions that say you must have 64-bit support and build with ios 8 SDK. 自2015年初以来,Apple有了新的限制,即必须具有64位支持并使用ios 8 SDK进行构建。 I built my code with Unity for IOS, then opened XCode and opened the file I just created through Unity. 我使用Unity for IOS构建代码,然后打开XCode并打开我刚通过Unity创建的文件。 I built it inside XCode fine with no errors. 我在XCode中很好地构建了它,没有错误。 I then go to archive it and validate it. 然后,我将其存档并进行验证。 It then tells me about the new restrictions that I have mentioned above. 然后,它告诉我有关我上面提到的新限制的信息。
It says to use the default architecture to build a single binary. 它说使用默认架构来构建单个二进制文件。 I go and change the architecture to suit this. 我去改变架构以适应这一点。 Then I do a fresh build and it gives me an error saying "File is universal (2 slices) but does not contain a(n) armv7s slice". 然后,我重新构建,它给我一个错误,说“文件是通用文件(2个切片),但不包含a(n)armv7s切片”。 I researched this error and it said to just remove armv7s from the architecture. 我研究了此错误,并说只是从体系结构中删除了armv7。 I did this and built again. 我这样做了,然后又建造了。
I then get the error "missing required architecture arm64 in file ..... undefined symbols for architecture arm64". 然后,我得到错误“在文件中缺少所需的体系结构arm64 .....体系结构arm64的未定义符号”。 I know this means that some of my libraries are not supported for arm64. 我知道这意味着arm64不支持我的某些库。 I take out arm64 from architecture and then I am back to the start where it says I need to build for 64-bit. 我从体系结构中删除了arm64,然后回到说我需要为64位构建的起点。
Has anyone come across this type of problem before and may have a solution. 有没有人遇到过此类问题,并且可能有解决方案。
Many thanks in advance 提前谢谢了
You need to make a new build from Unity.From Player Settings -> Iphone -> Other settings -> Configuration . 您需要从Unity.From Player Settings-> Iphone-> Other settings-> Configuration进行新的构建。 Under Scripting backend select IL2CPP and then under Architecture select Universal. 在“脚本后端”下,选择“ IL2CPP”,然后在“体系结构”下,选择“通用”。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.