Unity : Google mobile ads . iOSビルドエラー・・・type unknown name

Unity

普通にgoogle mobile adsのパッケージを入れて Xcodeでビルドしたら・・・

Unknown type name GADRewardedInterstitialAd

検索しても特に他の方はエラー出ていない様子・・・
unity4で必要な設定にbuild settingでenable modules(c … というのがありますが、unity 2020なので全く関係なく。。。

cocoapodsの何か・・・とは思ってもわからず。

$ pod repo remove master

$ pod repo remove master
$ pod setup
Setup completed

これもダメでした。

GADRewardedInterstitialAdの部分は利用していないので削除したらビルドは通るのですが・・・

pod の google movile ads が ~> 7.63 となっているのですが
https://developers.google.com/admob/ios/rel-notes
をみると 7.67.0 が必要ぽいということで update!

$ pod update
Update all pods
Updating local specs repositories
  $ /usr/bin/git -C /Users/junichi/.cocoapods/repos/cocoapods fetch origin --progress
  remote: Enumerating objects: 31979, done.        
  remote: Counting objects: 100% (31979/31979), done.        
  remote: Compressing objects: 100% (606/606), done.        
  remote: Total 149915 (delta 31581), reused 31355 (delta 31349), pack-reused 117936        
  Receiving objects: 100% (149915/149915), 17.82 MiB | 3.15 MiB/s, done.
  Resolving deltas: 100% (104630/104630), completed with 8130 local objects.
  From https://github.com/CocoaPods/Specs
     1b3eb9b67614..7280319116a3  master            -> origin/master
   * [new branch]                igor/fix-workflow -> origin/igor/fix-workflow
  $ /usr/bin/git -C /Users/junichi/.cocoapods/repos/cocoapods rev-parse --abbrev-ref HEAD
  master
  $ /usr/bin/git -C /Users/junichi/.cocoapods/repos/cocoapods reset --hard origin/master
  Updating files: 100% (15611/15611), done.
  HEAD is now at 7280319116a3 [Add] BROKENPOD 3
Analyzing dependencies
Downloading dependencies
Installing Google-Mobile-Ads-SDK 7.68.0 (was 7.65.0)
Installing GoogleAppMeasurement 7.0.0 (was 6.8.0)
Installing GoogleUserMessagingPlatform 1.3.0 (was 1.1.0)
Installing GoogleUtilities 7.0.0 (was 6.7.2)
Installing PromisesObjC 1.2.11 (was 1.2.10)
Installing nanopb 2.30906.0 (was 1.30906.0)
Generating Pods project
Integrating client project
Pod installation complete! There is 1 dependency from the Podfile and 6 total pods installed.

[!] The Podfile contains framework or static library targets (UnityFramework), for which the Podfile does not contain host targets (targets which embed the framework).
If this project is for doing framework development, you can ignore this message. Otherwise, add a target to the Podfile that embeds these frameworks to make this message go away (e.g. a test target).

Installing Google-Mobile-Ads-SDK 7.68.0 (was 7.65.0)
7.65 だったものが 7.68.0がインストールされた様子

やっぱり解決しないので・・・

ちなみに 5.3.0 でエラーになっているので
5.0.1などを利用したほうがいいのかもしれません。(それで問題なく利用できている方がいるようなので)

GADRewardedInterstitialAdを削除

Plugins/iOS/ 以下の

GADRewardedInterstitialAd.h
GADRewardedInterstitialAd.m

を削除しました!OKぽいです(仮

お気軽にコメントください!

スパム対応のためコメント認証に数日かかることがありますが、お気軽にコメントいただけると嬉しいです^^

コメント

タイトルとURLをコピーしました