Error log
Build test of project test with configuration Debug
Ld build/Debug-iphonesimulator/test.app/test normal i386 cd
"/Users/justine/Desktop/test - iPhone/test" 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.3.sdk
"-L/Users/justine/Desktop/test -
iPhone/test/build/Debug-iphonesimulator"
"-F/Users/justine/Desktop/test -
iPhone/test/build/Debug-iphonesimulator" -filelist
"/Users/justine/Desktop/test -
iPhone/test/build/test.build/Debug-iphonesimulator/test.build/Objects-normal/i386/test.LinkFileList"
-mmacosx-version-min=10.6 -Xlinker -objc_abi_version -Xlinker 2
-framework Foundation -framework UIKit -framework CoreGraphics
-framework CFNetwork -framework MobileCoreServices -framework
SystemConfiguration -lz.1.2.3 -o "/Users/justine/Desktop/test -
iPhone/test/build/Debug-iphonesimulator/test.app/test"
ld: duplicate symbol _OBJC_IVAR_$_ASIAuthenticationDialog.request in
/Users/justine/Desktop/test -
iPhone/test/build/test.build/Debug-iphonesimulator/test.build/Objects-normal/i386/ASIAuthenticationDialog-F3DE19D52DB79A72.o
and /Users/justine/Desktop/test -
iPhone/test/build/test.build/Debug-iphonesimulator/test.build/Objects-normal/i386/ASIAuthenticationDialog-6A37D8A080A72C67.o
collect2: ld returned 1 exit status Command
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2
failed with exit code 1
It seems you have a duplicated file:
ld: duplicate symbol ..........
For what i see its called ASIAuthenticationDialog.
Check for that one.
Related
I've imported the Three20 to my existing project and I'm getting this error.
Please help!
Ld /Users/Dimfiniti/Library/Developer/Xcode/DerivedData/iDesignWindows-errlwvtfnegyctbuftipdkdvyiut/Build/Products/Debug-iphonesimulator/iDesignWindows.app/iDesignWindows normal i386
cd "/Dimitrios Tragas/iPhone/iPhone Apps/iDesignWindows/Final/iDesignWindows"
setenv MACOSX_DEPLOYMENT_TARGET 10.6
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk -L/Users/Dimfiniti/Library/Developer/Xcode/DerivedData/iDesignWindows-errlwvtfnegyctbuftipdkdvyiut/Build/Products/Debug-iphonesimulator -F/Users/Dimfiniti/Library/Developer/Xcode/DerivedData/iDesignWindows-errlwvtfnegyctbuftipdkdvyiut/Build/Products/Debug-iphonesimulator -filelist /Users/Dimfiniti/Library/Developer/Xcode/DerivedData/iDesignWindows-errlwvtfnegyctbuftipdkdvyiut/Build/Intermediates/iDesignWindows.build/Debug-iphonesimulator/iDesignWindows.build/Objects-normal/i386/iDesignWindows.LinkFileList -mmacosx-version-min=10.6 -Xlinker -objc_abi_version -Xlinker 2 -ObjC -all_load -Xlinker -no_implicit_dylibs -D__IPHONE_OS_VERSION_MIN_REQUIRED=30000 /Users/Dimfiniti/Library/Developer/Xcode/DerivedData/iDesignWindows-errlwvtfnegyctbuftipdkdvyiut/Build/Products/Debug-iphonesimulator/libThree20.a /Users/Dimfiniti/Library/Developer/Xcode/DerivedData/iDesignWindows-errlwvtfnegyctbuftipdkdvyiut/Build/Products/Debug-iphonesimulator/libThree20Core.a /Users/Dimfiniti/Library/Developer/Xcode/DerivedData/iDesignWindows-errlwvtfnegyctbuftipdkdvyiut/Build/Products/Debug-iphonesimulator/libThree20Network.a /Users/Dimfiniti/Library/Developer/Xcode/DerivedData/iDesignWindows-errlwvtfnegyctbuftipdkdvyiut/Build/Products/Debug-iphonesimulator/libThree20Style.a /Users/Dimfiniti/Library/Developer/Xcode/DerivedData/iDesignWindows-errlwvtfnegyctbuftipdkdvyiut/Build/Products/Debug-iphonesimulator/libThree20UI.a /Users/Dimfiniti/Library/Developer/Xcode/DerivedData/iDesignWindows-errlwvtfnegyctbuftipdkdvyiut/Build/Products/Debug-iphonesimulator/libThree20UICommon.a /Users/Dimfiniti/Library/Developer/Xcode/DerivedData/iDesignWindows-errlwvtfnegyctbuftipdkdvyiut/Build/Products/Debug-iphonesimulator/libThree20UINavigator.a -framework Foundation -framework CoreGraphics -framework QuartzCore -framework UIKit -o /Users/Dimfiniti/Library/Developer/Xcode/DerivedData/iDesignWindows-errlwvtfnegyctbuftipdkdvyiut/Build/Products/Debug-iphonesimulator/iDesignWindows.app/iDesignWindows
ld: duplicate symbol _TTCreateNonRetainingArray in /Users/Dimfiniti/Library/Developer/Xcode/DerivedData/iDesignWindows-errlwvtfnegyctbuftipdkdvyiut/Build/Products/Debug-iphonesimulator/libThree20Core.a(TTGlobalCore.o) and /Users/Dimfiniti/Library/Developer/Xcode/DerivedData/iDesignWindows-errlwvtfnegyctbuftipdkdvyiut/Build/Products/Debug-iphonesimulator/libThree20.a(TTGlobalCore.o) for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
This error frequently shows when you import the .m file instead of the .h.
For example:
#import "Class.m"
When you're supposed to do this:
#import "Class.h"
Hope this helps!
I am getting this error, don't know what is the solution to it
Ld /Users/Omer/Library/Developer/Xcode/DerivedData/LoginTest-eibsbylnvmiovwhavrqixbxjpvbm/Build/Products/Debug-iphonesimulator/LoginTest.app/LoginTest normal i386
cd /Users/Omer/Documents/development/LoginTest
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/clang -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk -L/Users/Omer/Library/Developer/Xcode/DerivedData/LoginTest-eibsbylnvmiovwhavrqixbxjpvbm/Build/Products/Debug-iphonesimulator -F/Users/Omer/Library/Developer/Xcode/DerivedData/LoginTest-eibsbylnvmiovwhavrqixbxjpvbm/Build/Products/Debug-iphonesimulator -filelist /Users/Omer/Library/Developer/Xcode/DerivedData/LoginTest-eibsbylnvmiovwhavrqixbxjpvbm/Build/Intermediates/LoginTest.build/Debug-iphonesimulator/LoginTest.build/Objects-normal/i386/LoginTest.LinkFileList -mmacosx-version-min=10.6 -Xlinker -objc_abi_version -Xlinker 2 -Xlinker -no_implicit_dylibs -D__IPHONE_OS_VERSION_MIN_REQUIRED=50000 -lz -framework CoreGraphics -framework Foundation -framework CFNetwork -framework SystemConfiguration -framework MobileCoreServices -framework UIKit -o /Users/Omer/Library/Developer/Xcode/DerivedData/LoginTest-eibsbylnvmiovwhavrqixbxjpvbm/Build/Products/Debug-iphonesimulator/LoginTest.app/LoginTest
Undefined symbols for architecture i386:
"_GHAssertTrue", referenced from:
-[VektorViewController testAuthentication] in VektorViewController.o
"_GHAssertNil", referenced from:
-[VektorViewController testAuthentication] in VektorViewController.o
"_GHAssertFalse", referenced from:
-[VektorViewController testAuthentication] in VektorViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
If you are trying to build a project and not run unit tests then you need to remove the test cases from your main project. If your are building the test project then you will need to include the GHUnit project.
I want to login with facebook account in my application. For that i read developers.facebook.com documentation. I have installed everything. When i put FBConnect in my application, then i get this error:
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
When i remove that FBConnect, then it again works fine. That FBConnect has a JSON folder and my application also has a JSON folder. But files in both folder have different names. How can i remove this error and make it work? Thanks in advance.
I think the file in the JSON folder is a duplicate.
Ld "build/Debug-iphonesimulator/Cloudmade Map.app/Cloudmade Map" normal i386
cd /Users/MPDEV/Documents/cloudmade2
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.3.sdk -L/Users/MPDEV/Documents/cloudmade2/build/Debug-iphonesimulator -L/Users/MPDEV/Documents/cloudmade2/libs/Proj4 -L/Users/MPDEV/Documents/cloudmade2/libs/CloudMade -L/Users/MPDEV/Documents/cloudmade2/libs/route-me -F/Users/MPDEV/Documents/cloudmade2/build/Debug-iphonesimulator -filelist "/Users/MPDEV/Documents/cloudmade2/build/cloudmade2.build/Debug-iphonesimulator/cloudmade2.build/Objects-normal/i386/Cloudmade Map.LinkFileList" -mmacosx-version-min=10.6 -lMapView -lProj4 -lCloudMadeApi -ObjC -all_load -Xlinker -objc_abi_version -Xlinker 2 -framework Foundation -framework UIKit -framework CoreGraphics -lsqlite3 -framework QuartzCore -lstdc++.6 -o "/Users/MPDEV/Documents/cloudmade2/build/Debug-iphonesimulator/Cloudmade Map.app/Cloudmade Map"
Undefined symbols:
"_OBJC_CLASS_$_RMDBMapSource", referenced from:
objc-class-ref-to-RMDBMapSource in cloudmade2ViewController.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
How do i solve this problem? I tried looking around but found no answer how to solve it.
Your target does not include RMDBMapSource.m for compile sources, and probably more files. Check that your have included all files from route-me project to your target.
When I am integrating XMPP into my application into my app I am getting an error. Please help me in solving this problem:
Build CheckOut of project CheckOut with configuration Debug
Ld build/Debug-iphonesimulator/CheckOut.app/CheckOut normal i386
cd "/Users/stellentmac1/Desktop/CheckOut 2"
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.3.sdk "-L/Users/stellentmac1/Desktop/CheckOut 2/build/Debug-iphonesimulator" "-L/Users/stellentmac1/Desktop/CheckOut 2/../../../../../xmppframework/Vendor/libidn" "-L/Users/stellentmac1/Desktop/CheckOut 2" "-F/Users/stellentmac1/Desktop/CheckOut 2/build/Debug-iphonesimulator" -filelist "/Users/stellentmac1/Desktop/CheckOut 2/build/CheckOut.build/Debug-iphonesimulator/CheckOut.build/Objects-normal/i386/CheckOut.LinkFileList" -mmacosx-version-min=10.6 -lxml2 -Xlinker -objc_abi_version -Xlinker 2 -framework Foundation -framework UIKit -framework CoreGraphics -framework CFNetwork -framework MobileCoreServices -framework SystemConfiguration -lz.1.2.3 -lresolv -o "/Users/stellentmac1/Desktop/CheckOut 2/build/Debug-iphonesimulator/CheckOut.app/CheckOut"
ld: warning: directory '/Users/stellentmac1/Desktop/CheckOut 2/../../../../../xmppframework/Vendor/libidn' following -L not found
ld: duplicate symbol _kRFSRVResolverErrorDomain in /Users/stellentmac1/Desktop/CheckOut 2/build/CheckOut.build/Debug-iphonesimulator/CheckOut.build/Objects-normal/i386/RFSRVResolver-1A90E36B7A8C9E67.o and /Users/stellentmac1/Desktop/CheckOut 2/build/CheckOut.build/Debug-iphonesimulator/CheckOut.build/Objects-normal/i386/RFSRVResolver-7299ADCEDF231192.o
collect2: ld returned 1 exit status
Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1
This looks like a linking problem caused by a less-than careful use of the framework.
Do you have a copy of the xmppframework linked and the sources included in your project, or two copies of the sources included in your project?