Software Archive
Read-only legacy content
17061 Discussions

iOS Build failed with phonegap-facebook-plugin

Leif_R_
Beginner
571 Views

Hello,

I am having problems building our App for iOS when including the phonegap-facebook-plugin. After disabling the Plugin, building works fine. Here is a snippet from the Log. I hope it´s ok, that I didn´t attach it as a seperate file. It is just a snippet, so if you need the complete Log i can hand it in later.

Im using Intel XDK Version: 3240

Build Log
Building a Cordova 5.4.1 application.
Using platform cordova-ios 4.0.1.
The application name is "APPNAME"
The package name is "APPNAME"
Plugin "cordova-plugin-statusbar" (2.0.0) installed.
Plugin "cordova-plugin-device" (1.1.0) installed.
Plugin "cordova-plugin-splashscreen" (2.1.0) installed.
Plugin "intel.xdk.cache" (1.2.4) installed.
Plugin "phonegap-facebook-plugin" (0.12.0) installed.
Targeting iOS version 8.0.
Error: A build error occurred. Check the build log.

 

[...]

 

** BUILD FAILED **
The following build commands failed:
    CompileC build/APPNAME.build/Release-iphoneos/APPNAME.build/Objects-normal/armv7/FacebookConnectPlugin.o APPNAME/Plugins/phonegap-facebook-plugin/FacebookConnectPlugin.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
ERROR building one of the platforms: Error code 65 for command: xcodebuild with args: -xcconfig,.../tara_m/platforms/ios/cordova/build-release.xcconfig,-project,APPNAME.xcodeproj,ARCHS=armv7 arm64,-target,APPNAME,-configuration,Release,-sdk,iphoneos,build,VALID_ARCHS=armv7 arm64,CONFIGURATION_BUILD_DIR=.../tara_m/platforms/ios/build/device,SHARED_PRECOMPS_DIR=.../tara_m/platforms/ios/build/sharedpch
You may not have the required environment or OS to build this project
Error: Error code 65 for command: xcodebuild with args: -xcconfig,.../tara_m/platforms/ios/cordova/build-release.xcconfig,-project,APPNAME.xcodeproj,ARCHS=armv7 arm64,-target,APPNAME,-configuration,Release,-sdk,iphoneos,build,VALID_ARCHS=armv7 arm64,CONFIGURATION_BUILD_DIR=.../tara_m/platforms/ios/build/device,SHARED_PRECOMPS_DIR=.../tara_m/platforms/ios/build/sharedpch


Thanks in advance.

0 Kudos
2 Replies
Amrita_C_Intel
Employee
571 Views

Please use this plugin instead.Select plugin management it is under featured plugin list facebook4

https://www.npmjs.com/package/cordova-plugin-facebook4

Try this sample first. It is under sample and demos when you choose to start a new project.

https://software.intel.com/en-us/xdk/article/facebook-connect-plugin-android-ios

0 Kudos
xkevin
New Contributor I
571 Views

Amrita C. (Intel) wrote:

Please use this plugin instead.Select plugin management it is under featured plugin list facebook4

https://www.npmjs.com/package/cordova-plugin-facebook4

Try this sample first. It is under sample and demos when you choose to start a new project.

https://software.intel.com/en-us/xdk/article/facebook-connect-plugin-and...

 

Tried what you suggested here but build failed on andriod. Any other solution?

0 Kudos
Reply