jeduan / cordova-plugin-facebook4

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

Failed to install 'cordova-plugin-facebook4': Error: pod: Command failed with exit code 1 #895

Closed Ashu-Akeo closed 2 years ago

Ashu-Akeo commented 3 years ago

Describe the Bug of feature request

Getting Error "Failed to install 'cordova-plugin-facebook4': Error: pod: Command failed with exit code 1" when running command "cordova platform add ios"

Expected Behavior

It should run.

Plugin version, OS, devices, etc

Please provide information about the plugin version, OS, devices etc. where you faced your issue Plugin version = 6.4.0 OS = Mac Catalina 10.15.7 devices = iPhone 14.4

image

AsoStrife commented 2 years ago

I'm having the same issue. Did you solve?

AsoStrife commented 2 years ago

I think I solved using this: https://stackoverflow.com/questions/64901180/running-cocoapods-on-apple-silicon-m1/65334677#65334677

Just run:

sudo arch -x86_64 gem install ffi
arch -x86_64 pod install
noahcooper commented 2 years ago

This plugin is deprecated. Check out the actively maintained cordova-plugin-facebook-connect at https://www.npmjs.com/package/cordova-plugin-facebook-connect.