IPhone + Twitter + LinkedIn + Facebook Error : Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1

前端 未结 3 1287
我在风中等你
我在风中等你 2020-12-12 02:32

I am using MGTwitterEngine oAuth and LinkedIn iOS SDK in my iOS application with facebook-ios-sdk

TwitterEngine : https://github.com/bengottlieb/Twitter-OAuth-iPhone

相关标签:
3条回答
  • 2020-12-12 02:56

    'duplicate symbol' means one of your classes is #import'ing something twice that it shouldn't. If you look carefully, libLinkedInClientLibrary and libOAuth both symbolicate the same method '_EstimateBas64EncodedDataSize'. Check your #imports.

    0 讨论(0)
  • 2020-12-12 03:07

    @amit as i have already said EstimateBas64EncodedDataSize this function is define in 2 source file... 1 definition source file is coming from LinkedIn source and 1 definition is coming from file which is source of twitter... you need to search EstimateBas64EncodedDataSize in your project and remove that one out of two particular package in which these function is defined and most probably it is Base64Encoding related files which are added twice in your project makes compiler confuse on which definition to use for that particular function...

    0 讨论(0)
  • 2020-12-12 03:12

    The basic issue is that both our LinkedIn library and Ben Gottlieb's Twitter client include the same OAuthConsumer code. In fact (as the README says) the code in LinkedIn-iPhone was literally copied from his project, with his changes.

    That being the case, it should be possible to get this to work by removing our copy of the code (the entire OAuthConsumeriPhoneLib folder). You may also need to either change the #import lines in our sources, or your project's header search paths, to get our code to find the OAuthConsumer headers from his copy of the code.

    (I acknowledge that this is a pain. But we wanted to be sure that our code would build out of the box, without needing to install other stuff.)

    0 讨论(0)
提交回复
热议问题