Skip to content

Fail building iOS module #27

@tlenclos

Description

@tlenclos

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions