我在iOS應用程序中使用MGTwitterEngine oAuth和LinkedIn iOS SDK Facebook的IOS-SDKiPhone + Twitter + LinkedIn + Facebook錯誤:Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2失敗,退出代碼1
TwitterEngine:https://github.com/bengottlieb/Twitter-OAuth-iPhone
LinkedInIphone:https://github.com/ResultsDirect/LinkedIn-iPhone
兩個集成以及獨立,但是,當我已經從應用程序中使用,則錯誤來
- FB和Twitter =運作良好
- FB + LinkedIn =工作井
- FB和Twitter + LinkedIn =沒有工作,給錯誤:
Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1
請幫我在哪裏,我錯了。
編輯
錯誤記錄文本文件
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
阿米特Battan
根據Transcript文本文件@mihir .. Base64Transcoder .o在libLinkedInClientLibrary.a和libOAuth.a ..我如何從中刪除...我試圖從MGTwitterEngine(NSData + 64.h/m,NSString + UUID.h/m)中刪除4個文件,但它沒有幫助 – 2011-03-11 05:29:08
這是一個有點棘手的問題......你需要重建libLinkedInClientLibrary.a庫......在該項目中添加了libOAuth.a,並且這些文件包含從linkedIn源中移除的EstimateBas64EncodedDataSize函數......是你明白我的觀點...? – 2011-03-11 05:36:53
是的,我理解這個問題有點...但我不知道我們如何重建libLinkedInClientLibrary.a ......是否可以直接使用文件來代替libLinkedInClientLibrary.a,就像twitter文件一樣 – 2011-03-11 05:40:20