jeduan / cordova-plugin-facebook4

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

iOS build fails with Ionic Framework #859

Closed carolinemcq closed 4 years ago

carolinemcq commented 4 years ago

Please do not submit support requests or "How to" questions here. Instead, please use channels like StackOverflow, the Ionic forum or the Ionic slack channel

For issues or feature requests related to the code in this repository file a Github issue and provide as much details as possible

Bug or feature request

[ ] I'm reporting a reproducible issue with the code

Describe the Bug of feature request

When attempting to build an iOS native app using the Ionic Framework, either one of two errors occur:

  1. Either the Xcode project with fail to build from Ionic. Console output:

    iOS project created with cordova-ios@5.1.1
    Installing "cordova-plugin-facebook4" for ios
    Failed to install 'cordova-plugin-facebook4': undefined
    CordovaError: Promise rejected with non-error: '/bin/sh: /usr/local/bin/pod: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby: bad interpreter: No such file or directory\n'
    at /usr/local/lib/node_modules/cordova/bin/cordova:29:15
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
  2. If the Xcode project is created, when building the app, the FBSDKCoreKit/FBSDKCoreKit.h file is not found.

Expected Behavior

The project build should succeed

Sample repo

Not required. Steps to reproduce:

  1. Create a blank Ionic/Angular project
  2. Install the Facebook Cordova plugin
  3. Run the command: $ ionic cordova prepare ios

4 out of 5 times, the project will fail with the first error. If the project succeeds at building an iOS project, the FBSDKCoreKit/FBSDKCoreKit.h file will be missing in Xcode.

Plugin version, OS, devices, etc

Plugin version: 6.4.0 Ionic Version: 5.0.0

Additional Context

List any other information that is relevant to your issue. Stack traces, related issues, suggestions on how to fix, Stack Overflow links, forum links, screenshots, OS if applicable, etc.

N/A

Important note

Unfortunately, since this is a project done in spare time, support requests or "How to" questions will be closed without any further comments

If we consider your issue to not be well documented, it will be closed without further comments too

Thx you in advance for your understanding

peterpeterparker commented 4 years ago

Spontaneously I would say that you didn't opened the .xcworkspace as described in the doc

Otherwise have a look at other closed or opened issue in the tracker FBSDKCoreKit/FBSDKCoreKit.h, as many solutions are shared.

Please do use other channels for support requests, thx in advance.

carolinemcq commented 4 years ago

You're mistaken. I did indeed open the .xcworkspace file. Also, that wouldn't explain why the xcode project fails to build from ionic would it? In any case, I shall have a look at other open/closed issues and see if I can find a solution.

Thanks, Caroline

On Mon, Mar 23, 2020 at 3:49 PM David Dal Busco notifications@github.com wrote:

Spontaneously I would say that you didn't opened the .xcworkspace as described in the doc https://github.com/jeduan/cordova-plugin-facebook4/blob/master/docs/ios/README.md

Otherwise have a look at other closed or opened issue in the tracker FBSDKCoreKit/FBSDKCoreKit.h, as many solutions are shared.

Please do use other channels for support requests, thx in advance.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jeduan/cordova-plugin-facebook4/issues/859#issuecomment-602687248, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANSUFVKOLJHOAVMLP63VM3LRI6AKNANCNFSM4LR65OWQ .

peterpeterparker commented 4 years ago

The query for the duplicates: https://github.com/jeduan/cordova-plugin-facebook4/issues?q=FBSDKCoreKit%2FFBSDKCoreKit.h

There is also a sample repo which you can try out and to compare, if needed.

Good luck