2012-08-22 67 views
5

按照此處的說明:http://hoishing.wordpress.com/2011/08/23/gdata-objective-c-client-setup-in-xcode-4/
我在我的iOS 5項目中添加了GData。當它的時間來歸檔項目,我得到以下錯誤:

GData iPhone歸檔錯誤

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,而這正是我將它們設置爲通過此所見圖片:) enter image description here

任何幫助表示讚賞,以幫助我的項目存檔。

回答

0

您還沒有正確鏈接庫。請確保在添加庫路徑時仔細按照指示操​​作。有關更多信息,請參閱Undefined symbols for architecture armv7

+0

我認爲我遵循的鏈接是將GData庫鏈接到xcode項目的正確方法。我從構建階段中刪除了靜態庫。拖動項目中的GData Sources文件夾。然後將項目抱怨的缺失的.h和.m文件添加到編譯源代碼部分。還是一樣的錯誤。我也想要說明的是,當我嘗試添加它們時,添加文件會導致在嘗試編譯到模擬器時出現構建錯誤。重新鏈接靜態庫修復了這個問題。 – AFM

+0

那麼你仍然有問題或做了這個答案解決它? – Bot