两者都很好地集成在一起,但是当我在应用程序中同时使用了两者之后,就会出现错误 FB + Twitter =运作良好 FB + LinkedIn =运行良好 FB + Twitter + LinkedIn =无法正常工作并给出错误消息: 命令/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2失败,退出代码为1请在错误的地方帮助我. 相关帖子 编辑 错误笔录文本文件Build butterfli of project butterfli with configuration DebugLd build/Debug-iphonesimulator/butterfli.app/butterfli normal 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/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/butterflild: 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 statusCommand /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1 Amit Battan 解决方案 @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-sdkTwitterEngine : https://github.com/bengottlieb/Twitter-OAuth-iPhoneLinkedInIphone : https://github.com/ResultsDirect/LinkedIn-iPhoneBoth integrated well separately, But when I have used both in application then error comingFB + Twitter = working wellFB + LinkedIn = Working WellFB + Twitter + LinkedIn = Not Working and giving error: Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1Please help me where I am wrong.Related postEDITError Transcript Text FileBuild butterfli of project butterfli with configuration DebugLd build/Debug-iphonesimulator/butterfli.app/butterfli normal 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/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/butterflild: 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 statusCommand /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1Amit 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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
07-22 18:35
查看更多