You can solve this in two ways:
1- replace [super initWithWebView:theWebView] with [super init] .
2- add the compiler flag to FacebookConnectPlugin.m to disable ARC, the compiler flag is fno-objc-arc
From my point of view, I recommend the second solution because it does not affect the code.
If you are looking for a step-by-step solution, do the following in Xcode.
Now, if you want to understand the problem in detail:
FacebookConnectPlugin.m was created in an environment other than ARC, and it controls memory consumption. but Xcode does not allow this to use ARC to control memory consumption for the entire application. therefore, the solution for this conflict is to update the FacebookConnectPlugin.m code to use ARC or simply tell Xcode that you are responsible for managing the memory of this class by adding a compiler flag.
source share