2013-02-11 73 views
1

我曾在Google日曆中工作過。現在我已經從這個鏈接下載了示例代碼:

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

但是在這段代碼中有一些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) 
+0

你在模擬器上測試它嗎? – Rushi 2013-02-11 05:21:34

回答

6

您需要的GDATA .m文件(GDataDateTime.mGDataEntryCalendarEvent.m等)添加到您的目標的「編譯源」建設階段。

執行此操作的一種方法是使用文件檢查器。有關動畫示例,請參閱this answer

相關問題