[英]Wierd error when trying to run app with AdMob
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)
這是什么意思? 為了解決這個問題,我需要做什么?
非常感謝。
僅供參考-我必須添加AudioToolbox框架才能進行編譯。
解決方案是添加AVAudioPlayer和MessageUI框架。 就是這樣
無論從哪里獲得正在使用的庫,都只能編譯該庫以供在設備上使用。(架構armv7),在嘗試在模擬器(架構i386)上對其進行測試時會出現錯誤。 因此,如果要在模擬器上進行測試,請獲取為i386編譯的庫的版本。
您還可以使用lipo命令將這兩個庫組合在一起,並在任何體系結構上使用它。
希望這會有所幫助.. :)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.