Flutter: CocoaPods could not find compatible versions for pod "FBSDKCoreKit"
Solution 1
To fix this issue follow below steps:
flutter clean
- Run
rm -f ios/Podfile.lock
(For removeios/Podfile.lock
file) cd ios
and hitpod update
(Updates all the dependencies)flutter run
Solution 2
if you have intel chip
- flutter clean
- update all dependencies to the latest version in pubspec.yml file and do 'get pub'
- Go to your Podfile and uncomment #platform :ios, '9.0' Then change the version to 10 platform :ios, '10.0' or higher version
- go to ios folder through terminal and do 'pod repo update'
- 'pod update' or 'pod install'
if you have M1 chip
- flutter clean
- update all dependencies to the latest version in pubspec.yml file and do 'get pub'
- Go to your Podfile and uncomment #platform :ios, '9.0' Then change the version to 10 platform :ios, '10.0' or higher version
- go to ios folder through terminal and do 'arch -x86_64 pod repo update'
- 'arch -x86_64 pod update' or 'arch -x86_64 pod install'
Solution 3
If you're using Macbook with M1(apple silicon), you can try:
arch -x86_64 pod install --repo-update
Paresh Mangukiya
I am a Mobile App Developer and Team Leader at BlueBit Technologies, in this My core competency lies in the complete end-to-end management and completing the entire project (iOS, Android and Backend side). I am seeking opportunities to build Mobile Apps from the ground up for you or your business. Please feel free to contact me here ⬇ Skype: pkmangukiya_1 Mobile or WhatsApp: +91 9723680658 Email: [email protected] I have spent 4+ years in the IT industry, I have developed a wide range of (iOS and Android) Applications using iOS (Swift, Objective-C), Flutter(Dart) and Android (Kotlin, Java). I work with B2B clients - Software companies and as well as B2C - Small and Medium Enterprises (SME) in many vertical industries and I passionate about good service & deliver a high-quality product. I have experience in mobile Application Development, App principles, processes, theories and concepts. I am involved in the full life cycle of designing, developing, testing, Analysis, and maintaining applications. And I have also enough knowledge and experience of how to use and where to use Encryption, Exception Handling, Token-based Authentication and other security features in applications. My core competency lies in complete end-to-end management of new Mobile Applications and I am seeking opportunities to build Mobile Apps from the ground up for you or your business. My experience has been awesome and good so far, I have learned a lot of new things and worked during this time. My years of experience have prepared me well for this position. Skills: Programming Languages: iOS: Swift and Objective C Flutter: Dart Android: Java and Kotlin C/C++ Professional Experience: Socket Programming DB & API Design Google API, Facebook API, Google Maps and Direction, Location Services Integrating ads ( Google Ads, Admob, Facebook Ads), Media Player Functionalities API security with JWT JSON, XML In-app purchase User Authentication Chat and Messaging Hosting (App Store, Play Store) Payment Gateways Social Media Integration SQLite Database, Firebase Database, MySQL Database Advanced Analytics Mobile Application Design Document Conversion Projects Variations: Chatting and Messaging: Text and Voice messaging, video communication, photo & video sharing Loan Management System Online Music Streaming QR & Barcode Scanner Parking Facility Social Media: Professional networks, social networks and Data Sharing Lifestyle: Religion, travel, blogs, fashion, health, fitness Music + Audio Video Mixer with dynamic features Football Training Club and Academy Photo and Video Editor App Organization Management Society management Quiz - Play & Win I really enjoy programming a lot!
Updated on December 01, 2022Comments
-
Paresh Mangukiya over 1 year
I am build a flutter app and in that I developing logging with Facebook in a flutter. i used
flutter_facebook_login: ^3.0.0
andflutter_facebook_auth: ^3.3.2
plugins, this plugin works in android but in ios it gives me below error:[!] CocoaPods could not find compatible versions for pod "FBSDKCoreKit": In Podfile: flutter_facebook_auth (from `.symlinks/plugins/flutter_facebook_auth/ios`) was resolved to 2.0.0, which depends on FBSDKCoreKit (~> 9.1.0) flutter_facebook_login (from `.symlinks/plugins/flutter_facebook_login/ios`) was resolved to 0.0.1, which depends on FBSDKCoreKit (~> 5.5)
My flutter doctor -v:
Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, 2.0.4, on Mac OS X 10.15.7 19H2 darwin-x64, locale en-GB) [✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3) [!] Xcode - develop for iOS and macOS ! Xcode 12.0.0 out of date (12.0.1 is recommended). Download the latest version or update via the Mac App Store. [✓] Chrome - develop for the web [✓] Android Studio (version 4.1) [✓] Connected device (2 available) ! Doctor found issues in 1 category. mac@PK-iMac BBT VIIBO % flutter doctor -v) zsh: parse error near `)' mac@PK-iMac BBT VIIBO % flutter doctor -v [✓] Flutter (Channel stable, 2.0.4, on Mac OS X 10.15.7 19H2 darwin-x64, locale en-GB) • Flutter version 2.0.4 at /Users/mac/Development/flutter • Framework revision b1395592de (4 weeks ago), 2021-04-01 14:25:01 -0700 • Engine revision 2dce47073a • Dart version 2.12.2 [✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3) • Android SDK at /Users/mac/Library/Android/sdk • Platform android-30, build-tools 30.0.3 • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495) • All Android licenses accepted. [!] Xcode - develop for iOS and macOS • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 12.0, Build version 12A7209 ! Xcode 12.0.0 out of date (12.0.1 is recommended). Download the latest version or update via the Mac App Store. • CocoaPods version 1.10.1 [✓] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome [✓] Android Studio (version 4.1) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495) [✓] Connected device (2 available) • iPhone 11 Pro (mobile) • 47FC0E06-9F40-4F1E-8230-CC914F734D26 • ios • com.apple.CoreSimulator.SimRuntime.iOS-14-0 (simulator) • Chrome (web) • chrome • web-javascript • Google Chrome 90.0.4430.93 ! Doctor found issues in 1 category.
Already run
pod repo update
but can't solveSo what should I do now?
-
Mohammed Adel over 2 yearsif not so please consider => stackoverflow.com/questions/55596988/…
-
Son Nguyen over 2 yearsRemember to run
flutter pub upgrade
(orflutter pub get
instead if u don't want to update anything) before runningpod update
at step 3 or there will be an error displayed in the terminal. -
bwhite about 2 yearsFor
flutter_facebook_auth: 4.1.2
in step 3 you will need to useplatform :ios, '11.0'
or higher. -
Lukas Nevosad almost 2 yearsFor me, the magic was
pod install --repo-update
instead ofpod update
.