[iOS] Build Failed After Firebase SDK Update(v7.2.0 → v.8.8.0)

vvhustle's coding note·2022년 11월 22일
0

프로젝트에서 사용하던 Firebase SDK for UNITY 패키지의 버전(v7.2.0 → v.8.8.0)을 올린 이후 iOS 빌드 중에 아래와 같은 오류가 발생했습니다.

iOS framework addition failed due to a CocoaPods installation failure. This will will likely result in an non-functional Xcode project.

After the failure, "pod repo update" was executed and succeeded. "pod install" was then attempted again, and still failed. This may be due to a broken CocoaPods installation. See: https://guides.cocoapods.org/using/troubleshooting.html for potential solutions.

pod install output:

Analyzing dependencies
[!] CocoaPods could not find compatible versions for pod "FirebaseCore":
In Podfile:
Firebase/DynamicLinks (= 8.11.0) was resolved to 8.11.0, which depends on
Firebase/CoreOnly (= 8.11.0) was resolved to 8.11.0, which depends on
FirebaseCore (= 8.11.0)

Firebase/DynamicLinks (= 8.11.0) was resolved to 8.11.0, which depends on
  FirebaseDynamicLinks (~> 8.11.0) was resolved to 8.11.0, which depends on
    FirebaseCore (~> 8.0)

FirebaseInstanceID (= 7.11.0) was resolved to 7.11.0, which depends on
  FirebaseCore (~> 7.0)

Fix try

https://stackoverflow.com/questions/56055142/cocoapods-could-not-find-compatible-versions-for-pod-firebase-coreonly → failed
https://github.com/firebase/quickstart-unity/issues/937 -> failed
iOS minimal SDK target 10.0 → 11.0 -> failed
update cocoaPod → failed
remove pod 'FirebaseInstanceID', '7.11.0' → success

PodFile
platform :ios, '10.0'

target 'UnityFramework' do
pod 'AppsFlyerFramework', '6.3.1'
pod 'FBAudienceNetwork', '~> 6.4.1'
pod 'FBSDKCoreKit', '~> 9.0'
pod 'FBSDKGamingServicesKit', '~> 9.0'
pod 'FBSDKLoginKit', '~> 9.0'
pod 'FBSDKShareKit', '~> 9.0'
pod 'Firebase/Analytics', '8.11.0'
pod 'Firebase/Auth', '8.11.0'
pod 'Firebase/Core', '8.11.0'
pod 'Firebase/Crashlytics', '8.11.0'
pod 'Firebase/DynamicLinks', '8.11.0'
pod 'Firebase/Installations', '8.11.0'
pod 'Firebase/Messaging', '8.11.0'
pod 'FirebaseInstanceID', '7.11.0' // ERROR
pod 'GoogleMobileAdsMediationFacebook', '6.4.1.0'
pod 'Google-Mobile-Ads-SDK', '~> 9.0'
end
target 'Unity-iPhone' do
end
cocoaPod dependency 의존성 문제(beteween 7.x.x-8.x.x)로 발생하는 문제였습니다. (5번 방법으로 해결 완료.)

Firebase SDK 문서를 보니 instanceID는 8.0.0부터 Deprecated입니다.


참고 :

https://firebase.google.com/docs/unity/setup?hl=ko

https://firebase.google.com/support/release-notes/unity#instance_id

0개의 댓글