Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

How to use DropBox component in Xamarin.Forms App?

$
0
0

Hi,

I'm a big fan of Xamarin.Forms and wanted to extend a Forms project I'm currently working on with a DropBox component. But as soon as I add the component from the component store the project does not compile anymore:

error MT5212: Native linking failed, duplicate symbol: '_main'.
error MT5213: Duplicate symbol in: /Users/michaelhenke/Projects/BT/iOS/obj/iPhoneSimulator/Debug/mtouch-cache/Dropbox.a(test_harness_main.o) (Location related to previous error)
error MT5213: Duplicate symbol in: /Users/michaelhenke/Projects/BT/iOS/obj/iPhoneSimulator/Debug/mtouch-cache/main.i386.o (Location related to previous error)
error MT5309: Native linking error: 1 duplicate symbol for architecture i386

Any Ideas?

Compiling to native code
/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/bin/mtouch -sdkroot "/Applications/Xcode.app/Contents/Developer" --cache "/Users/michaelhenke/Projects/BT/iOS/obj/iPhoneSimulator/Debug/mtouch-cache" --nomanifest --nosign -sim "/Users/michaelhenke/Projects/BT/iOS/bin/iPhoneSimulator/Debug/BTiOS.app" -r "/Users/michaelhenke/Projects/BT/BT/bin/Debug/BT.dll" -r "/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/2.1/System.dll" -r "/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/2.1/System.Xml.dll" -r "/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/2.1/System.Core.dll" -r "/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/2.1/monotouch.dll" -r "/Users/michaelhenke/Projects/BT/Components/dropboxsync-3.1.0/lib/ios/DropBoxSync.iOS.dll" -r "/Users/michaelhenke/Projects/BT/iOS/../packages/Xamarin.Forms.1.2.3.6257/lib/MonoTouch10/Xamarin.Forms.Platform.iOS.dll" -r "/Users/michaelhenke/Projects/BT/iOS/../packages/Xamarin.Forms.1.2.3.6257/lib/MonoTouch10/Xamarin.Forms.Core.dll" -r "/Users/michaelhenke/Projects/BT/iOS/../packages/Xamarin.Forms.1.2.3.6257/lib/MonoTouch10/Xamarin.Forms.Xaml.dll" -debug -nolink -sdk "8.1" -targetver "7.0" --abi=i386 "/Users/michaelhenke/Projects/BT/iOS/bin/iPhoneSimulator/Debug/BTiOS.exe"
Xamarin.iOS 8.4.0 Business Edition using framework: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk
warning MT0049: PushKit.framework is supported only if deployment target is 8.0 or later. PushKit features might not work correctly.
Process exited with code 1, command:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++  -lc++ -lz -Wl,-pie  -arch i386 -gdwarf-2 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk -Qunused-arguments -fobjc-legacy-dispatch -fobjc-abi-version=2 -mios-simulator-version-min=7.0 /Users/michaelhenke/Projects/BT/iOS/obj/iPhoneSimulator/Debug/mtouch-cache/main.i386.o -force_load /Users/michaelhenke/Projects/BT/iOS/obj/iPhoneSimulator/Debug/mtouch-cache/Dropbox.a -o /Users/michaelhenke/Projects/BT/iOS/bin/iPhoneSimulator/Debug/BTiOS.app/BTiOS -framework AVFoundation -framework Accelerate -framework AudioToolbox -framework QuartzCore -framework CoreBluetooth -framework CoreData -framework CoreGraphics -framework CoreImage -framework CoreLocation -framework CoreText -framework Foundation -framework UIKit -framework GameKit -framework GLKit -framework ImageIO -framework JavaScriptCore -framework MobileCoreServices -framework SpriteKit -framework Security -framework StoreKit -framework SystemConfiguration -framework AddressBook -framework CoreMedia -framework CoreMIDI -framework CoreVideo -framework AssetsLibrary -framework Accounts -framework CoreTelephony -framework EventKit -framework EventKitUI -framework ExternalAccessory -framework CoreMotion -framework iAd -framework MapKit -framework MediaPlayer -framework MessageUI -framework NewsstandKit -framework OpenGLES -framework Social -framework Twitter -framework PassKit -framework MultipeerConnectivity -framework AddressBookUI -framework GameController -framework MediaAccessibility -framework SafariServices -framework AdSupport -framework QuickLook -framework CFNetwork -weak_framework AVKit -weak_framework CloudKit -weak_framework SceneKit -weak_framework WebKit -weak_framework LocalAuthentication -weak_framework NetworkExtension -weak_framework HealthKit -weak_framework HomeKit -weak_framework NotificationCenter -weak_framework Photos -weak_framework PhotosUI -lz -liconv -u _mono_pmip -u _xamarin_init_nsthread -u _monotouch_release_managed_ref -u _monotouch_create_managed_ref -u _xamarin_get_block_descriptor -u _monotouch_start_wwan -u _xamarin_IntPtr_objc_msgSend_IntPtr -u _xamarin_IntPtr_objc_msgSendSuper_IntPtr -u _xamarin_IntPtr_objc_msgSend_IntPtr_IntPtr_int -u _xamarin_IntPtr_objc_msgSendSuper_IntPtr_IntPtr_int -u _xamarin_IntPtr_objc_msgSend_IntPtr_int_int_int_int -u _xamarin_IntPtr_objc_msgSendSuper_IntPtr_int_int_int_int -u _xamarin_IntPtr_objc_msgSend_IntPtr_int_int_int -u _xamarin_IntPtr_objc_msgSendSuper_IntPtr_int_int_int -u _monotouch_timezone_get_names -u _monotouch_timezone_get_data -u _monotouch_get_locale_country_code -u _monotouch_log -u _CreateZStream -u _CloseZStream -u _Flush -u _ReadZStream -u _WriteZStream -u _DBPrincipalPublic -u _DBPrincipalTeam -u _kDBSDKVersion -u _DBDatastoreBaseChangeSize -u _DBDatastoreBaseSize -u _DBDatastoreBaseUnsyncedChangesSize -u _DBDatastoreRecordCountLimit -u _DBDatastoreSizeLimit -u _DBDatastoreUnsyncedChangesSizeLimit -u _DBFieldBaseSize -u _DBListItemBaseSize -u _DBRecordBaseSize -u _DBRecordSizeLimit /Library/Frameworks/Xamarin.iOS.framework/Versions/8.4.0.16/SDKs/MonoTouch.iphonesimulator.sdk/usr/lib/libmonoboehm-2.0.a /Library/Frameworks/Xamarin.iOS.framework/Versions/8.4.0.16/SDKs/MonoTouch.iphonesimulator.sdk/usr/lib/libmonotouch-debug.a /Library/Frameworks/Xamarin.iOS.framework/Versions/8.4.0.16/SDKs/MonoTouch.iphonesimulator.sdk/usr/lib/libapp.a -dead_strip
duplicate symbol _main in:
    /Users/michaelhenke/Projects/BT/iOS/obj/iPhoneSimulator/Debug/mtouch-cache/Dropbox.a(test_harness_main.o)
    /Users/michaelhenke/Projects/BT/iOS/obj/iPhoneSimulator/Debug/mtouch-cache/main.i386.o
ld: 1 duplicate symbol for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

error MT5212: Native linking failed, duplicate symbol: '_main'.
error MT5213: Duplicate symbol in: /Users/michaelhenke/Projects/BT/iOS/obj/iPhoneSimulator/Debug/mtouch-cache/Dropbox.a(test_harness_main.o) (Location related to previous error)
error MT5213: Duplicate symbol in: /Users/michaelhenke/Projects/BT/iOS/obj/iPhoneSimulator/Debug/mtouch-cache/main.i386.o (Location related to previous error)
error MT5309: Native linking error: 1 duplicate symbol for architecture i386
error MT5202: Native linking failed. Please review the build log.

Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>