2014-04-02 48 views
0

我也跟着AdMob的整合我的iOS應用程序的步驟,一切都很好,但我有一個致命錯誤(所以我想自己是不是OK)的AdMob適用於iOS錯誤:Llibrary找不到-lGoogleAdMobAds

這裏爲消息:

Ld /Library/Developer/Xcode/DerivedData/Liga_Zon_Sagres_Companion-fjlwctxjtriqrbgpjiscdoodhcgr/Build/Products/Debug-iphonesimulator/Liga\ Zon\ Sagres\ Companion.app/Liga\ Zon\ Sagres\ Companion normal x86_64 
    cd "/Users/bertobettencourt/Desktop/LIVE RELEASES/Liga Zon Sagres (iOS)/1.30" 
    export IPHONEOS_DEPLOYMENT_TARGET=6.0 
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" 
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk -L/Users/bertobettencourt/Library/Developer/Xcode/DerivedData/Liga_Zon_Sagres_Companion-fjlwctxjtriqrbgpjiscdoodhcgr/Build/Products/Debug-iphonesimulator -L/Users/bertobettencourt/Desktop/LIVE\ RELEASES/Liga\ Zon\ Sagres\ (iOS)/1.30/Liga\ Zon\ Sagres\ Companion/Flurry\ iPhone\ SDK\ viPhone\ 4/Flurry-iOS-4.4.0/Flurry -L/Users/bertobettencourt/Desktop/LIVE\ RELEASES/Liga\ Zon\ Sagres\ (iOS)/1.30/Liga\ Zon\ Sagres\ Companion/Flurry\ iPhone\ SDK\ viPhone\ 4/Flurry-iOS-4.4.0/FlurryAds -F/Users/bertobettencourt/Library/Developer/Xcode/DerivedData/Liga_Zon_Sagres_Companion-fjlwctxjtriqrbgpjiscdoodhcgr/Build/Products/Debug-iphonesimulator -filelist /Users/bertobettencourt/Library/Developer/Xcode/DerivedData/Liga_Zon_Sagres_Companion-fjlwctxjtriqrbgpjiscdoodhcgr/Build/Intermediates/Liga\ Zon\ Sagres\ Companion.build/Debug-iphonesimulator/Liga\ Zon\ Sagres\ Companion.build/Objects-normal/x86_64/Liga\ Zon\ Sagres\ Companion.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -ObjC -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=6.0 -framework AudioToolbox -framework MessageUI -lFlurry_4.4.0 -framework SystemConfiguration -framework StoreKit -framework CoreData -framework AdSupport -lFlurryAds_4.4.0 -lGoogleAdMobAds -framework iAd -framework CoreGraphics -framework UIKit -framework Foundation -Xlinker -dependency_info -Xlinker /Users/bertobettencourt/Library/Developer/Xcode/DerivedData/Liga_Zon_Sagres_Companion-fjlwctxjtriqrbgpjiscdoodhcgr/Build/Intermediates/Liga\ Zon\ Sagres\ Companion.build/Debug-iphonesimulator/Liga\ Zon\ Sagres\ Companion.build/Objects-normal/x86_64/Liga\ Zon\ Sagres\ Companion_dependency_info.dat -o /Users/bertobettencourt/Library/Developer/Xcode/DerivedData/Liga_Zon_Sagres_Companion-fjlwctxjtriqrbgpjiscdoodhcgr/Build/Products/Debug-iphonesimulator/Liga\ Zon\ Sagres\ Companion.app/Liga\ Zon\ Sagres\ Companion 

ld: library not found for -lGoogleAdMobAds 
clang: error: linker command failed with exit code 1 (use -v to see invocation) 

我是新來的iOS我不知道是什麼原因造成這一點,似乎我的思念庫,任何想法,我可以找到它,如何解決這個問題?

謝謝。

+0

**這對我來說是同樣的問題,這soultion工作完全在我的情況:請**嘗試:選擇項目>選擇項目目標>打造階段>點擊與庫鏈接二進制>點擊+按鈕,然後點擊在添加其他按鈕並選擇GoogleMobileAds.framework,現在清理您的項目,完成,現在再次構建。我希望它能幫助你。謝謝 –

回答

1

您可以將您的項目經理網頁庫添加到您的項目(單擊左邊的文件瀏覽器選項卡中的藍色Xcode項目目錄(「iPhone測試」在這種情況下)),以及綜合作用下,你應該請參閱「庫」部分。如果你沒有圖書館(我假設你這樣做),可以從谷歌網站下載。

Xcode Screenshot

+0

嗨,我有一些庫加載,其實......他們中的很多,其中之一是的libGoogleAdMobAds.a,所以是有,抑或是缺少什麼? – user3396301

5

您可以檢查我的so post這裏

轉到Project Navigator和發現libGoogleAdMobAds.a。只需選擇它並在Target Membership的右側,您就可以獲得目標。只需取消選擇所選的目標並再次選擇它們。

For more help you can refer this image

它可以幫助你。

+0

這工作。但是,如果我關閉Xcode並再次打開,它會引發相同的錯誤。我需要重新執行上述步驟。有沒有解決這個問題? – Kalaichelvan

+1

在您的構建設置,找到搜索路徑併爲您的AdMob庫的路徑。如果路徑中有任何「空間」,那麼當您重新打開xcode時,路徑會折成多行。只需添加「啓動和路徑的終點,並使其單行。 –

+0

謝謝拉胡爾,它確實有效。 – Kalaichelvan

相關問題