2012-10-14 55 views
0

我正試圖在一個iOS應用上實現Admob中介。同時向InMobi集成當我建立我的項目,我收到此錯誤架構i386的未定義符號InMobi

Undefined symbols for architecture i386: 
    "_OBJC_CLASS_$_IMCommonUtil", referenced from: 
     objc-class-ref in libAdapterInMobi.a(GADInMobiExtras.o) 
ld: symbol(s) not found for architecture i386 
clang: error: linker command failed with exit code 1 (use -v to see invocation) 

請幫助

回答

3

您的項目中沒有包含InMobi Commons庫(libInMobiCommons)嗎?

的InMobi iOS的廣告網絡軟件包:(http://developer.inmobi.com/wiki/index.php?title=InMobi_SDK_3.6.0_for_iOS#Getting_Started)

IMAdDelegate.h 
IMAdError.h 
IMAdInterstitial.h 
IMAdInterstitialDelegate.h 
IMAdRequest.h 
IMAdView.h 
IMCommonUtil.h 
libInMobiAdNetwork-3.6.0.a 
libInMobiCommons-3.6.0.a 
0

大概是靜態庫並不多架構的「足夠」:它可以是內置於iOS只(在這種情況下,只有ARMv7或ARMv6和ARMv7體系結構存在於內部),或者用於64位iPhone模擬器(在這種情況下,i386不內置於庫中,僅適用於x86_64處理器類型的代碼)。你真的無法做任何事情;在真實設備上測試應用程序(無論如何,它幾乎總是在設備上測試您的應用程序)。

1

否則庫上的一個脂-detailed_info告訴它的構建以下拱 - armv7,armv7(s)& i386。 i386硬件架構 CPUTYPE CPU_TYPE_I386 cpusubtype CPU_SUBTYPE_I386_ALL 偏移68 大小275880 對準2^2(4) 架構的ARMv7 CPUTYPE(12) cpusubtype cpusubtype(9) 偏移275948 大小295872 對準2^2(4 ) 架構(CPUTYPE(12)cpusubtype(11)) CPUTYPE(12) cpusubtype cpusubtype(11) 偏移571820 大小295792 對齊2^2(4) 所以可能只是鏈接庫中的幻燈ct,你的錯誤將被刪除。

相關問題