为什么我会收到此错误:“Command / Developer / Platforms / iPhoneSimulator.platform / Developer / usr / bin / gcc-4.2使用退出代码1失败”?

时间:2011-09-07 13:44:33

标签: iphone ios ios4 fbconnect

我想在我的应用程序中使用Facebook帐户登录。为此,我阅读了developers.facebook.com文档。我安装了一切。当我在我的应用程序中放入FBConnect时,我收到此错误:

 Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1

 Ld build/Debug-iphonesimulator/RunnoNavTest.app/RunnoNavTest normal i386
 cd "/Users/arashsaeidihaghi/Documents/Mahmood/iPhone Apps/RunnoNavTest"
 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.2.sdk "-L/Users/arashsaeidihaghi/Documents/Mahmood/iPhone Apps/RunnoNavTest/build/Debug-iphonesimulator" "-F/Users/arashsaeidihaghi/Documents/Mahmood/iPhone Apps/RunnoNavTest/build/Debug-iphonesimulator" -filelist "/Users/arashsaeidihaghi/Documents/Mahmood/iPhone Apps/RunnoNavTest/build/RunnoNavTest.build/Debug-iphonesimulator/RunnoNavTest.build/Objects-normal/i386/RunnoNavTest.LinkFileList" -mmacosx-version-min=10.6 -Xlinker -objc_abi_version -Xlinker 2 -framework Foundation -framework UIKit -framework CoreGraphics -framework CoreLocation -framework MediaPlayer -framework MapKit -lz.1.2.3 -framework CFNetwork -framework MobileCoreServices -framework SystemConfiguration -o "/Users/arashsaeidihaghi/Documents/Mahmood/iPhone Apps/RunnoNavTest/build/Debug-iphonesimulator/RunnoNavTest.app/RunnoNavTest"

 ld: duplicate symbol _SBJSONErrorDomain in /Users/arashsaeidihaghi/Documents/Mahmood/iPhone Apps/RunnoNavTest/build/RunnoNavTest.build/Debug-iphonesimulator/RunnoNavTest.build/Objects-normal/i386/SBJsonBase-8058DE1040F45B54.o and /Users/arashsaeidihaghi/Documents/Mahmood/iPhone Apps/RunnoNavTest/build/RunnoNavTest.build/Debug-iphonesimulator/RunnoNavTest.build/Objects-normal/i386/SBJsonBase-4E4B4560D6FF6850.o
 collect2: ld returned 1 exit status
 Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1

 ld: duplicate symbol _SBJSONErrorDomain in /Users/arashsaeidihaghi/Documents/Mahmood/iPhone Apps/RunnoNavTest/build/RunnoNavTest.build/Debug-iphonesimulator/RunnoNavTest.build/Objects-normal/i386/SBJsonBase-8058DE1040F45B54.o and /Users/arashsaeidihaghi/Documents/Mahmood/iPhone Apps/RunnoNavTest/build/RunnoNavTest.build/Debug-iphonesimulator/RunnoNavTest.build/Objects-normal/i386/SBJsonBase-4E4B4560D6FF6850.o

当我删除那个FBConnect时,它再次正常工作。 FBConnect有一个JSON文件夹,我的应用程序也有一个JSON文件夹。但两个文件夹中的文件都有不同的名称。如何删除此错误并使其工作?提前谢谢。

1 个答案:

答案 0 :(得分:2)

我认为JSON文件夹中的文件是重复的。