MaximBelov / cordova-plugin-fbsdk

Use the latest Facebook SDK in your Cordova and Ionic projects
Other
15 stars 21 forks source link

CocoaPods could not find compatible versions for pod "FBSDKCoreKit": In Podfile: FBSDKCoreKit (= 17.0.0) #12

Open codeconsole opened 6 days ago

codeconsole commented 6 days ago
npx cordova plugin add cordova-plugin-fbsdk --save --variable APP_ID=...--variable APP_NAME=...--variable CLIENT_TOKEN="...."
CocoaPods could not find compatible versions for pod "FBSDKCoreKit":   In Podfile:     FBSDKCoreKit (= 17.0.0)  Specs satisfying the `FBSDKCoreKit (= 17.0.0)` dependency were found, but they required a higher minimum deployment target.
% npx cordova -v
12.0.0 (cordova-lib@12.0.1)

% npx cordova platform ls
Installed platforms:
  android 13.0.0
  browser 7.0.0
  ios 7.1.0
% npx cordova plugin ls
@havesource/cordova-plugin-push 4.0.0 "Cordova Push Plugin"
cordova-launch-review 4.1.0 "Launch Review"
cordova-plugin-app-version 0.1.14 "AppVersion"
cordova-plugin-camera 7.0.0 "Camera"
cordova-plugin-device 2.1.0 "Device"
cordova-plugin-dialogs 2.0.2 "Notification"
cordova-plugin-fbsdk 4.1.0 "Facebook Connect"
cordova-plugin-file 8.1.0 "File"
cordova-plugin-firebase-analytics 8.0.0 "FirebaseAnalyticsPlugin"
cordova-plugin-geolocation 5.0.0 "Geolocation"
cordova-plugin-inappbrowser 6.0.0 "InAppBrowser"
cordova-plugin-purchase 13.11.1 "Purchase"
cordova-plugin-screen-orientation 3.0.4 "Screen Orientation"
cordova-plugin-sign-in-with-apple 0.1.2 "cordova-plugin-sign-in-with-apple"
cordova-plugin-statusbar 4.0.0 "StatusBar"
cordova-plugin-vibration 3.1.1 "Vibration"
cordova-support-android-plugin 2.0.4 "cordova-support-android-plugin"
es6-promise-plugin 4.2.2 "Promise"
codeconsole commented 6 days ago

Seems similar to this https://github.com/capacitor-community/facebook-login/issues/35

codeconsole commented 5 days ago

tried

% pod repo update

Updating spec repo `trunk`

% pod install --repo-update

Updating local specs repositories
Analyzing dependencies
[!] CocoaPods could not find compatible versions for pod "FBSDKCoreKit":
  In Podfile:
    FBSDKCoreKit (= 17.0.0)

Specs satisfying the `FBSDKCoreKit (= 17.0.0)` dependency were found, but they required a higher minimum deployment target.
codeconsole commented 5 days ago

This is due to the Podfile being 11.0

% cat Podfile

# DO NOT MODIFY -- auto-generated by Apache Cordova
source 'https://cdn.cocoapods.org/'
platform :ios, '11.0'
use_frameworks!

...

but any time I update it to 12, it goes back to 11.

codeconsole commented 5 days ago

https://stackoverflow.com/questions/36768548/cordova-ios-how-to-change-minimum-deployment-version

Probably should update README.md or TROUBLESHOOTING.md

or update plugin.xml

MaximBelov commented 7 hours ago

@codeconsole Thank you for report

Please try cordova-plugin-fbsdk@4.1.1

Demo project with latest changes npm run build:ios https://github.com/cordova-plugin-facebook-connect/cordova-plugin-facebook-connect-lab/commit/e02b073807f0d04ca2184cf4f486ab9e8086f9bd