(Ionic2) Facebook4 plugin fails build


#1

While building my application and running it for ios 10 (xcode 8), I ran into an issue with the Facebook4 cordova plugin. I tried updating everything via

ionic plugin state restore

Which seemed to work correctly, as it updated the facebook4 plugin to version 1.7.4

After trying to build with it

 ionic build ios

I receive this build error.

CompileC build/38Plank.build/Debug-iphonesimulator/38Plank.build/Objects-normal/i386/FacebookConnectPlugin.o 38Plank/Plugins/cordova-plugin-facebook4/FacebookConnectPlugin.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)

It seems to not like the plugin on build.


#2

Solved my own problem. Needed to do ionic state reset, not just a state restore.