LoginSignup
1
0

More than 5 years have passed since last update.

Xamarin.iOSでビルドエラーが出た場合の解決方法(AdMob関連)

Posted at

現象

iOS用のAdMob表示で後述のNuGetパッケージを使用していると、iOSビルド時に下記のエラーが発生しました。

Native linking failed, duplicate symbol: '_OBJC_METACLASS_$_GADMediatedNativeAd'.
Native linking failed, duplicate symbol: '_OBJC_CLASS_$_GADMediatedNativeAd'.
Native linking error: 2 duplicate symbols for architecture arm64

環境

  • Windows 10 Pro
  • Visual Studio 2017 Community (Ver15.7.1)
  • Visual Studio 2017 for Mac Community (Ver7.5)
  • iPhone 7 (iOS11.3.1)

NuGet

解決方法

上記NuGetパッケージを最新に更新すれば直りました。

  • 変更前:Xamarin.Google.iOS.MobileAds (Ver.7.27.0.2)
  • 変更後:Xamarin.Google.iOS.MobileAds (Ver.7.27.0.3)

参考

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0