상세 컨텐츠

본문 제목

Error Domain=com.google.admob Code=2 "SDK tried to perform a networking task before being initialized."

개발생활/Unity Engine

by 한국인맛집 2021. 8. 18. 12:11

본문

반응형

- IOS build Error [ Xcode ]

 

Dev Env

 

Unity Editor 2019.3.9f1

Xcode 15.2

 

 

 

 

$cd /Move_TO/UER_BUILD/PROJECT_PATH

 

$vi Podfile

 

Podfile 

source 'https://github.com/CocoaPods/Specs.git'
source 'https://github.com/CocoaPods/Specs'
platform :ios, '10.0'

target 'UnityFramework' do
  pod 'Firebase/Analytics', '8.3.0'
  pod 'Firebase/Core', '8.3.0'
  pod 'Firebase/Messaging', '8.3.0'
  pod 'Google-Mobile-Ads-SDK', '~> 8.2'
end
target 'Unity-iPhone' do
end
# Add ********************** 
use_frameworks! :linkage => :static

 

And

$ pod update

 

$ pod install

 

 

$open Unity-iPhone.xcworkspace

 

 

Check Your Added Pods_Unity_iPhone.framework

 

General ->[Target] Your_game_target 

-> Frameworks, Libraries, and Embeded Content 

 

Done.

 

 

https://github.com/googleads/googleads-mobile-unity/issues/1542

 

ADS does not work on iOS (SDK tried to perform a networking task before being initialized) · Issue #1542 · googleads/googlead

Admob does not work for iOS, the same code works just fine for Android. I'm currently using v5.3.0 of this plugin, which was tested with the iOS SDK 7.63.0. [REQUIRED] Step 1: Describe your env...

github.com

 

반응형

관련글 더보기