Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Leif_R_
Beginner
128 Views

iOS Build failed with phonegap-facebook-plugin

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.

Tags (2)
0 Kudos
2 Replies
Amrita_C_Intel
Employee
128 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

xkevin
New Contributor I
128 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?

Reply