jeduan / cordova-plugin-facebook4

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

Error when building ionic project #821

Closed ejerskov closed 4 years ago

ejerskov commented 4 years ago

Bug or feature request

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

Describe the Bug of feature request

Ive just updated the plugin to overcome the iOS 13 issue, but now I cant even build my ionic project.

When running: ionic cordova build ios --prod

I get the following error:

CompileC /Users/Username/Library/Developer/Xcode/DerivedData/project_name-embdnlfiuoigyybfnhkizskqruao/Build/Intermediates.noindex/project_name.build/Debug-iphonesimulator/project_name.build/Objects-normal/x86_64/FacebookConnectPlugin.o /localhost/project_name/platforms/ios/project_name/Plugins/cordova-plugin-facebook4/FacebookConnectPlugin.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (1 failure)

Plugin version, OS, devices, etc

Using: "cordova-plugin-facebook4": "^6.2.0",

ionic info:

Ionic:

   ionic (Ionic CLI)             : 4.10.2 (/usr/local/lib/node_modules/ionic)
   Ionic Framework               : @ionic/angular 4.11.1
   @angular-devkit/build-angular : 0.13.9
   @angular-devkit/schematics    : 7.2.4
   @angular/cli                  : 7.3.9
   @ionic/angular-toolkit        : 1.4.1

Cordova:

   cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1)
   Cordova Platforms     : ios 5.0.1
   Cordova Plugins       : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.1.2, (and 10 other plugins)

System:

   ios-deploy : 1.9.4
   ios-sim    : 8.0.2
   NodeJS     : v10.15.1 (/usr/local/bin/node)
   npm        : 6.4.1
   OS         : macOS Mojave
   Xcode      : Xcode 11.1 Build version 11A1027
peterpeterparker commented 4 years ago

Plz use other channels for support requests. If you face cocoapods errors have a look to the doc

ejerskov commented 4 years ago

I've tried the 2 suggestions in the readme but none of them works. This issue started when I updated this plugin - could you point me in any direction?

peterpeterparker commented 4 years ago

first double check that you open the .xcworkspace file with Xcode

or maybe try what @teamgeist-app provided yesterday as solution to another issue: https://github.com/jeduan/cordova-plugin-facebook4/issues/820#issuecomment-543238000

good luck