【问题标题】:GData iPhone Archive ErrorGData iPhone 存档错误
【发布时间】:2012-08-18 10:44:27
【问题描述】:

按照此处的说明进行操作:http://hoishing.wordpress.com/2011/08/23/gdata-objective-c-client-setup-in-xcode-4/
我将 GData 添加到我的 iOS 5 项目中。当需要归档项目时,我收到以下错误:

Undefined symbols for architecture armv7:
  "_OBJC_CLASS_$_GDataServiceGoogleYouTube", referenced from:
      objc-class-ref in DataManager.o
  "_OBJC_CLASS_$_GDataEntryYouTubeVideo", referenced from:
      objc-class-ref in DataManager.o
      objc-class-ref in ListController.o
      objc-class-ref in ShareController.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

我已经检查了 GData.xcodeproj -> GDataTouchStaticLib 的构建设置,这就是我将它们设置为如图所示:)

感谢任何帮助,以帮助存档我的项目。

【问题讨论】:

    标签: ios xcode gdata


    【解决方案1】:

    您没有正确链接库。在添加库路径时,请确保仔细按照说明进行操作。请参阅Undefined symbols for architecture armv7 了解更多信息。

    【讨论】:

    • 我认为我遵循的链接是将 GData 库链接到 xcode 项目的正确方法。我从构建阶段中删除了静态库。拖动项目中的 GData Sources 文件夹。然后将项目抱怨的缺少的 .h 和 .m 文件添加到编译源部分。还是同样的错误。我还想指出,当我尝试添加文件时添加文件会在尝试编译到模拟器时导致构建错误。重新链接静态库可以解决这个问题。
    • 那么你还有问题还是这个答案解决了它?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-10-08
    • 1970-01-01
    • 2011-06-14
    • 1970-01-01
    • 1970-01-01
    • 2015-04-16
    相关资源
    最近更新 更多