I am including another project to mine and I am getting this error even when I am including all the libraries needed.
this is the error details:
Ld /Users/alialzahrani/Library/Developer/Xcode/DerivedData/IMS3-ezltqoccjhjpvuakngozvwcsppvh/Build/Products/Debug-iphoneos/IMS3.app/IMS3 normal armv7
cd /Users/alialzahrani/Desktop/IMSFolder/mydoubs/iPhone/idoubs/branches/2.0/IMS3
setenv IPHONEOS_DEPLOYMENT_TARGET 6.0
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.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 armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk -L/Users/alialzahrani/Library/Developer/Xcode/DerivedData/IMS3-ezltqoccjhjpvuakngozvwcsppvh/Build/Products/Debug-iphoneos -L/Users/alialzahrani/Desktop/IMSFolder/mydoubs/doubango/branches/2.0/doubango/thirdparties/iphone/lib/armv7 -F/Users/alialzahrani/Library/Developer/Xcode/DerivedData/IMS3-ezltqoccjhjpvuakngozvwcsppvh/Build/Products/Debug-iphoneos -filelist /Users/alialzahrani/Library/Developer/Xcode/DerivedData/IMS3-ezltqoccjhjpvuakngozvwcsppvh/Build/Intermediates/IMS3.build/Debug-iphoneos/IMS3.build/Objects-normal/armv7/IMS3.LinkFileList -dead_strip -fobjc-link-runtime -stdlib=libc++ -miphoneos-version-min=6.0 -framework AudioUnit -framework AVFoundation -framework CoreAudio -lsqlite3 -lresolv -framework AudioToolbox -framework AddressBook -framework AddressBookUI -framework CFNetwork -framework CoreMedia -framework CoreVideo -framework SystemConfiguration -framework CoreGraphics /Users/alialzahrani/Library/Developer/Xcode/DerivedData/IMS3-ezltqoccjhjpvuakngozvwcsppvh/Build/Products/Debug-iphoneos/libios_ngn_stack.a /Users/alialzahrani/Library/Developer/Xcode/DerivedData/IMS3-ezltqoccjhjpvuakngozvwcsppvh/Build/Products/Debug-iphoneos/libtinyDAV.a /Users/alialzahrani/Library/Developer/Xcode/DerivedData/IMS3-ezltqoccjhjpvuakngozvwcsppvh/Build/Products/Debug-iphoneos/libtinyHTTP.a /Users/alialzahrani/Library/Developer/Xcode/DerivedData/IMS3-ezltqoccjhjpvuakngozvwcsppvh/Build/Products/Debug-iphoneos/libtinyIPSec.a /Users/alialzahrani/Library/Developer/Xcode/DerivedData/IMS3-ezltqoccjhjpvuakngozvwcsppvh/Build/Products/Debug-iphoneos/libtinyMEDIA.a /Users/alialzahrani/Library/Developer/Xcode/DerivedData/IMS3-ezltqoccjhjpvuakngozvwcsppvh/Build/Products/Debug-iphoneos/libtinyMSRP.a /Users/alialzahrani/Library/Developer/Xcode/DerivedData/IMS3-ezltqoccjhjpvuakngozvwcsppvh/Build/Products/Debug-iphoneos/libtinyNET.a /Users/alialzahrani/Library/Developer/Xcode/DerivedData/IMS3-ezltqoccjhjpvuakngozvwcsppvh/Build/Products/Debug-iphoneos/libtinyRTP.a /Users/alialzahrani/Library/Developer/Xcode/DerivedData/IMS3-ezltqoccjhjpvuakngozvwcsppvh/Build/Products/Debug-iphoneos/libtinySAK.a /Users/alialzahrani/Library/Developer/Xcode/DerivedData/IMS3-ezltqoccjhjpvuakngozvwcsppvh/Build/Products/Debug-iphoneos/libtinySDP.a /Users/alialzahrani/Library/Developer/Xcode/DerivedData/IMS3-ezltqoccjhjpvuakngozvwcsppvh/Build/Products/Debug-iphoneos/libtinySIGCOMP.a /Users/alialzahrani/Library/Developer/Xcode/DerivedData/IMS3-ezltqoccjhjpvuakngozvwcsppvh/Build/Products/Debug-iphoneos/libtinySIP.a /Users/alialzahrani/Library/Developer/Xcode/DerivedData/IMS3-ezltqoccjhjpvuakngozvwcsppvh/Build/Products/Debug-iphoneos/libtinySMS.a /Users/alialzahrani/Library/Developer/Xcode/DerivedData/IMS3-ezltqoccjhjpvuakngozvwcsppvh/Build/Products/Debug-iphoneos/libtinyWRAP.a /Users/alialzahrani/Library/Developer/Xcode/DerivedData/IMS3-ezltqoccjhjpvuakngozvwcsppvh/Build/Products/Debug-iphoneos/libtinyXCAP.a -framework UIKit -framework Foundation -o /Users/alialzahrani/Library/Developer/Xcode/DerivedData/IMS3-ezltqoccjhjpvuakngozvwcsppvh/Build/Products/Debug-iphoneos/IMS3.app/IMS3
ld: framework not found AudioUnit
clang: error: linker command failed with exit code 1 (use -v to see invocation)
and here is all the libraries that I did include :
and if did not include the framework I am getting 110 errors:
Audio Unit is just an umbrella framework, it doesn't have any actual dynamic libraries to link against, only headers. Don't add it to the project, and building will succeed. (The actual symbols for Audio Units are located in another framework, IIRC it's AudioToolbox.)
I have faced the same error when I was creating an application of Voice recorder.
you simply do one thing, just add AudioToolbox framework, CoreAudio framework. in your project and also #import <AudioToolbox/AudioToolbox.h>,
#import <CoreAudio/CoreAudioTypes.h>
Related
I got this Error from Xcode when trying to run my app on my device.
Ld "/Users/admin/Library/Developer/Xcode/DerivedData/Store_Locator_In_App-hbygxaouhvxmvwdudbwamekfbima/Build/Intermediates/Store Locator In App.build/Debug-iphoneos/Store Locator In App.build/Objects-normal/armv7s/Store Locator In App" normal armv7s
cd "/Users/admin/Desktop/peboom 5"
setenv IPHONEOS_DEPLOYMENT_TARGET 5.1
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.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 armv7s -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk -L/Users/admin/Library/Developer/Xcode/DerivedData/Store_Locator_In_App-hbygxaouhvxmvwdudbwamekfbima/Build/Products/Debug-iphoneos "-L/Users/admin/Desktop/peboom 5" -F/Users/admin/Library/Developer/Xcode/DerivedData/Store_Locator_In_App-hbygxaouhvxmvwdudbwamekfbima/Build/Products/Debug-iphoneos -filelist "/Users/admin/Library/Developer/Xcode/DerivedData/Store_Locator_In_App-hbygxaouhvxmvwdudbwamekfbima/Build/Intermediates/Store Locator In App.build/Debug-iphoneos/Store Locator In App.build/Objects-normal/armv7s/Store Locator In App.LinkFileList" -dead_strip -fobjc-arc -fobjc-link-runtime -miphoneos-version-min=5.1 -lsqlite3.0 -framework MediaPlayer -framework AudioToolbox -framework AVFoundation -framework SystemConfiguration -framework CFNetwork -framework MobileCoreServices -framework MessageUI -framework CoreLocation -framework QuartzCore -framework MapKit -framework UIKit -framework Foundation -framework CoreGraphics -lGoogleAnalytics_NoThumb -lGoogleAnalytics -o "/Users/admin/Library/Developer/Xcode/DerivedData/Store_Locator_In_App-hbygxaouhvxmvwdudbwamekfbima/Build/Intermediates/Store Locator In App.build/Debug-iphoneos/Store Locator In App.build/Objects-normal/armv7s/Store Locator In App"
ld: file is universal (3 slices) but does not contain a(n) armv7s slice: /Users/admin/Desktop/peboom 5/libGoogleAnalytics_NoThumb.a for architecture armv7s
clang: error: linker command failed with exit code 1 (use -v to see invocation)
The new iPhone 5 processor has a custom ARMv7 core which uses a new architecture called armv7s.
The linker is returning that error because the armv7s slice is missing from the libGoogleAnalytics_NoThumb library you're referencing in your project.
Simply update the GoogleAnalitics SDK to the latest version (1.5.1) you can download here: https://developers.google.com/analytics/devguides/collection/ios/resources
I'm using webtrends which require a -load_all flag, app builds ok but wont archive
I read all the messages relating and non seem to help
Ld "/Users/julian/Library/Developer/Xcode/DerivedData/PwC_UK-dsueulkkaowyeycupeqjbvsziicn/ArchiveIntermediates/Data Collection Sample/IntermediateBuildFilesPath/PwC UK.build/Release-iphoneos/PwC UK.build/Objects-normal/armv6/PwC UK" normal armv6
cd "/Users/julian/Documents/Flat Earth/PwC [-] iPhone/PwC-UK-120206"
setenv IPHONEOS_DEPLOYMENT_TARGET 4.2
setenv PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/clang -arch armv6 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk "-L/Users/julian/Library/Developer/Xcode/DerivedData/PwC_UK-dsueulkkaowyeycupeqjbvsziicn/ArchiveIntermediates/Data Collection Sample/BuildProductsPath/Release-iphoneos" "-F/Users/julian/Library/Developer/Xcode/DerivedData/PwC_UK-dsueulkkaowyeycupeqjbvsziicn/ArchiveIntermediates/Data Collection Sample/BuildProductsPath/Release-iphoneos" "-F/Users/julian/Documents/Flat Earth/PwC [-] iPhone/PwC-UK-120206" "-F/Users/julian/Documents/Flat Earth/PwC [-] iPhone/PwC-UK-120206/.." "-F/Users/julian/Documents/Flat Earth/PwC [-] iPhone/PwC-UK-120206/Webtrends.framework" -filelist "/Users/julian/Library/Developer/Xcode/DerivedData/PwC_UK-dsueulkkaowyeycupeqjbvsziicn/ArchiveIntermediates/Data Collection Sample/IntermediateBuildFilesPath/PwC UK.build/Release-iphoneos/PwC UK.build/Objects-normal/armv6/PwC UK.LinkFileList" -dead_strip -licucore -ObjC -load_all -miphoneos-version-min=4.2 -framework Foundation -framework UIKit -framework CoreGraphics -framework CoreData -framework CoreLocation -framework SystemConfiguration -framework Webtrends -framework CFNetwork -lz -framework MobileCoreServices -framework Security -framework MessageUI -framework AddressBook -framework AddressBookUI -framework MapKit -o "/Users/julian/Library/Developer/Xcode/DerivedData/PwC_UK-dsueulkkaowyeycupeqjbvsziicn/ArchiveIntermediates/Data Collection Sample/IntermediateBuildFilesPath/PwC UK.build/Release-iphoneos/PwC UK.build/Objects-normal/armv6/PwC UK"
ld: library not found for -load_all
Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/clang failed with exit code 1
My framework search paths are
$(inherited)
"$(SRCROOT)"
"$(SRCROOT)/.."
Any ideas?
I guess you need the -all_load flag not -load_all
I am getting this error when i am trying to build my app. In the simulator it works fine but when coming to build for ipa it gives the following error:
Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1
What is causing this error?
Edited
Ld
build/halalgauge.build/Release-iphoneos/halalgauge.build/Objects-normal/armv6/halalgauge
normal armv6 cd /Users/admin/Desktop/ShopSavvy setenv
IPHONEOS_DEPLOYMENT_TARGET 4.2 setenv PATH
"/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 -arch
armv6 -isysroot
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk
-L/Users/admin/Desktop/ShopSavvy/build/Release-iphoneos -L/Users/admin/Desktop/ShopSavvy -L/Users/admin/Desktop/ShopSavvy/Classes/ZBarSDK -L/Users/admin/Desktop/ShopSavvy/Classes/ScannerKit-4.0.3 -F/Users/admin/Desktop/ShopSavvy/build/Release-iphoneos -filelist /Users/admin/Desktop/ShopSavvy/build/halalgauge.build/Release-iphoneos/halalgauge.build/Objects-normal/armv6/halalgauge.LinkFileList
-Xlinker -map -Xlinker /Users/admin/Desktop/ShopSavvy/build/halalgauge.build/Release-iphoneos/halalgauge.build/halalgauge-LinkMap-normal-armv6.txt
-dead_strip all_load -lstdc++ -miphoneos-version-min=4.2 -framework CoreGraphics -framework AVFoundation -framework CoreVideo -framework
CoreMedia -framework Foundation -framework AudioToolbox -framework
QuartzCore -framework UIKit -framework iAd -lsqlite3.0 -framework
MessageUI -framework AddressBook -framework AddressBookUI -framework
MapKit -framework CoreLocation -liconv -lScannerKit -framework
SystemConfiguration -framework MediaPlayer -o
/Users/admin/Desktop/ShopSavvy/build/halalgauge.build/Release-iphoneos/halalgauge.build/Objects-normal/armv6/halalgauge
arm-apple-darwin10-gcc-4.2.1: all_load: No such file or directory
Command
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2
failed with exit code 1
If you inspect the linker invocation, you’ll see the following:
-dead_strip all_load -lstdc++
The linker interprets that all_load as a file that must be linked, hence the error:
arm-apple-darwin10-gcc-4.2.1: all_load: No such file or directory
You need to specify -all_load (with an hyphen) instead of all_load in the linker flags.
Restart your Mac, and if all else fails choose either LLVM-GCC or LLVM as a compiler.
Could be due to multiple errors.
In XCode's build window select All Messages, that should give more meaningful information, which you can post here to help trace the problem.
Add required library from the SDK libraries.
I am getting the below error as "apple mach-o linker error xcode"
Ld "/Users/admin/Library/Developer/Xcode/DerivedData/Voice_-flsfylxijlgswbbqkqwjspmgcska/Build/Intermediates/Voice .build/Debug-iphoneos/Voice .build/Objects-normal/armv6/Voice " normal armv6
cd "/Users/admin/Desktop/Voice "
setenv IPHONEOS_DEPLOYMENT_TARGET 4.0
setenv PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/llvm-g++-4.2 -arch armv6 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk -L/Users/admin/Library/Developer/Xcode/DerivedData/Voice_-flsfylxijlgswbbqkqwjspmgcska/Build/Products/Debug-iphoneos "-L/Users/admin/Desktop/Voice /../Common Files/src" -F/Users/admin/Library/Developer/Xcode/DerivedData/Voice_-flsfylxijlgswbbqkqwjspmgcska/Build/Products/Debug-iphoneos -filelist "/Users/admin/Library/Developer/Xcode/DerivedData/Voice_-flsfylxijlgswbbqkqwjspmgcska/Build/Intermediates/Voice .build/Debug-iphoneos/Voice .build/Objects-normal/armv6/Voice .LinkFileList" -dead_strip -miphoneos-version-min=4.0 -framework AudioUnit -framework OpenAL -framework AVFoundation -framework AudioToolbox -framework CoreAudio -framework Accelerate -framework UIKit -framework Foundation -framework CoreGraphics -lDIRAC_iOS4-fat -o "/Users/admin/Library/Developer/Xcode/DerivedData/Voice_-flsfylxijlgswbbqkqwjspmgcska/Build/Intermediates/Voice .build/Debug-iphoneos/Voice .build/Objects-normal/armv6/Voice "
ld: warning: directory not found for option '-L/Users/admin/Desktop/Voice /../Common Files/src'
ld: framework not found AudioUnit
collect2: ld returned 1 exit status
Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/llvm-g++-4.2 failed with exit code 1
Please help me,
I did not get any solution even I added Audio unit framework it displays same error.
Madan Mohan
Have you tried doing a clean and then setting up your frameworks again?
I think you should add the audio unit framework and create "-L/Users/admin/Desktop/Voice /../Common Files/src" what are you doing with this dir?
I almost done my app but suddenly an error appear
The ERROR:
Ld build/urbantest.build/Release-iphoneos/urbantest.build/Objects-normal/armv7/urbantest normal armv7
cd /Users/mbp/Apps/Testing/urbantest
setenv IPHONEOS_DEPLOYMENT_TARGET 4.1
setenv PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 -arch armv7 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.1.sdk -L/Users/mbp/Apps/Testing/urbantest/build/Release-iphoneos -L/Users/mbp/Apps/Testing/urbantest/Airship -F/Users/mbp/Apps/Testing/urbantest/build/Release-iphoneos -filelist /Users/mbp/Apps/Testing/urbantest/build/urbantest.build/Release-iphoneos/urbantest.build/Objects-normal/armv7/urbantest.LinkFileList -dead_strip -all_load -weak_library /usr/lib/libSystem.B.dylib -miphoneos-version-min=4.1 -framework Foundation -framework UIKit -framework CoreGraphics -lUAirship-1.0.4 -framework AudioToolbox -framework MessageUI -framework CFNetwork -framework CoreTelephony -framework MobileCoreServices -framework Security -framework StoreKit -framework SystemConfiguration -lsqlite3 -lz -o /Users/mbp/Apps/Testing/urbantest/build/urbantest.build/Release-iphoneos/urbantest.build/Objects-normal/armv7/urbantest
ld: duplicate symbol _OBJC_CLASS_$_UA_ASIDownloadCache in /Users/mbp/Apps/Testing/urbantest/Airship/libUAirship-1.0.4.a(UA_ASIDownloadCache.o) and /Users/mbp/Apps/Testing/urbantest/build/urbantest.build/Release-iphoneos/urbantest.build/Objects-normal/armv7/UA_ASIDownloadCache.o
collect2: ld returned 1 exit status
Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1
Plz help me solve it.
Seem like you are trying to use AirShip library for Push Notification that embed ASIHTTPRequest library. Have you also add by yourself ASIHTTPRequest for network stuff?
If yes the linker found two symbol with the same name (= two definition for the same class) one in AirShip Library and One in ASIHHTPRequest.
You can remove your ASIHTTPRequest and use the one shipped with AirShip library.