블로그 이미지
Every unexpected event is a path to learning for you.

카테고리

분류 전체보기 (2574)N
Unity3D (703)N
Programming (465)
Server (33)
Unreal (4)
Gamebryo (56)
Tip & Tech (214)
협업 (47)
3DS Max (3)
Game (12)
Utility (133)
Etc (95)
Link (32)
Portfolio (19)
Subject (90)
iOS,OSX (46)
Android (14)
Linux (5)
잉여 프로젝트 (2)
게임이야기 (3)
Memories (20)
Interest (37)
Thinking (37)
한글 (28)
PaperCraft (5)
Animation (408)
Wallpaper (2)
재테크 (18)
Exercise (3)
나만의 맛집 (3)
냥이 (10)
육아 (16)
Total1,660,575
Today248
Yesterday431
08-17 15:15

달력

« » 2022.8
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      

공지사항

태그목록

반응형

Unity 2020.3.27f1

GoogleMobileAds-v6.1.2

GoogleMobileAds-FacebookUnityAdapter-3.6.0

 

[에러메시지]

Undefined Symbols for architecture arm64: "_OBJC_CLASS_$_GAD...

 

[해결방법]

Unity Editor-Menu-External Dependency Manager-iOS Resolver-Settings : Link frameworks statically 체크

 

[참조] https://newreleases.io/project/github/googleads/googleads-mobile-unity/release/v6.0.0

  - [GooglemobileAds  6.0.0] You need to enable "Link frameworks statically" in Unity Editor -> Assets -> External Dependency Manager -> iOS Resolver -> Settings, or else the GMA plugin does not work.

 

-----------------------------------------------------------------------------------------------------

[펌]

Unity【iOS】「Undefined symbols for architecture arm64: _OBJC_CLASS_$_GADMediaView」エラーの対処法に関するメモ

 

Unityで開発したアプリをiOSでビルドした際に出たエラーの対処法がわかりづらかったのでメモ。

Xcodeでビルドした際に以下のエラーが出ました。

ld: warning: Could not find or use auto-linked framework 'AVFAudio'

Undefined symbols for architecture arm64:

  "_OBJC_CLASS_$_GADMediaView", referenced from:

      objc-class-ref in AppLovinMediationGoogleAdapter(ALGoogleMediationAdapter.o)

  "_OBJC_CLASS_$_GADRequest", referenced from:

      objc-class-ref in AppLovinMediationGoogleAdapter(ALGoogleMediationAdapter.o)

  "_OBJC_CLASS_$_GADNativeAdImageAdLoaderOptions", referenced from:

      objc-class-ref in AppLovinMediationGoogleAdapter(ALGoogleMediationAdapter.o)

  "_OBJC_CLASS_$_GADNativeAdViewAdOptions", referenced from:

      objc-class-ref in AppLovinMediationGoogleAdapter(ALGoogleMediationAdapter.o)

  "_OBJC_CLASS_$_GADBannerView", referenced from:

      objc-class-ref in AppLovinMediationGoogleAdapter(ALGoogleMediationAdapter.o)

  "_OBJC_CLASS_$_GADInterstitialAd", referenced from:

      objc-class-ref in AppLovinMediationGoogleAdapter(ALGoogleMediationAdapter.o)

  "_OBJC_CLASS_$_GADNativeAdView", referenced from:

      objc-class-ref in AppLovinMediationGoogleAdapter(ALGoogleMediationAdapter.o)

  "_kGADAdSizeMediumRectangle", referenced from:

      -[ALGoogleMediationAdapter adSizeFromAdFormat:withServerParameters:] in AppLovinMediationGoogleAdapter(ALGoogleMediationAdapter.o)

  "_OBJC_CLASS_$_GADMobileAds", referenced from:

      objc-class-ref in AppLovinMediationGoogleAdapter(ALGoogleMediationAdapter.o)

  "_kGADAdSizeLeaderboard", referenced from:

      -[ALGoogleMediationAdapter adSizeFromAdFormat:withServerParameters:] in AppLovinMediationGoogleAdapter(ALGoogleMediationAdapter.o)

  "_OBJC_CLASS_$_GADAdLoader", referenced from:

      objc-class-ref in AppLovinMediationGoogleAdapter(ALGoogleMediationAdapter.o)

  "_GADCurrentOrientationAnchoredAdaptiveBannerAdSizeWithWidth", referenced from:

      -[ALGoogleMediationAdapter adSizeFromAdFormat:withServerParameters:] in AppLovinMediationGoogleAdapter(ALGoogleMediationAdapter.o)

      +[ALGoogleMediationAdapter currentOrientationAchoredAdaptiveBannerSizeWithWidth:] in AppLovinMediationGoogleAdapter(ALGoogleMediationAdapter.o)

  "_OBJC_CLASS_$_GADQueryInfo", referenced from:

      objc-class-ref in AppLovinMediationGoogleAdapter(ALGoogleMediationAdapter.o)

  "_OBJC_CLASS_$_GADExtras", referenced from:

      objc-class-ref in AppLovinMediationGoogleAdapter(ALGoogleMediationAdapter.o)

  "_kGADAdSizeBanner", referenced from:

      -[ALGoogleMediationAdapter adSizeFromAdFormat:withServerParameters:] in AppLovinMediationGoogleAdapter(ALGoogleMediationAdapter.o)

  "_OBJC_CLASS_$_GADRewardedAd", referenced from:

      objc-class-ref in AppLovinMediationGoogleAdapter(ALGoogleMediationAdapter.o)

  "_kGADAdLoaderAdTypeNative", referenced from:

      -[ALGoogleMediationAdapter loadAdViewAdForParameters:adFormat:andNotify:] in AppLovinMediationGoogleAdapter(ALGoogleMediationAdapter.o)

ld: symbol(s) not found for architecture arm64

clang: error: linker command failed with exit code 1 (use -v to see invocation)

 

このエラーの厄介なところは、具体的にどんな対処をすればいいのかわからない点です。この部分でエラーが出ているよってことがわかればなおせますが、複数の要因により出ていると思われるエラーは修正することで泥沼にいっちゃうこともあるので慎重に対処するのが大事かなと思います。

 

 「Undefined symbols for architecture arm64: _OBJC_CLASS_$_GADMediaView」エラーに関する対処法

僕の環境では以下の方法で解決できました。(具体的なエラー原因がまだわかっていないので、上記のエラーが出た場合の対処法の一つ程度だと思ってもらえれば幸いです)

 

1.Unityで iOS ResolverのSettingsを開く

 

2.Link frameworks staticallyにチェックを入れる

3.iOSプロジェクトを出力して再ビルド

上記の方法でエラーが解消されました。

最近結構出るエラーなので、また発生したら今回のメモを参考にしたいと思います。

 

 

 

 

 お知らせ

謎解き推理ゲーム「イラスト探偵」を最近リリースしました!

もしよろしければダウンロードお願い致します!

 

[출처] https://develop.hateblo.jp/entry/unity-ios-error-build-arm64

 

Unity【iOS】「Undefined symbols for architecture arm64: _OBJC_CLASS_$_GADMediaView」エラーの対処法に関するメ

Unityで開発したアプリをiOSでビルドした際に出たエラーの対処法がわかりづらかったのでメモ。Xcodeでビルドした際に以下のエラーが出ました。ld: warning: Could not find or use auto-linked framework 'AVFAu

develop.hateblo.jp

 

반응형
Posted by blueasa

댓글을 달아 주세요