timanrebel / Parse

Appcelerator Titanium module for the Parse SDK
MIT License
47 stars 31 forks source link

Fail building iOS module #27

Open tlenclos opened 9 years ago

tlenclos commented 9 years ago

I know this is a work in progress, I'm trying to add it to my project and it seems that FacebookSDK is already linked (probably with Titanium).

I'm really new to native module development, what am I missing ?

[TRACE] duplicate symbol _OBJC_METACLASS_$_FBViewController in:
[TRACE]     /Users/thibz/Documents/github/titanium/app1/modules/iphone/rebel.parse/0.1.0/assets/Frameworks/FacebookSDK.framework/FacebookSDK(FBViewController.o)
[TRACE]     /Users/thibz/Library/Application Support/Titanium/modules/iphone/facebook/3.2.0/libfacebook.a(FBViewController.o)
[TRACE] ld: 304 duplicate symbols for architecture i386

Removing FacebookSDKfrom the linked libs in module.xcconfig is also failing

[TRACE] Undefined symbols for architecture i386:
[TRACE]   "_OBJC_CLASS_$_FBAppCall", referenced from:
[TRACE]       objc-class-ref in ParseFacebookUtils(PFFacebookAuthenticationProvider.o)
[TRACE]       objc-class-ref in librebel.parse.a(RebelParseModule.o)
[TRACE]   "_OBJC_CLASS_$_BFExecutor", referenced from:
[TRACE]       objc-class-ref in Parse(BFTask+Private.o)
[TRACE]       l_OBJC_$_CATEGORY_BFExecutor_$_Background in Parse(BFTask+Private.o)
[TRACE]   "_OBJC_CLASS_$_FBAppEvents", referenced from:
[TRACE]       objc-class-ref in librebel.parse.a(RebelParseModule.o)
[TRACE]   "_OBJC_CLASS_$_BFTaskCompletionSource", referenced from:
[TRACE]       objc-class-ref in Parse(PFObject.o)
[TRACE]       objc-class-ref in Parse(PFCommandCache.o)
[TRACE]       objc-class-ref in Parse(PF_Twitter.o)
[TRACE]       objc-class-ref in Parse(PFNetworkCommandRunner.o)
[TRACE]       objc-class-ref in Parse(PFFile.o)
[TRACE]       objc-class-ref in Parse(BFTask+Private.o)
[TRACE]   "_OBJC_CLASS_$_BFTask", referenced from:
[TRACE]       objc-class-ref in Parse(PFPush.o)
[TRACE]       objc-class-ref in Parse(PFObject.o)
[TRACE]       objc-class-ref in Parse(PFUser.o)
[TRACE]       objc-class-ref in Parse(PFBlockRetryer.o)
[TRACE]       objc-class-ref in Parse(PFQuery.o)
[TRACE]       objc-class-ref in Parse(PFCachedCommandRunner.o)
[TRACE]       objc-class-ref in Parse(PFRetryingCommandRunner.o)
[TRACE]       ...
[TRACE] ld: symbol(s) not found for architecture i386
timanrebel commented 9 years ago

The iOS module is not ready yet. I will I unpublish it. My apologies

tlenclos commented 9 years ago

No apologies needed, I was trying to contribute and try to use your module instead of https://github.com/ewindso/ios-parse-titanium-module.

Do you know how to avoid this conflict with the facebookSDK ?

tlenclos commented 9 years ago

@timanrebel any update on this ?

timanrebel commented 9 years ago

No, I still have to unpublished the iPhone version :) The hard part is that both the official Facebook mode and this module want to use the Facebook sdks. have not yet found out how to fix that, unfortunately

tlenclos commented 9 years ago

Found this post http://iamyellow.net/post/40259552423/rename-symbols-compiler-preprocessor maybe it could help ?