CocoaPods could not find compatible versions for pod "Firebase/CoreOnly"
Edit the minimum ios version in the podfile then run pod install.
Changing platform :ios, '9.0'
to platform :ios, '10.0'
then running pod install
fixed it for me.
Just do a pod update
and then pod install
. This worked for me.
Try calling pod repo update
if the issue is not fixed
delete the Podfile.lock in the root directory, after that run pod install
ð For M1 Mac Users
- Go to
ios/Pods/Local Podspecs
directory in your project - Check every
json
file to find highest required iOS version. Mine was"ios": "10.0"
in some of them - Go back to
ios/ directory
- Open
Podfile
file - Uncomment
# platform :ios, '9.0'
and replace9.0
with version from step 2. - for example10.0
.
then here comes the M1 specific part
Run
sudo arch -x86_64 gem install ffi
Run
arch -x86_64 pod repo update
Run
arch -x86_64 pod install
error should be gone
- If using Flutter
cd -
back to your root directory - open iOS Simulator & runflutter run
10. ENJOY !ð
If not working you might need to run flutter pub add firebase_core
to add firebase_core to your pubspec.yaml
file Before Step 1
If still not working try this BONUS STEPS :
Trying to Run directly from Xcode ? First Run
flutter build iOS
in your Flutter project -> then Run in XcodeStill not working
cd iOS
runrm -rf Pods/ Podfile.lock ; pod install
Still not working ? Search Keychain Access in Spotlight -> open -> Right-click on login -> Unlock (you will lock back when build succeeds)
Still not working ? make sure your Runner Info Configs look like this
Hope this helps ! Comment down bellow if still facing issues !