构建错误 - 文件中缺少所需的架构 i386 [英] Build Error - missing required architecture i386 in file
问题描述
我在构建 iPhone 应用程序时遇到此错误:
I'm getting this error when building my iPhone application:
ld:警告:在/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.1.sdk/System/Library/Frameworks/UIKit.framework/UIKit,文件中缺少所需的架构 i386
ld: warning: in /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.1.sdk/System/Library /Frameworks/UIKit.framework/UIKit, missing required architecture i386 in file
我的应用程序中的所有框架都是一样的.这很奇怪,因为这不是更早发生的.
It goes the same for all the frameworks in my app. It's very weird since this was not happening earlier.
推荐答案
当您向项目添加框架并无意中将框架复制到项目目录时,会发生这种情况.
This happens when you add a framework to your project and unintentionally copy the framework into your project directory.
修复方法是检查您的项目目录(您将项目存储在磁盘上的位置)是否有任何 iphone SDK *.Framework 文件并删除它们.
The fix is to check your project directory (where you store your project on disk) for any iphone SDK *.Framework files and delete them.
项目将在之后构建良好.
Project will build fine afterwards.
这篇关于构建错误 - 文件中缺少所需的架构 i386的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!