2012-04-30 39 views
1
Undefined symbols for architecture i386: 
    "_AudioServicesPlaySystemSound", referenced from: 
     -[GADWebViewDelegate webView:shouldStartLoadWithRequest:navigationType:] in libGoogleAdMobAds.a(GADWebViewDelegate.o) 
    "_OBJC_CLASS_$_MFMailComposeViewController", referenced from: 
     objc-class-ref in libGoogleAdMobAds.a(GADOpener.o) 
    "_OBJC_CLASS_$_MFMessageComposeViewController", referenced from: 
     objc-class-ref in libGoogleAdMobAds.a(GADOpener.o) 
ld: symbol(s) not found for architecture i386 
clang: error: linker command failed with exit code 1 (use -v to see invocation) 

這是什麼意思?爲了解決這個問題,我需要做些什麼?試圖通過AdMob運行應用程序時出現Wierd錯誤

非常感謝。

回答

2

解決方案是添加AVAudioPlayer和MessageUI框架。就是這樣。

1

從哪裏得到你正在使用的庫,它的唯一編譯用於設備..(架構armv7),當你試圖在模擬器(架構i386)上測試它,因此錯誤。所以如果你想在模擬器上測試它,可以獲取爲i386編譯的庫的一個版本。

您也可以使用脂命令結合了該庫,並用它在任何架構..

希望這有助於.. :)

+1

好了,解決方案是我只需要添加AVAudioPlayer和MessageUI框架。而已。不過謝謝你的迴應。 –

+1

:P,嗯,今天學到了另外一件事。一個人應該專注於缺少的課程,而不僅僅是錯誤。謝啦。 –

+0

謝謝你的男人! :) –

2

僅供參考 - 我不得不添加AudioToolbox框架得到這個編譯。

相關問題