我现在正在尝试在 Xcode 4.0 中构建的项目遇到问题,希望有人可以为我阐明这一点..
我正在尝试使用 ZBar SDK 并遵循此处概述的指南中概述的说明:
http://zbar.sourceforge.net/iphone/sdkdoc/camera.html
但是,我遇到了同样的错误。我查看了 John 的帖子,但是,他提到的路径不在我的 LIBRARY_SEARCH_PATH 中。
我正在使用 Xcode 4.0,并且正在尝试为 iPad 4.3 模拟器构建我的项目。
(我得到的错误):
Undefined symbols for architecture i386:
"_objc_msgSend", referenced from:
_main in main.o
-[PrototypeAppDelegate application:didFinishLaunchingWithOptions:] in PrototypeAppDelegate.o
-[PrototypeAppDelegate dealloc] in PrototypeAppDelegate.o
-[Home loadGRView] in Home.o
...
"_UIApplicationMain", referenced from:
_main in main.o
"_OBJC_CLASS_$_NSAutoreleasePool", referenced from:
objc-class-ref in main.o
"_objc_msgSendSuper2", referenced from:
-[PrototypeAppDelegate dealloc] in PrototypeAppDelegate.o
-[PrototypeAppDelegate_iPhone dealloc] in PrototypeAppDelegate_iPhone.o
...
"_objc_setProperty", referenced from:
-[PrototypeAppDelegate setTabBarController:] in PrototypeAppDelegate.o
-[PrototypeAppDelegate setTheNavController:] in PrototypeAppDelegate.o
...
等等
我尝试查看 ZBar sdk 中包含的 ReaderSample 代码,并认为问题是我缺少他们在他们的应用程序中使用的几个框架,但包括这些框架只会增加我得到的错误数量。这是构建设置问题吗?有人知道我可以尝试做什么吗?
PS:我找到了两个类似这个问题的线程,尝试了他们推荐的各种解决方案,仍然没有得到解决
-http://stackoverflow.com/questions/1452466/suddenly-i-am-not-able-to-build-for-the-iphone-simulator -http://stackoverflow.com/questions/1456185/build-error -缺少所需架构-i386-in-file/1467238#1467238
我希望我正确使用了这个线程......我对堆栈溢出比较陌生。吨