3

目前,我正在开发一个应用程序,其中我已经实现了用于发送视频的管 API

进入你的管子。为此,我使用了https://github.com/nparry/gdata-objectivec-clien/tree/master/Source

当我单独使用它时,库和它的工作对我来说很好。但是当我合并这个 API 时

在我的工作应用程序中,它向我显示以下错误:

Undefined symbols for architecture armv7:
  "_OBJC_CLASS_$_GDataYouTubeMediaGroup", referenced from:
      objc-class-ref in YoutubeViewController.o
  "_OBJC_CLASS_$_GDataUtilities", referenced from:
      objc-class-ref in YoutubeViewController.o
  "_OBJC_CLASS_$_GDataMediaTitle", referenced from:
      objc-class-ref in YoutubeViewController.o
  "_OBJC_CLASS_$_GDataServiceGoogleYouTube", referenced from:
      objc-class-ref in YoutubeViewController.o
  "_OBJC_CLASS_$_GDataMediaKeywords", referenced from:
      objc-class-ref in YoutubeViewController.o
  "_kGDataSchemeYouTubeCategory", referenced from:
      -[YoutubeViewController uploadPressed:] in YoutubeViewController.o
  "_OBJC_CLASS_$_GDataMediaDescription", referenced from:
      objc-class-ref in YoutubeViewController.o
  "_OBJC_CLASS_$_GDataEntryYouTubeUpload", referenced from:
      objc-class-ref in YoutubeViewController.o
  "_OBJC_CLASS_$_GDataMediaCategory", referenced from:
      objc-class-ref in YoutubeViewController.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

我为消除此错误而苦苦寻找,但找不到任何解决方案。我该如何解决?

4

2 回答 2

1

这是将文件从外部源添加到项目中时出现的错误,您需要做的就是:转到“目标”下的“构建阶段”,您需要在“编译源”中添加所有 .m 文件。

于 2012-12-18T13:27:49.693 回答
0

听起来您还没有将 gdata 文件链接到目标。最简单的方法是从项目中删除它们,然后再次添加它们,确保选中“添加到目标”下项目旁边的框。希望这可以帮助

于 2012-12-18T13:01:47.123 回答