Xcode 错误 - 文件中缺少所需的架构 i386

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/6541419/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 21:23:24  来源:igfitidea点击:

Xcode Error - missing required architecture i386 in file

iosstringxcodeunity3d

提问by mheavers

I'm trying to compile a demo project from Unity in Xcode (it's actually a tutorial on a new Augmented Reality platform that integrates with Unity called String) and getting this error:

我正在尝试在 Xcode 中从 Unity 编译一个演示项目(它实际上是一个关于与 Unity 集成的名为 String 的新增强现实平台的教程)并收到此错误:

ignoring file libiPhone-lib.a, missing required architecture i386 in file

I've researched this a little, and it seems to be some sort of issue with what version of iOS you're deploying too, but I'm not sure. Regardless, I've tried to deploy to different versions, and they all result in this error.

我对此进行了一些研究,这似乎与您正在部署的 iOS 版本有关,但我不确定。无论如何,我尝试部署到不同的版本,它们都导致此错误。

Any ideas how to fix this?

任何想法如何解决这一问题?

回答by tipycalFlow

I did some research and it seems Unity for iPhone doesn't deploy on simulator. It only works on device or in the Unity editor. Check out this link. Hope it helps.

我做了一些研究,似乎 Unity for iPhone 没有部署在模拟器上。它仅适用于设备或 Unity 编辑器。查看此链接。希望能帮助到你。