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

别说谁变了你拦得住时间么 提交于 2019-11-28 14:14:17

@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...

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.)

'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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!