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?
Related
I just opened my project which was made in xcode 3.1.5 version in xcode 4.2 and am getting the following error's can anyone please help me in this regard.
1)
Ld /Users/hasmukh.mandavia/Library/Developer/Xcode/DerivedData/ARecipeViewer-cdsqawgcznmakicuonkiinivjeed/Build/Products/Debug-iphonesimulator/ARecipeViewer.app/ARecipeViewer normal i386
cd /Users/hasmukh.mandavia/Desktop/DevelopmentArea/ARecipe
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/hasmukh.mandavia/Library/Developer/Xcode/DerivedData/ARecipeViewer-cdsqawgcznmakicuonkiinivjeed/Build/Products/Debug-iphonesimulator -L/Users/hasmukh.mandavia/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/lib -L/Users/hasmukh.mandavia/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/lib/gstreamer-0.10 -L/Users/hasmukh.mandavia/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/lib/pkgconfig -F/Users/hasmukh.mandavia/Library/Developer/Xcode/DerivedData/ARecipeViewer-cdsqawgcznmakicuonkiinivjeed/Build/Products/Debug-iphonesimulator -filelist /Users/hasmukh.mandavia/Library/Developer/Xcode/DerivedData/ARecipeViewer-cdsqawgcznmakicuonkiinivjeed/Build/Intermediates/ARecipeViewer.build/Debug-iphonesimulator/ARecipeViewer.build/Objects-normal/i386/ARecipeViewer.LinkFileList -mmacosx-version-min=10.6 -Xlinker -objc_abi_version -Xlinker 2 -lpocketsphinx -lsphinxbase -Xlinker -no_implicit_dylibs -D__IPHONE_OS_VERSION_MIN_REQUIRED=30100 -framework Foundation -framework UIKit -lsqlite3.0 -framework AudioToolbox -framework CFNetwork -liconv -lcv -lcxcore -framework CoreGraphics -framework QuartzCore -framework OpenGLES -o /Users/hasmukh.mandavia/Library/Developer/Xcode/DerivedData/ARecipeViewer-cdsqawgcznmakicuonkiinivjeed/Build/Products/Debug-iphonesimulator/ARecipeViewer.app/ARecipeViewer
ld: library not found for -lcv
Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang failed with exit code 1
2)
GenerateDSYMFile /Users/hasmukh.mandavia/Library/Developer/Xcode/DerivedData/ARecipeViewer-cdsqawgcznmakicuonkiinivjeed/Build/Products/Debug-iphonesimulator/ARecipeViewer.app.dSYM /Users/hasmukh.mandavia/Library/Developer/Xcode/DerivedData/ARecipeViewer-cdsqawgcznmakicuonkiinivjeed/Build/Products/Debug-iphonesimulator/ARecipeViewer.app/ARecipeViewer
cd /Users/hasmukh.mandavia/Desktop/DevelopmentArea/ARecipe
setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/usr/bin/dsymutil /Users/hasmukh.mandavia/Library/Developer/Xcode/DerivedData/ARecipeViewer-cdsqawgcznmakicuonkiinivjeed/Build/Products/Debug-iphonesimulator/ARecipeViewer.app/ARecipeViewer -o /Users/hasmukh.mandavia/Library/Developer/Xcode/DerivedData/ARecipeViewer-cdsqawgcznmakicuonkiinivjeed/Build/Products/Debug-iphonesimulator/ARecipeViewer.app.dSYM
error: unable to open executable '/Users/hasmukh.mandavia/Library/Developer/Xcode/DerivedData/ARecipeViewer-cdsqawgcznmakicuonkiinivjeed/Build/Products/Debug-iphonesimulator/ARecipeViewer.app/ARecipeViewer'
1.) As the first error says
ld: library not found for -lcv
It means your project needs a static library for 'cv' and
either its is not there in your project or placed at some different location(if you are using it)
or
you are putting additional compiler flag in build settings(if you are not using the library in your code). following compiler flags in build settings.
-liconv -lcv -lcxcore
put cv library at right location.(so that it can be included in project).
2.) Second error may be because .app file is yet not created in derived data directory.
Go at path shown in error, i.e.. and verify whether .app file exist or not.
error: unable to open executable '/Users/hasmukh.mandavia/Library/Developer/Xcode/DerivedData/ARecipeViewer-cdsqawgcznmakicuonkiinivjeed/Build/Products/Debug-iphonesimulator/ARecipeViewer.app/ARecipeViewer'
I just translated my entire app into another language by adding localization to some of my nib and .m files and after I got done and I tried to run the app I get the following error.
Ld
"/Users/tenghamn/Library/Developer/Xcode/DerivedData/scheduleTable-djaxkjmejcrgsybqqoinnhkerlut/Build/Products/Debug-iphonesimulator/MDH Schedule.app/MDH Schedule" normal i386 cd
"/Users/tenghamn/Dropbox/xcode Projects/scheduleTable" 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/tenghamn/Library/Developer/Xcode/DerivedData/scheduleTable-djaxkjmejcrgsybqqoinnhkerlut/Build/Products/Debug-iphonesimulator
-F/Users/tenghamn/Library/Developer/Xcode/DerivedData/scheduleTable-djaxkjmejcrgsybqqoinnhkerlut/Build/Products/Debug-iphonesimulator
-filelist "/Users/tenghamn/Library/Developer/Xcode/DerivedData/scheduleTable-djaxkjmejcrgsybqqoinnhkerlut/Build/Intermediates/scheduleTable.build/Debug-iphonesimulator/scheduleTable.build/Objects-normal/i386/MDH
Schedule.LinkFileList" -mmacosx-version-min=10.6 -Xlinker
-objc_abi_version -Xlinker 2 -fobjc-arc -Xlinker -no_implicit_dylibs -D__IPHONE_OS_VERSION_MIN_REQUIRED=50100 -framework SystemConfiguration -framework QuartzCore -framework CoreData
-framework UIKit -framework Foundation -framework CoreGraphics -o
"/Users/tenghamn/Library/Developer/Xcode/DerivedData/scheduleTable-djaxkjmejcrgsybqqoinnhkerlut/Build/Products/Debug-iphonesimulator/MDH Schedule.app/MDH Schedule"
ld: duplicate symbol _OBJC_CLASS_$_MainViewController in
/Users/tenghamn/Library/Developer/Xcode/DerivedData/scheduleTable-djaxkjmejcrgsybqqoinnhkerlut/Build/Intermediates/scheduleTable.build/Debug-iphonesimulator/scheduleTable.build/Objects-normal/i386/MainViewController-96B8D44EBB24B056.o
and
/Users/tenghamn/Library/Developer/Xcode/DerivedData/scheduleTable-djaxkjmejcrgsybqqoinnhkerlut/Build/Intermediates/scheduleTable.build/Debug-iphonesimulator/scheduleTable.build/Objects-normal/i386/MainViewController-4CC6B4B54C957278.o
for architecture i386 clang: error: linker command failed with exit
code 1 (use -v to see invocation)
I have searched for solutions to this error but nothing seems to solve my issue or be directly related. Any ideas on what I can do to solve it?
I did the translation directly in the files. You need to utilize NSLocalizedstring and a strings file to make this work otherwise xcode will try to use two .m files with the same name.
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.
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.