Pod file
Firebase 의 Analytics, AdMob, Crashlytics 를 사용.
pod 'Firebase/Analytics'
pod 'Firebase/AdMob'
pod 'Firebase/Crashlytics'
pod 'Firebase/AdMob'
pod 'Firebase/Crashlytics'
Plain Text
pod 관련 파일 모두 삭제후, 재설치
pod deintegrate
pod clean
pod install
pod clean
pod install
Shell
설치로그:
Installing Firebase (3.6.0)
Installing Firebase (8.9.1)
Installing FirebaseAnalytics (3.4.2)
Installing FirebaseCore (8.9.1)
Installing FirebaseCoreDiagnostics (8.9.0)
Installing FirebaseCrashlytics (8.9.0)
Installing FirebaseInstallations (8.9.0)
Installing FirebaseInstanceID (1.0.9)
Installing Google-Mobile-Ads-SDK (7.11.0)
Installing GoogleDataTransport (9.1.2)
Installing GoogleInterchangeUtilities (1.2.2)
Installing GoogleSymbolUtilities (1.1.2)
Installing GoogleUtilities (1.3.2)
Installing GoogleUtilities (7.6.0)
Installing Firebase (8.9.1)
Installing FirebaseAnalytics (3.4.2)
Installing FirebaseCore (8.9.1)
Installing FirebaseCoreDiagnostics (8.9.0)
Installing FirebaseCrashlytics (8.9.0)
Installing FirebaseInstallations (8.9.0)
Installing FirebaseInstanceID (1.0.9)
Installing Google-Mobile-Ads-SDK (7.11.0)
Installing GoogleDataTransport (9.1.2)
Installing GoogleInterchangeUtilities (1.2.2)
Installing GoogleSymbolUtilities (1.1.2)
Installing GoogleUtilities (1.3.2)
Installing GoogleUtilities (7.6.0)
Plain Text
Firebase, GoogleUtilities 가 낮은 버전과 높은 버전으로 2번 설치되는 것을 확인.
에러 로그
XCode 에서 실행했을때, 다음과 같은 에러 발생:
'GoogleUtilities/GULURLSessionDataResponse.h' file not found
Shell
해결방법
1.
Firebase 의 Analytics, AdMob, Crashlytics 를 각각 따로 설치해서 문제 없나 확인 ⇒ Clear!⭕️
2.
두개씩 설치
a.
AdMob + Analytics: Clear! ⭕️
b.
AdMob + Crashlytics: Failure ⇒ 중복 설치됨
3.
AdMob + Analytics 조합으로 pod install
4.
Crashlytics 는 따로 설치 pod install --no-repo-update
참고
기존 플러그인을 업데이트하지 않고 플러그인을 설치:
pod install --no-repo-update
Plain Text
특정 플러그인을 제거/업데이트:
pod update POD_NAME
Plain Text