Published on 08/14/2024
Published by Pratik Takle
CocoaPods could not find compatible versions for pod "Firebase/CoreOnly"
Error:
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 32 33 34 35 36 37 38 39 40 41 42 |
ahotakle@Pratiks-MacBook-Air-2 ios % pod install RNFBAnalytics: Using default Firebase/Analytics with Ad Ids. May require App Tracking Transparency. Not allowed for Kids apps. RNFBAnalytics: You may set variable `$RNFirebaseAnalyticsWithoutAdIdSupport=true` in Podfile to use analytics without ad ids. Using firebase.json from '/Users/ahotakle/Downloads/office/loantap-mobile-app-main/firebase.json' Adding a custom script phase for Pod RNFBApp: [RNFB] Core Configuration Auto-linking React Native modules for target `LoantapApp`: RNDeviceInfo, RNFBAnalytics, RNFBApp, RNPermissions, RNSnackbar, RNVectorIcons, lottie-react-native, react-native-adjust, react-native-branch, react-native-firebase-push-notifications, react-native-netinfo, react-native-safe-area-context, react-native-webview, rn-fetch-blob, and sparkfabrik-react-native-idfa-aaid Framework build type is static framework [Codegen] Generating ./build/generated/ios/React-Codegen.podspec.json Analyzing dependencies Fetching podspec for `DoubleConversion` from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec` [Codegen] Found FBReactNativeSpec Fetching podspec for `RCT-Folly` from `../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec` RNFBAnalytics: Using default Firebase/Analytics with Ad Ids. May require App Tracking Transparency. Not allowed for Kids apps. RNFBAnalytics: You may set variable `$RNFirebaseAnalyticsWithoutAdIdSupport=true` in Podfile to use analytics without ad ids. Fetching podspec for `boost` from `../node_modules/react-native/third-party-podspecs/boost.podspec` Fetching podspec for `glog` from `../node_modules/react-native/third-party-podspecs/glog.podspec` Fetching podspec for `hermes-engine` from `../node_modules/react-native/sdks/hermes-engine/hermes-engine.podspec` [!] CocoaPods could not find compatible versions for pod "Firebase/CoreOnly": In Podfile: RNFBApp (from `../node_modules/@react-native-firebase/app`) was resolved to 17.5.0, which depends on Firebase/CoreOnly (= 10.7.0) react-native-firebase-push-notifications (from `../node_modules/react-native-firebase-push-notifications`) was resolved to 2.0.5, which depends on Firebase/CoreOnly (~> 8.15.0) |
Solution:
- https://stackoverflow.com/questions/56055142/cocoapods-could-not-find-compatible-versions-for-pod-firebase-coreonly
-
1rm -rf Podfile.lock && pod install --repo-update
- Change platform :ios, ‘9.0’ to platform :ios, ‘10.0’
-
1pod install