floatinghotpot / cordova-facebook-audnet-sdk

Facebook AudienceNetwork SDK for Cordova
0 stars 19 forks source link

Build Failed #1

Closed jason-engage closed 9 years ago

jason-engage commented 9 years ago

Hey, I've been using your facebook plugin in my builds with no problem. But you seem to have added this plugin as a dependency. Now my builds fail: (It gives me a whole lot of lines, and then crashes

duplicate symbol _llvm.cmdline in: Men Fitness/Plugins/cordova-facebook-audnet-sdk/FBAudienceNetwork.framework/FBAudienceNetwork(FBANBannerAdAdapter.o) Men Fitness/Plugins/cordova-facebook-audnet-sdk/FBAudienceNetwork.framework/FBAudienceNetwork(FBAdCommandProcessor.o) duplicate symbol _llvm.embedded.module in: Men Fitness/Plugins/cordova-facebook-audnet-sdk/FBAudienceNetwork.framework/FBAudienceNetwork(FBANBannerAdAdapter.o) Men Fitness/Plugins/cordova-facebook-audnet-sdk/FBAudienceNetwork.framework/FBAudienceNetwork(FBAdCommandProcessor.o) duplicate symbol _llvm.cmdline in: Men Fitness/Plugins/cordova-facebook-audnet-sdk/FBAudienceNetwork.framework/FBAudienceNetwork(FBANBannerAdAdapter.o) Men Fitness/Plugins/cordova-facebook-audnet-sdk/FBAudienceNetwork.framework/FBAudienceNetwork(FBNativeAdContainerView.o) duplicate symbol _llvm.embedded.module in:

Also says: Command failed with exit code 2 You may not have the required environment or OS to build this project

What am I missing?

jason-engage commented 9 years ago

It builds succesfully for Android, but fails with IOS.

If this plugin isn't made for ios, is there a config you can add so its avoided during the build process? Or is it necessary for IOS too?

floatinghotpot commented 9 years ago

Of course the plugin supports both android and ios. I verified the plugin pass with following commands:

[sudo] npm install -g plugin-verify
plugin-verify cordova-plugin-facebookads ios

From your logs, it seems that there is some conflict.

What other plugins are you using?

floatinghotpot commented 9 years ago

Let me see your plugin list. My list in verifying is:

192:tmp liming$ cordova plugin ls
cordova-facebook-audnet-sdk 4.7.0 "Facebook AudienceNetwork SDK for Cordova"
cordova-plugin-extension 1.2.1 "Cordova Plugin Extension"
cordova-plugin-facebookads 4.7.1 "FacebookAds"
cordova-plugin-whitelist 1.0.0 "Whitelist"
jason-engage commented 9 years ago

The plugin list in the screenshot above. Here it is in text:

cc.fovea.cordova.purchase 4.0.0 "Purchase" com.cordova.plugins.sms 0.1.2 "Cordova SMS Plugin" com.ionic.keyboard 1.0.4 "Keyboard" com.johnwargo.carrier 0.0.3 "carrier" com.phonegap.plugins.PushPlugin 2.5.0 "PushPlugin" com.purplebrain.adbuddiz.sdk 3.0.18 "AdBuddizSDK" com.rjfun.cordova.extension 1.1.4 "Cordova Plugin Extension" com.rjfun.cordova.iad 2.0.4 "iAd PluginPro" com.telerik.plugins.wkwebview 0.6.4 "WKWebView Polyfill" cordova-facebook-audnet-sdk 4.7.0 "Facebook AudienceNetwork SDK for Cordova" cordova-plugin-admobpro 2.9.8 "AdMob Plugin Pro" cordova-plugin-appavailability 0.4.2 "AppAvailability" cordova-plugin-contacts 1.1.0 "Contacts" cordova-plugin-crosswalk-webview 1.3.1 "Crosswalk WebView Engine" cordova-plugin-customurlscheme 4.0.0 "Custom URL scheme" cordova-plugin-device 1.0.1 "Device" cordova-plugin-facebookads 4.7.1 "FacebookAds" cordova-plugin-file 3.0.0 "File" cordova-plugin-file-transfer 1.3.0 "File Transfer" cordova-plugin-google-analytics 0.8.0 "Google Universal Analytics Plugin" cordova-plugin-inappbrowser 1.0.1 "InAppBrowser" cordova-plugin-nativeaudio 3.0.5 "Cordova Native Audio" cordova-plugin-splashscreen 2.1.0 "Splashscreen" cordova-plugin-statusbar 1.0.1 "StatusBar" cordova-plugin-webserver 1.0.3 "CordovaWebServer" cordova-plugin-whitelist 1.0.0 "Whitelist" ionic-plugin-deploy 0.3.0 "IonicDeploy" net.yoik.cordova.plugins.screenorientation 1.3.4 "Screen Orientation" nl.x-services.plugins.socialsharing 4.3.19 "SocialSharing" org.apache.cordova.dialogs 0.3.0 "Notification" org.apache.cordova.globalization 0.3.4 "Globalization" org.apache.cordova.network-information 0.2.15 "Network Information" org.pushandplay.cordova.apprate 1.1.7 "AppRate" uk.co.whiteoctober.cordova.appversion 0.1.7 "AppVersion"

jason-engage commented 9 years ago

When I run

[sudo] npm install -g plugin-verify plugin-verify cordova-plugin-facebookads ios

it fails

floatinghotpot commented 9 years ago

What error message it gives?

[sudo] means may be sudo if your nodejs is installed as root.

sudo npm install -g plugin-verify

But if nodejs is installed as your ownership with macport or homebrew, maybe sudo is not needed.

jason-engage commented 9 years ago

Can you see the screenshots I posted? One of them shows the error msg. Sudo is not the problem.

On Sun, Oct 18, 2015 at 9:03 PM, Raymond Xie notifications@github.com wrote:

What error message it gives?

[sudo] means may be sudo if your nodejs is installed as root.

sudo npm install -g plugin-verify

But if nodejs is installed as your ownership with macport or homebrew, maybe sudo is not needed.

— Reply to this email directly or view it on GitHub https://github.com/floatinghotpot/cordova-facebook-audnet-sdk/issues/1#issuecomment-149071022 .

[image: ENGAGE] http://www.engageify.com/

floatinghotpot commented 9 years ago

Can you paste the error log when only run the verifying commands?

[sudo] npm install -g plugin-verify
plugin-verify cordova-plugin-facebookads ios
floatinghotpot commented 9 years ago

Which version of Xcode are you using?

See the answer here: http://stackoverflow.com/questions/32514962/linker-error-in-ios-duplicate-symbols-for-architecture-x86-64/32519847#32519847

This thread explains you must link the Facebook 4.6.0 SDK in Xcode 7 to resolve the issue. After compiling in Xcode 7 it worked for me.

In the Facebook iOS SDK 4.6.0, App Thinning (Bitcode) support has been added and therefore it cannot be linked in Xcode versions lower than Xcode 7.0.

jason-engage commented 9 years ago

Ok thank you that makes sense. I'll upgrade to Xcode 7. I am still using 6!