简体   繁体   English

为什么此调试版本参考发布库?

[英]Why does this debug build reference a release library?

I just installed Xcode 4 and am getting this error in my project: 我刚刚安装了Xcode 4,并且在我的项目中遇到此错误:

ld: warning: directory not found for option '-LDebug-iphonesimulator4.3'
ld: warning: ignoring file /Developer/Projects/BuildOutput/Release-iphoneos/libMyFramework.a, missing required architecture i386 in file
Undefined symbols for architecture i386: 
"_OBJC_CLASS_$_MyRandomNumber", referenced from:
objc-class-ref in myAppDelegate.o 
objc-class-ref in RootViewController.o

I have the project set to iOS 4.3 Simulator. 我将项目设置为iOS 4.3模拟器。 I did check that scheme and it is set to debug build configuration. 我确实检查了该方案,并将其设置为调试构建配置。 Why does it reference a Release version of the above library? 为什么它引用上述库的发行版?

Also, what is the i386 error about? 另外, i386错误是关于什么的?

I'm seeing this type of error as well. 我也看到这种类型的错误。 The odd part is that I've been building, linking, and running successfully under the Simulator. 奇怪的是,我已经在Simulator下成功建立,链接和运行。 I just now tried to fire my app up in my iPhone, and am totally bombing out during the link process. 我刚刚尝试在我的iPhone中启动我的应用程序,并且在链接过程中完全被炸了。

I've run my app on my iPhone before. 我以前在iPhone上运行过我的应用程序。 I've been building it under Xcode 3.2.x for the last year, and have never seen this problem. 去年,我一直在Xcode 3.2.x下构建它,但从未见过此问题。

A couple of other SO threads indicate that it could be due to copying a framework into the project folder, and that one should just "move the framework." 其他几个SO线程表明,这可能是由于将框架复制到项目文件夹中造成的,并且应该只是“移动框架”。 Okay. 好的。 Where, and how do I let Xcode know where it is? 在哪里,如何让Xcode知道它在哪里? And if that's not the problem, then what is? 如果那不是问题,那是什么?

Xcode 4 has a ton of promise, but it is a sore pain in the ass sometimes.... Xcode 4有很多希望,但是有时候这是一个痛苦的痛...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM