Wizcorp/phonegap-facebook-plugin: building ios failed -


when try run ionic build ios or try build archive xcode project created ionic error

**facebookconnectplugin.m**:27:44: error: no visible @interface 'cdvplugin' declares selector 'initwithwebview:' self = (facebookconnectplugin *)[super initwithwebview:thewebview]; ~~~~~ ^~~~~~~~~~~~~~~ /applications/mamp/htdocs/hybrid-mobile-app/platforms/ios/qudratapp/plugins/phonegap-facebook-plugin/facebookconnectplugin.m:238:28: warning: comparison of constant 2 boolean expression false [-wtautological-constant-out-of-range-compare] if (!command.arguments == 2) { ~~~~~~~~~~~~~~~~~~ ^ ~ 1 warning , 1 error generated.

** build failed **

the following build commands failed: compilec build/qudratapp.build/debug-iphonesimulatorqudratapp.build/objects-normal/i386/facebookconnectplugin.o qudratapp/plugins/phonegap-facebook-plugin/facebookconnectplugin.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler (1 failure) error: error code 65 command: xcodebuild args: -xcconfig,/applications/mamp/htdocs/hybrid-mobile-app/platforms/ios/cordova/build-debug.xcconfig,-project,qudratapp.xcodeproj,archs=i386,-target,qudratapp,-configuration,debug,-sdk,iphonesimulator,build,valid_archs=i386,configuration_build_dir=/applications/mamp/htdocs/hybrid-mobile-app/platforms/ios/build/emulator,shared_precomps_dir=/applications/mamp/htdocs/hybrid-mobile-app/platforms/ios/build/sharedpch

i installed phonegap plugin facebook through locally cloned copy , re-add facebooksdk.framework xcode after installation, none of worked me. way solved installing https://github.com/jeduan/cordova-plugin-facebook4.

  1. remove phonegap plugin:

    ionic plugin rm phonegap-facebook-plugin

  2. clone next plugin:

    git clone https://github.com/jeduan/cordova-plugin-facebook4.git

  3. add plugin manually:

    cordova -d plugin add path/cordova-plugin-facebook4 --variable app_id="*****" --variable app_name="*****"

thats how works me.


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -