体系结构i386的未定义符号:“_ OBJC_CLASS _ $ _ GDataDateTime”,引自:

时间:2021-03-06 09:39:13

I have worked in google calendar. Now i have download the sample code from this link:

我曾在谷歌日历工作过。现在我从这个链接下载示例代码:

"http://code.google.com/p/iphone-gcal/". 

But in this code it is some Gdata codes are missing. So i have implemented that code but also i got this below errors. Please some body help me to solve this errors.

但是在这段代码中,缺少一些Gdata代码。所以我已经实现了该代码,但我也得到了以下错误。请一些人帮我解决这个错误。

Undefined symbols for architecture i386:
  "_OBJC_CLASS_$_GDataDateTime", referenced from:
      objc-class-ref in RootViewController.o
      objc-class-ref in EditingViewController.o
  "_OBJC_CLASS_$_GDataEntryCalendarEvent", referenced from:
      objc-class-ref in EditingViewController.o
  "_OBJC_CLASS_$_GDataQueryCalendar", referenced from:
      objc-class-ref in RootViewController.o
  "_OBJC_CLASS_$_GDataServiceGoogleCalendar", referenced from:
      objc-class-ref in RootViewController.o
  "_OBJC_CLASS_$_GDataWhen", referenced from:
      objc-class-ref in RootViewController.o
      objc-class-ref in EditingViewController.o
  "_OBJC_CLASS_$_GDataWhere", referenced from:
      objc-class-ref in EditingViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

1 个解决方案

#1


6  

You need to add the gdata .m files (GDataDateTime.m, GDataEntryCalendarEvent.m, etc.) to your target's “Compile Sources” build phase.

您需要将gdata .m文件(GDataDateTime.m,GDataEntryCalendarEvent.m等)添加到目标的“编译源”构建阶段。

One way to do this is using the File Inspector. See this answer for an animated example.

一种方法是使用文件检查器。有关动画示例,请参阅此答案。

#1


6  

You need to add the gdata .m files (GDataDateTime.m, GDataEntryCalendarEvent.m, etc.) to your target's “Compile Sources” build phase.

您需要将gdata .m文件(GDataDateTime.m,GDataEntryCalendarEvent.m等)添加到目标的“编译源”构建阶段。

One way to do this is using the File Inspector. See this answer for an animated example.

一种方法是使用文件检查器。有关动画示例,请参阅此答案。