iPhone + Twitter + LinkedIn + Facebook 错误:命令/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 失败,退出代码为 1 [英] IPhone + Twitter + LinkedIn + Facebook Error : Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1
问题描述
我在带有 facebook-ios-sdk 的 iOS 应用程序中使用 MGTwitterEngine oAuth 和 LinkedIn iOS SDK
TwitterEngine : https://github.com/bengottlieb/Twitter-OAuth-iPhone一个>
LinkedInIphone:https://github.com/ResultsDirect/LinkedIn-iPhone>
两者分别集成得很好,但是当我在应用程序中同时使用两者时,就会出现错误
- FB + Twitter = 运行良好
- FB + LinkedIn = 工作良好
- FB + Twitter + LinkedIn = 不工作并给出错误:
命令/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 失败,退出代码为 1
请帮助我哪里出错了.
编辑
错误记录文本文件
<前>使用配置Debug构建项目butterfli的butterflild build/Debug-iphonesimulator/butterfli.app/butterfli 正常 i386cd/Users/pratgupta/Desktop/Settinglinkedin/10_mar_butterflisetenv MACOSX_DEPLOYMENT_TARGET 10.6setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 -arch i386 -isysroot/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk -L/Users/pratgupta/Desktop/Settinglinkedin/10_mar_butterfli/build/Debug-iphonesimulator "-L/Users/pratgupta/Desktop/Settinglinkedin/10_mar_butterfli/Twitter+OAuth/Libraries & Headers" -F/Users/pratgupta/Desktop/Settinglinkedin/10_mar_butterfli/build文件列表/Users/pratgupta/Desktop/Settinglinkedin/10_mar_butterfli/build/butterfli.build/Debug-iphonesimulator/butterfli.build/Objects-normal/i386/butterfli.LinkFileList -mmacosx-version-min=10.6 -all_load -Xlinker_versionc_aXlinker 2 -framework Foundation -framework UIKit -framework CoreGraphics -lOAuth -lxml2/Users/pratgupta/Desktop/Settinglinkedin/10_mar_butterfli/LinkedInClientLibrary/build/Debug-iphonesimulator/libLinkedInClientLibrary.a -o/Users/pratgupta/Desktop/Desktop/Settinglinkedin/10_mar_butterfli/构建/调试-iphonesimulator/对接erfli.app/butterflild:/Users/pratgupta/Desktop/Settinglinkedin/10_mar_butterfli/LinkedInClientLibrary/build/Debug-iphonesimulator/libLinkedInClientLibrary.a(Base64Transcoder.o) 和/Users/pratgupta/Desktop/Desktop/Settinglinkedin/10_mar_butterfli/LinkedInClientLibrary/& Headers/libOAuth.a(Base64Transcoder.o)collect2: ld 返回 1 个退出状态命令/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 失败,退出代码 1阿米特·巴坦
@amit 正如我已经说过的 EstimateBas64EncodedDataSize 这个函数在 2 个源文件中定义... 1 个定义源文件来自 LinkedIn 源,1 个定义即将到来来自 twitter 来源的文件......你需要在你的项目中搜索 EstimateBas64EncodedDataSize 并删除定义这些函数的两个特定包中的一个,最有可能是 Base64Encoding 相关文件,它们是在您的项目中添加两次会使编译器混淆该特定函数使用哪个定义...
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
LinkedInIphone : https://github.com/ResultsDirect/LinkedIn-iPhone
Both integrated well separately, But when I have used both in application then error coming
- FB + Twitter = working well
- FB + LinkedIn = Working Well
- FB + Twitter + LinkedIn = Not Working and giving error:
Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1
Please help me where I am wrong.
EDIT
Error Transcript Text File
Build butterfli of project butterfli with configuration Debug Ld build/Debug-iphonesimulator/butterfli.app/butterfli normal i386 cd /Users/pratgupta/Desktop/Settinglinkedin/10_mar_butterfli setenv MACOSX_DEPLOYMENT_TARGET 10.6 setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk -L/Users/pratgupta/Desktop/Settinglinkedin/10_mar_butterfli/build/Debug-iphonesimulator "-L/Users/pratgupta/Desktop/Settinglinkedin/10_mar_butterfli/Twitter+OAuth/Libraries & Headers" -F/Users/pratgupta/Desktop/Settinglinkedin/10_mar_butterfli/build/Debug-iphonesimulator -filelist /Users/pratgupta/Desktop/Settinglinkedin/10_mar_butterfli/build/butterfli.build/Debug-iphonesimulator/butterfli.build/Objects-normal/i386/butterfli.LinkFileList -mmacosx-version-min=10.6 -all_load -Xlinker -objc_abi_version -Xlinker 2 -framework Foundation -framework UIKit -framework CoreGraphics -lOAuth -lxml2 /Users/pratgupta/Desktop/Settinglinkedin/10_mar_butterfli/LinkedInClientLibrary/build/Debug-iphonesimulator/libLinkedInClientLibrary.a -o /Users/pratgupta/Desktop/Settinglinkedin/10_mar_butterfli/build/Debug-iphonesimulator/butterfli.app/butterfli ld: duplicate symbol _EstimateBas64EncodedDataSize in /Users/pratgupta/Desktop/Settinglinkedin/10_mar_butterfli/LinkedInClientLibrary/build/Debug-iphonesimulator/libLinkedInClientLibrary.a(Base64Transcoder.o) and /Users/pratgupta/Desktop/Settinglinkedin/10_mar_butterfli/Twitter+OAuth/Libraries & Headers/libOAuth.a(Base64Transcoder.o) collect2: ld returned 1 exit status Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1
Amit Battan
@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...
这篇关于iPhone + Twitter + LinkedIn + Facebook 错误:命令/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 失败,退出代码为 1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!