I am developing an iPad app. I get following error when try to create Archive of it.
Ld /Users/macbook/Library/Developer/Xcode/DerivedData/LSS-gtlketfveaswhcefyvuepplwjfbu/Build/Intermediates/ArchiveIntermediates/LSS/InstallationBuildProductsLocation/Applications/LSS.app/LSS normal armv7
cd /Users/macbook/Desktop/LSSCodeMarch22
setenv IPHONEOS_DEPLOYMENT_TARGET 4.3
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.1.sdk -L/Users/macbook/Library/Developer/Xcode/DerivedData/LSS-gtlketfveaswhcefyvuepplwjfbu/Build/Intermediates/ArchiveIntermediates/LSS/BuildProductsPath/Debug-iphoneos -L/Users/macbook/Desktop/LSSCodeMarch22/LSS/CrittercismSDK -L/Users/macbook/Desktop/LSSCodeMarch22/LSS/Airship -F/Users/macbook/Library/Developer/Xcode/DerivedData/LSS-gtlketfveaswhcefyvuepplwjfbu/Build/Intermediates/ArchiveIntermediates/LSS/BuildProductsPath/Debug-iphoneos -filelist /Users/macbook/Library/Developer/Xcode/DerivedData/LSS-gtlketfveaswhcefyvuepplwjfbu/Build/Intermediates/ArchiveIntermediates/LSS/IntermediateBuildFilesPath/LSS.build/Debug-iphoneos/LSS.build/Objects-normal/armv7/LSS.LinkFileList -dead_strip -fobjc-link-runtime -miphoneos-version-min=4.3 -lsqlite3 -framework AudioToolbox -framework Security -framework Foundation -framework CoreTelephony -framework StoreKit -lz -framework SystemConfiguration -framework MobileCoreServices -framework CFNetwork -framework CoreGraphics -framework CoreLocation -framework MapKit -framework CoreText -framework MessageUI -framework UIKit -lUAirship-1.4.0 -lCrittercism_v3_4_9 -o /Users/macbook/Library/Developer/Xcode/DerivedData/LSS-gtlketfveaswhcefyvuepplwjfbu/Build/Intermediates/ArchiveIntermediates/LSS/InstallationBuildProductsLocation/Applications/LSS.app/LSS
clang: error: unable to execute command: Segmentation fault: 11
clang: error: linker command failed due to signal (use -v to see invocation)
Can anyone please help me in dealing with this problem?
Best Regards
I figured out that one of the third party APIs being used in the app was not compatible with latest iOS (6.1). I removed that framework from the list of frameworks and it worked.
Related
I am getting following linker error in my project.
Ld /Users/macadmin/Library/Developer/Xcode/DerivedData/TestProject-bcrdhvfhcafaljdguvbmqdgtmoel/Build/Products/Debug-iphonesimulator/TestProject.app/TestProject normal i386
cd /Users/macadmin/Downloads/Medocity/mobile-ios-patient-cancer
setenv IPHONEOS_DEPLOYMENT_TARGET 7.0
setenv PATH "/Applications/Xcode5.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode5.0.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode5.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch i386 -isysroot /Applications/Xcode5.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk -L/Users/macadmin/Library/Developer/Xcode/DerivedData/TestProject-bcrdhvfhcafaljdguvbmqdgtmoel/Build/Products/Debug-iphonesimulator -L../mobile-ios-patient-common/External/RestKit -L../mobile-ios-patient-common/Modules/LiveHelp/lib -L../mobile-ios-patient-common/External/TestFlightSDK2.0.0 -L../mobile-ios-patient-common/External/UrbanAirship -F/Users/macadmin/Library/Developer/Xcode/DerivedData/TestProject-bcrdhvfhcafaljdguvbmqdgtmoel/Build/Products/Debug-iphonesimulator -F/Applications/Xcode5.0.app/Contents/Developer/Library/Frameworks -F../mobile-ios-patient-common/External/FB -F../mobile-ios-patient-common/External -filelist /Users/macadmin/Library/Developer/Xcode/DerivedData/TestProject-bcrdhvfhcafaljdguvbmqdgtmoel/Build/Intermediates/TestProject.build/Debug-iphonesimulator/TestProject.build/Objects-normal/i386/TestProject.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -ObjC -all_load -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=7.0 -lxml2 -lUAirship-2.0.0 -lTestFlight -framework IG -framework IGChart -framework FacebookSDK -lRestKit -framework Foundation -lavutil -lspeex -lssl -lxml2 -lswscale -lsqlite3.0 -lSKP_SILK_SDK -lsqlite3 -lzrtpcpp -lspeexdsp -lopencore-amrwb -framework Accounts -framework AdSupport -lsrtp -losip2 -framework CFNetwork -lbcg729 -lvpx -framework CoreText -framework MapKit -framework MessageUI -lopencore-amrnb -framework QuartzCore -framework Social -lmediastreamer_voip -losipparser2 -lmsilbc -llinphone -framework SystemConfiguration -lmediastreamer_base -lmsamr -framework CoreBluetooth -lmsx264 -lc++.1 -lavcodec -lresolv -lstdc++.6 -framework AddressBook -framework AddressBookUI -framework AssetsLibrary -lx264 -framework AudioToolbox -lcrypto -framework AVFoundation -lgsm -lortp -framework CoreAudio -framework CoreFoundation -framework CoreLocation -framework CoreTelephony -framework CoreVideo -lmsbcg729 -framework GLKit -lz -lmssilk -framework MediaPlayer -framework MobileCoreServices -framework OpenGLES -lilbc -framework Security -framework CoreGraphics -framework CoreMedia -framework CoreData -leXosip2 -framework UIKit -Xlinker -dependency_info -Xlinker /Users/macadmin/Library/Developer/Xcode/DerivedData/TestProject-bcrdhvfhcafaljdguvbmqdgtmoel/Build/Intermediates/TestProject.build/Debug-iphonesimulator/TestProject.build/Objects-normal/i386/TestProject_dependency_info.dat -o /Users/macadmin/Library/Developer/Xcode/DerivedData/TestProject-bcrdhvfhcafaljdguvbmqdgtmoel/Build/Products/Debug-iphonesimulator/TestProject.app/TestProject
ld: library not found for -lmsilbc
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I am using 4-5 third party library in my project like restKit, testflight, IGChart.framework, UrbanAirship.
I have no idea why this error is coming. Please provide me some pointers to solve this issue.
Thanks,
tek3
I think you need to select the library file in the build phase.
Select Target, then Build Phase then link binary with libraries. then select + then add the library file that is missed out.
Then set the path in the build settings.
Clean... then Build the project.
Add you library in build phase. then how make i:
Through finder i know where my library inside project folder, i'm create a new folder and put my library files there, then you go "Build settings" -> "Search Path" - > "Library Search Path" and set something like :
"$(SRCROOT)/projectName/libraryFolderName"
for example:
"$(SRCROOT)/test/CorePlot"
I know this has been asked before and I have been through the many answers but I am still unable to resolve this after hours of trying.
I updated my Scringo and Facebook SDK's and I am now facing this problem:
Ld /Users/Mike/Library/Developer/Xcode/DerivedData/Game_Count-hekdkbexjjzgzzaikucywmaarygl/Build/Products/Game\ Count-iphonesimulator/Game\ Count.app/Game\ Count normal i386
cd "/Users/Mike/Documents/XCode Projects/Game Count"
setenv IPHONEOS_DEPLOYMENT_TARGET 6.0
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/iPhoneSimulator7.0.sdk -L/Users/Mike/Library/Developer/Xcode/DerivedData/Game_Count-hekdkbexjjzgzzaikucywmaarygl/Build/Products/Game\ Count-iphonesimulator -L/Users/Mike/Documents/XCode\ Projects/Game\ Count/Libraries/Flurry -F/Users/Mike/Library/Developer/Xcode/DerivedData/Game_Count-hekdkbexjjzgzzaikucywmaarygl/Build/Products/Game\ Count-iphonesimulator -F/Users/Mike/Documents/XCode\ Projects/Game\ Count/Libraries/RevMob -F/Users/Mike/Documents/XCode\ Projects/Game\ Count/Libraries/Scringo -F/Users/Mike/Documents/FacebookSDK -F/Users/Mike/Documents/XCode\ Projects/Game\ Count/Game\ Count -filelist /Users/Mike/Library/Developer/Xcode/DerivedData/Game_Count-hekdkbexjjzgzzaikucywmaarygl/Build/Intermediates/Game\ Count.build/Game\ Count-iphonesimulator/Game\ Count.build/Objects-normal/i386/Game\ Count.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=6.0 -lsqlite3 -framework Security -framework Scringo -framework MobileCoreServices -framework AddressBook -framework CoreText -framework Twitter -framework MapKit -framework CoreLocation -lz -framework QuartzCore -framework EventKitUI -framework EventKit -framework FacebookSDK -framework CoreTelephony -framework CoreMedia -framework AVFoundation -framework CFNetwork -framework RevMobAds -framework SystemConfiguration -lFlurry_4.3.0 -framework CoreGraphics -framework StoreKit -framework Accounts -framework MediaPlayer -framework AudioToolbox -framework MessageUI -weak_framework AdSupport -framework iAd -framework Social -framework UIKit -framework Foundation -Xlinker -dependency_info -Xlinker /Users/Mike/Library/Developer/Xcode/DerivedData/Game_Count-hekdkbexjjzgzzaikucywmaarygl/Build/Intermediates/Game\ Count.build/Game\ Count-iphonesimulator/Game\ Count.build/Objects-normal/i386/Game\ Count_dependency_info.dat -o /Users/Mike/Library/Developer/Xcode/DerivedData/Game_Count-hekdkbexjjzgzzaikucywmaarygl/Build/Products/Game\ Count-iphonesimulator/Game\ Count.app/Game\ Count
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_FBWebDialogs", referenced from:
objc-class-ref in Scringo
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I have check all my framework dependancies and they are all there. I have no idea to check which .m file is supposed to be included in the "Compile Sources" in Build Settings.
Any insight would be greatly appreciated.
Make sure you're using the latest Facebook SDK (or at least 3.5) when using the latest Scringo versions.
It is probably some mismatch in the library versions.
Select your target from TARGETS and go to Build Phases > Compile Sources > Link Binary With Libraries section.
Check if Scringo Framework is there. If not add it.
If it is, then it looks like your updated Scringo SDK is not compiled for i386 architecture which iOS Simulator has.
I am getting the following error framework not found -fobjc-arc while compiling an iOS app that previously worked fine. I have no idea what framework it cannot find. Does anyone know where I could track this down? thanks.
Ld /Users/baz/Library/Developer/Xcode/DerivedData/ConverserApp-awrbvmghzyuomheukcqjzijxvnai/Build/Products/Debug-iphoneos/ConverserApp.app/ConverserApp normal armv7
cd /Users/baz/Dropbox/Code/_clients/Converser/ConverserApp
setenv IPHONEOS_DEPLOYMENT_TARGET 6.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 armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk -L/Users/baz/Library/Developer/Xcode/DerivedData/ConverserApp-awrbvmghzyuomheukcqjzijxvnai/Build/Products/Debug-iphoneos -L/Users/baz/Dropbox/Code/_clients/Converser/ConverserApp/../mobile-api-docs.2/converser-canary -L/Users/baz/Dropbox/Code/_clients/Converser/ConverserApp/Libs/Converser -F/Users/baz/Library/Developer/Xcode/DerivedData/ConverserApp-awrbvmghzyuomheukcqjzijxvnai/Build/Products/Debug-iphoneos -F/Applications/Reveal.app/Contents/SharedSupport/iOS-Libraries -filelist /Users/baz/Library/Developer/Xcode/DerivedData/ConverserApp-awrbvmghzyuomheukcqjzijxvnai/Build/Intermediates/ConverserApp.build/Debug-iphoneos/ConverserApp.build/Objects-normal/armv7/ConverserApp.LinkFileList -dead_strip -ObjC -framework -fobjc-arc -fobjc-link-runtime -miphoneos-version-min=6.1 -framework SystemConfiguration -framework MessageUI -framework QuartzCore -framework UIKit -framework Foundation -framework CoreGraphics -lz -framework Reveal -lVGConversationKit_universal -o /Users/baz/Library/Developer/Xcode/DerivedData/ConverserApp-awrbvmghzyuomheukcqjzijxvnai/Build/Products/Debug-iphoneos/ConverserApp.app/ConverserApp
ld: framework not found -fobjc-arc
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Go to Projects--->Targets---->Build Settings--->Other Linker Flags. Click on the value side and make sure there are no extraneous [ -framework ] values. If so, delete them. Notice the pattern of line [-framework], next line has a framework in quotes, next line has [-framework]. Etc. It should never end with a -framework, nor have extras. These linker flags happen after compile and make sure that the binary is linked with necessary frameworks.
It's not a real framework - your command line contains this bit:
-framework -fobjc-arc
Which is wrong - the -framework flag should be followed by a framework name, not by another flag. You need to find out where that extra -framework is coming from. There are several correct -framework flags in that command too - notice that they all have a framework name included: -framework MessageUI -framework QuartzCore -framework UIKit -framework Foundation -framework CoreGraphics
So i upgraded to Xcode 4.6 but i'm having problems. I can build and run program with no problem but when i try to create archive i get that error:
Ld /Users/me/Library/Developer/Xcode/DerivedData/ZM-dezzadmbbhmnbdehrgfgxsvipnzu/Build/Intermediates/ArchiveIntermediates/ZM/IntermediateBuildFilesPath/ZM.build/Release-iphoneos/ZM.build/Objects-normal/armv7s/ZM normal armv7s
cd /Users/me/Desktop/zav-mb-iphone-test
setenv IPHONEOS_DEPLOYMENT_TARGET 4.2
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.1.sdk -L/Users/mitjaresek/Library/Developer/Xcode/DerivedData/ZM-dezzadmbbhmnbdehrgfgxsvipnzu/Build/Intermediates/ArchiveIntermediates/ZM/BuildProductsPath/Release-iphoneos -L/Users/mitjaresek/Desktop/zav-mb-iphone-test/ZBarSDK -F/Users/mitjaresek/Library/Developer/Xcode/DerivedData/ZM-dezzadmbbhmnbdehrgfgxsvipnzu/Build/Intermediates/ArchiveIntermediates/ZM/BuildProductsPath/Release-iphoneos -filelist /Users/mitjaresek/Library/Developer/Xcode/DerivedData/ZM-dezzadmbbhmnbdehrgfgxsvipnzu/Build/Intermediates/ArchiveIntermediates/ZM/IntermediateBuildFilesPath/ZM.build/Release-iphoneos/ZM.build/Objects-normal/armv7s/ZM.LinkFileList -dead_strip -fobjc-arc -fobjc-link-runtime -miphoneos-version-min=4.2 -liconv -framework AVFoundation -framework CoreMedia -framework CoreVideo -framework AddressBook -framework AddressBookUI -framework AudioToolbox -framework QuartzCore -framework SystemConfiguration -framework MessageUI -framework CoreLocation -framework MapKit -framework UIKit -framework Foundation -framework CoreGraphics -lzbar -o /Users/mitjaresek/Library/Developer/Xcode/DerivedData/ZM-dezzadmbbhmnbdehrgfgxsvipnzu/Build/Intermediates/ArchiveIntermediates/ZM/IntermediateBuildFilesPath/ZM.build/Release-iphoneos/ZM.build/Objects-normal/armv7s/ZM
ld: file is universal (3 slices) but does not contain a(n) armv7s slice: /Users/me/iphone-test/ZBarSDK/libzbar.a for architecture armv7s
clang: error: linker command failed with exit code 1 (use -v to see invocation)
So how do i fix it?
I'm getting really annoyed by that upgrade...
I had a similar issue. For some bizarre reason, removing the entries for ArmV6 & 7, then re-entering them seemed to solve it:
I m getting the error when adding GData clientlibrary for photo uploading on Picasa
Error log is as follows
Ld /Users/Macintosh/Library/Developer/Xcode/DerivedData/PhotoYaar-ftppukpwhpkripftssebcboomfcx/Build/Products/Debug-iphonesimulator/PhotoYaar.app/PhotoYaar normal i386
cd "/Users/Macintosh/Desktop/Paras/Projects/Photo Yaary/01-02-2013/PhotoYar"
setenv MACOSX_DEPLOYMENT_TARGET 10.6
setenv PATH "/Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Volumes/Xcode/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Volumes/Xcode/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch i386 -isysroot /Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk -L/Users/Macintosh/Library/Developer/Xcode/DerivedData/PhotoYaar-ftppukpwhpkripftssebcboomfcx/Build/Products/Debug-iphonesimulator "-L/Users/Macintosh/Desktop/Paras/Projects/Photo Yaary/01-02-2013/PhotoYar/../../Data_Photo_App/GData-iOS-Static-Library-1.12-master" "-L/Users/Macintosh/Desktop/Paras/Projects/Photo Yaary/01-02-2013/PhotoYar/../../../../.." -F/Users/Macintosh/Library/Developer/Xcode/DerivedData/PhotoYaar-ftppukpwhpkripftssebcboomfcx/Build/Products/Debug-iphonesimulator "-F/Users/Macintosh/Desktop/Paras/Projects/Photo Yaary/01-02-2013/PhotoYar" -filelist /Users/Macintosh/Library/Developer/Xcode/DerivedData/PhotoYaar-ftppukpwhpkripftssebcboomfcx/Build/Intermediates/PhotoYaar.build/Debug-iphonesimulator/PhotoYaar.build/Objects-normal/i386/PhotoYaar.LinkFileList -mmacosx-version-min=10.6 -Xlinker -objc_abi_version -Xlinker 2 -all_load -lxml2 -ObjC -Xlinker -no_implicit_dylibs -D__IPHONE_OS_VERSION_MIN_REQUIRED=50100 /Users/Macintosh/Library/Developer/Xcode/DerivedData/PhotoYaar-ftppukpwhpkripftssebcboomfcx/Build/Products/Debug-iphonesimulator/libGPUImage.a -lGDataTouchStaticLib -framework Security -weak_library /Users/Macintosh/Library/Developer/Xcode/DerivedData/PhotoYaar-ftppukpwhpkripftssebcboomfcx/Build/Products/Debug-iphonesimulator/GData/GData -lxml2 -framework MobileCoreServices -framework CoreLocation -framework AddressBook -framework Accounts -framework CFNetwork -framework OpenAL -framework SystemConfiguration -lsqlite3.0 -framework ImageIO -framework CoreVideo -framework AssetsLibrary -framework CoreMedia -framework CoreMotion -framework MessageUI -framework Twitter -framework OpenGLES -framework AVFoundation -framework CoreImage -lz.1.1.3 -framework QuartzCore -framework UIKit -framework Foundation -framework CoreGraphics -o /Users/Macintosh/Library/Developer/Xcode/DerivedData/PhotoYaar-ftppukpwhpkripftssebcboomfcx/Build/Products/Debug-iphonesimulator/PhotoYaar.app/PhotoYaar
ld: file not found: /Users/Macintosh/Library/Developer/Xcode/DerivedData/PhotoYaar-ftppukpwhpkripftssebcboomfcx/Build/Products/Debug-iphonesimulator/GData/GData
clang: error: linker command failed with exit code 1 (use -v to see invocation)
How can i solve this?
i m using this url as a reference
http://hoishing.wordpress.com/2011/08/23/gdata-objective-c-client-setup-in-xcode-4/
The warning is that the linker is not finding the library to link against.
You'll need to fix your project so it can link to the library framework. Linking details are here.