0

所以我正在使用 CorePlot 构建一个应用程序,当我尝试运行它时,出现以下错误:

ld: warning: ignoring file /Users/tcbl/Library/Developer/Xcode/DerivedData/FaceTracker-    chbhtqlxwipamtailjamrakmkpuy/Build/Products/Debug-iphoneos/libCorePlot-CocoaTouch.a,     
file was built for archive which is not the architecture being linked (armv6)
ld: duplicate symbol _main in /Users/tcbl/Library/Developer/Xcode/DerivedData/FaceTracker-chbhtqlxwipamtailjamrakmkpuy/Build/Intermediates/FaceTracker.build/Debug-iphoneos/FaceTracker.build/Objects-normal/armv6/main-cocoatouch.o and /Users/tcbl/Library/Developer/Xcode/DerivedData/FaceTracker-chbhtqlxwipamtailjamrakmkpuy/Build/Intermediates/FaceTracker.build/Debug-iphoneos/FaceTracker.build/Objects-normal/armv6/main.o for architecture armv6
clang: error: linker command failed with exit code 1 (use -v to see invocation)

我在某处读到需要添加到其他链接器标志-ObjC -all_load -lCorePlot的地方:但这似乎不在项目信息或构建设置中的任何地方,我不确定这是否与我的错误有关。任何帮助揭开这个神秘面纱将不胜感激。

4

1 回答 1

1

如果您选择您的项目并转到 Build Settings 选项卡,您应该会在 Linking 下找到它。确保您拥有选项卡的高级/完整视图。您要输入的字段是“其他链接器标志”。

希望有帮助!

于 2012-06-29T20:54:12.290 回答