NativeScript / nativescript-facebook

NativeScript plugin, wrapper of native Facebook SDK for Android and iOS
Apache License 2.0
79 stars 50 forks source link

Build error with cloud build #146

Closed jerryafr closed 5 years ago

jerryafr commented 5 years ago

I'm trying to use nativescript's official facebook plugin (https://github.com/NativeScript/nativescript-facebook), but during the cloud build, I get the following error:

[19-01-10 15:04:18.872] (CLI) The following build commands failed: [19-01-10 15:04:18.872] (CLI) \tCompileC /tmp/builds/_/f59ec4d3df506a266928066a440bfb43a3fe95a5/4.1.2/4.1.0/vyrent/platforms/ios/DerivedData/vyrent/Build/Intermediates.noindex/ArchiveIntermediates/vyrent/IntermediateBuildFilesPath/Pods.build/Debug-iphoneos/FBSDKCoreKit.build/Objects-normal/armv7/FBSDKPaymentObserver.o FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/AppEvents/FBSDKPaymentObserver.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler [19-01-10 15:04:18.872] (CLI) (1 failure)

I am using windows 10 and sidekick with cloud builds. I am trying to run the app on an iphone 7 with ios 12.1

tns version: 5.1.0 plugin version: 2.3.0

elena-p commented 5 years ago

Hi @jerryafr,

I apologise for the late reply. We tested and I can assure you that cloud build work with the facebook plugin (nativescript@5.1.1; facebook plugin version: 2.3.0). Do you by any chance use another plugin that may be adding FBSDKCoreKit pod?

jerryafr commented 5 years ago

Hi, Thanks for your reply,

Here are the dependencies I am using:

"dependencies": {

"@angular/animations": "~6.1.0",
"@angular/common": "~6.1.0",
"@angular/compiler": "~6.1.0",
"@angular/core": "~6.1.0",
"@angular/forms": "~6.1.0",
"@angular/http": "~6.1.0",
"@angular/platform-browser": "~6.1.0",
"@angular/platform-browser-dynamic": "~6.1.0",
"@angular/router": "~6.1.0",
"amazon-cognito-identity-js": "3.0.3",
"moment": "^2.22.2",
"nativescript-angular": "^6.1.0",
"nativescript-camera": "^4.0.3",
"nativescript-checkbox": "^3.0.3",
"nativescript-drop-down": "^4.0.1",
"nativescript-grid-view": "^4.1.1",
"nativescript-imagepicker": "^6.0.3",
"nativescript-iqkeyboardmanager": "^1.3.0",
"nativescript-masked-text-field": "^3.0.1",
"nativescript-modal-datetimepicker": "^1.1.10",
"nativescript-ng-shadow": "^2.1.0",
"nativescript-nodeify": "^0.7.0",
"nativescript-nsjumioplugin": "file:jumio-plugin/src",
"nativescript-phone": "^1.4.0",
"nativescript-range-seek-bar": "^1.0.3",
"nativescript-snackbar": "^3.2.0",
"nativescript-theme-core": "~1.0.4",
"nativescript-ui-autocomplete": "^3.9.0",
"nativescript-ui-calendar": "^3.8.0",
"nativescript-ui-listview": "^5.1.0",
"nativescript-web-image-cache": "^4.2.6",
"reflect-metadata": "~0.1.8",
"rxjs": "^6.0.0",
"rxjs-compat": "^6.2.0",
"tns-core-modules": "^4.2.0",
"zone.js": "^0.8.26"
 },
"devDependencies": {
"@angular/compiler-cli": "~6.1.0",
"@ngtools/webpack": "~6.1.0",
"@types/node": "^10.5.7",
"babel-traverse": "^6.26.0",
"babel-types": "^6.26.0",
"babylon": "6.4.5",
"lazy": "1.0.11",
"nativescript-dev-sass": "^1.6.0",
"nativescript-dev-typescript": "^0.7.3",
"nativescript-dev-webpack": "^0.15.1",
"node-sass": "^4.9.3",
"tns-platform-declarations": "^4.2.1",
"typescript": "~2.8.2"
 }

Also, during cloud build, I see only the following pods being used:

[19-01-22 12:56:42.205] (CLI) Downloading dependencies [19-01-22 12:56:42.205] (CLI) Installing BEMCheckBox (1.4.1) [19-01-22 12:56:42.205] (CLI) Installing IQKeyboardManager (5.0.8) [19-01-22 12:56:42.205] (CLI) Installing JumioMobileSDK (2.14.2) [19-01-22 12:56:42.205] (CLI) Installing QBImagePickerController (3.4.0) [19-01-22 12:56:42.205] (CLI) Installing SDWebImage (3.7.6) [19-01-22 12:56:42.205] (CLI) Installing SSSnackbar (0.1.2.4) [19-01-22 12:56:42.205] (CLI) Installing TTRangeSlider (1.0.6)

So the answer to your question would be no.

I think this is probably a conflict, but I cannot find it.

elena-p commented 5 years ago

I don't see the facebook plugin in the dependency list. Does the build work with this list of dependencies and breaks when you add the nativescript-facebook?

jerryafr commented 5 years ago

Yes, this list is for the working version of the app. When I add facebook plugin, the build breaks and throws that error.

elena-p commented 5 years ago

Hi @jerryafr,

We did another test with the dependencies you listed + the facebook plugin (without your local plugin nativescript-nsjumioplugin) and the app (based of the Blank NG template) built successfully.

You could try deleting your node_modules and platform folders and run a clean build? It would help us if you provide us a sample app, in which we could reproduce the issue.

elena-p commented 5 years ago

closing due to inactivity