前提・実現したいこと
ここに質問の内容を詳しく書いてください。
AdModのバナー広告を導入したゲームをビルドしようとしたのですが、エラーがたくさん出てきてしまいビルドできません。おそらくAdModに関してのエラーなのですが、色々調べても初心者で何を直せば良いのかわかりません。どなたかわかる方いらっしゃいませんか。
発生している問題・エラーメッセージ
Xcodeに表示されているエラーです
Undefined symbols for architecture arm64:
"OBJC_CLASS$_GADRequest", referenced from:
objc-class-ref in unity-plugin-library.a(GADURequest.o)
"OBJC_CLASS$_GADInterstitialAd", referenced from:
objc-class-ref in unity-plugin-library.a(GADUInterstitial.o)
"OBJC_CLASS$_GADBannerView", referenced from:
objc-class-ref in unity-plugin-library.a(GADUBanner.o)
"OBJC_CLASS$_GADRewardedAd", referenced from:
objc-class-ref in unity-plugin-library.a(GADURewardedAd.o)
"_kGADAdSizeSmartBannerPortrait", referenced from:
-[GADUBanner initWithSmartBannerSizeAndBannerClientReference:adUnitID:adPosition:] in unity-plugin-library.a(GADUBanner.o)
-[GADUBanner initWithSmartBannerSizeAndBannerClientReference:adUnitID:customAdPosition:] in unity-plugin-library.a(GADUBanner.o)
"_GADPortraitAnchoredAdaptiveBannerAdSizeWithWidth", referenced from:
+[GADUPluginUtil adaptiveAdSizeForWidth:orientation:] in unity-plugin-library.a(GADUPluginUtil.o)
"_CGSizeFromGADAdSize", referenced from:
+[GADUPluginUtil safeAdSizeForAdSize:] in unity-plugin-library.a(GADUPluginUtil.o)
"_GADLandscapeAnchoredAdaptiveBannerAdSizeWithWidth", referenced from:
+[GADUPluginUtil adaptiveAdSizeForWidth:orientation:] in unity-plugin-library.a(GADUPluginUtil.o)
"_GADAdSizeFromCGSize", referenced from:
+[GADUPluginUtil safeAdSizeForAdSize:] in unity-plugin-library.a(GADUPluginUtil.o)
+[GADUPluginUtil adSizeForWidth:height:] in unity-plugin-library.a(GADUPluginUtil.o)
"_kGADAdSizeSmartBannerLandscape", referenced from:
+[GADUPluginUtil safeAdSizeForAdSize:] in unity-plugin-library.a(GADUPluginUtil.o)
-[GADUBanner initWithSmartBannerSizeAndBannerClientReference:adUnitID:adPosition:] in unity-plugin-library.a(GADUBanner.o)
-[GADUBanner initWithSmartBannerSizeAndBannerClientReference:adUnitID:customAdPosition:] in unity-plugin-library.a(GADUBanner.o)
"_GADCurrentOrientationAnchoredAdaptiveBannerAdSizeWithWidth", referenced from:
+[GADUPluginUtil adaptiveAdSizeForWidth:orientation:] in unity-plugin-library.a(GADUPluginUtil.o)
"_GADAdSizeEqualToSize", referenced from:
+[GADUPluginUtil safeAdSizeForAdSize:] in unity-plugin-library.a(GADUPluginUtil.o)
"OBJC_CLASS$_GADRewardedInterstitialAd", referenced from:
objc-class-ref in unity-plugin-library.a(GADURewardedInterstitialAd.o)
"_GADAdSizeFullWidthPortraitWithHeight", referenced from:
+[GADUPluginUtil adSizeForWidth:height:] in unity-plugin-library.a(GADUPluginUtil.o)
"OBJC_CLASS$_GADServerSideVerificationOptions", referenced from:
objc-class-ref in unity-plugin-library.a(GADUInterface.o)
"OBJC_CLASS$_GADAppOpenAd", referenced from:
objc-class-ref in unity-plugin-library.a(GADUAppOpenAd.o)
"OBJC_CLASS$_GADMobileAds", referenced from:
objc-class-ref in unity-plugin-library.a(GADUInterface.o)
"OBJC_CLASS$_GADExtras", referenced from:
objc-class-ref in unity-plugin-library.a(GADURequest.o)
"_GADErrorUserInfoKeyResponseInfo", referenced from:
_GADUGetAdErrorResponseInfo in unity-plugin-library.a(GADUInterface.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
エラーメッセージ
### 該当のソースコード ```ここに言語名を入力 ソースコード
試したこと
Homebrewを使ってCocoPodsを入れ直した。unityを再起動して再度ビルドしてみるが同じエラーで失敗。
補足情報(FW/ツールのバージョンなど)
unity ver 2019 4.16
あなたの回答
tips
プレビュー