Issues in using address book framework of IOS - ios

I am trying to use address framework in my project. I have linked the frameworks AddressBookUI.framework and AddressBook.framework in my project. But still i am getting the below error while building the app.
Help me to figure out the issue please.
Ld "/Users/sathishkumar/Library/Developer/Xcode/DerivedData/Easy_Contacts-eafemguogncacmhgnbfsjtizjcbd/Build/Products/Debug-iphonesimulator/Easy Contacts.app/Easy Contacts" normal i386
cd "/Users/sathishkumar/projects/Easy Contacts"
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/sathishkumar/Library/Developer/Xcode/DerivedData/Easy_Contacts-eafemguogncacmhgnbfsjtizjcbd/Build/Products/Debug-iphonesimulator -F/Users/sathishkumar/Library/Developer/Xcode/DerivedData/Easy_Contacts-eafemguogncacmhgnbfsjtizjcbd/Build/Products/Debug-iphonesimulator -filelist "/Users/sathishkumar/Library/Developer/Xcode/DerivedData/Easy_Contacts-eafemguogncacmhgnbfsjtizjcbd/Build/Intermediates/Easy Contacts.build/Debug-iphonesimulator/Easy Contacts.build/Objects-normal/i386/Easy Contacts.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 UIKit -framework Foundation -framework CoreGraphics -o "/Users/sathishkumar/Library/Developer/Xcode/DerivedData/Easy_Contacts-eafemguogncacmhgnbfsjtizjcbd/Build/Products/Debug-iphonesimulator/Easy Contacts.app/Easy Contacts"
Undefined symbols for architecture i386:
"_ABRecordCopyValue", referenced from:
-[ViewController displayPerson:] in ViewController.o
"_ABMultiValueGetCount", referenced from:
-[ViewController displayPerson:] in ViewController.o
"_ABMultiValueCopyValueAtIndex", referenced from:
-[ViewController displayPerson:] in ViewController.o
"_OBJC_CLASS_$_ABPeoplePickerNavigationController", referenced from:
objc-class-ref in ViewController.o
"_kABPersonFirstNameProperty", referenced from:
-[ViewController displayPerson:] in ViewController.o
"_kABPersonPhoneProperty", referenced from:
-[ViewController displayPerson:] in ViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Add <AddressBook/AddressBook.h> to the file, AddressBookUI is just that address book UI.

Did you import those frameworks into your .h files?

Related

Issues with archiving iOS project: libz.dylib not found

I have issues when making an archive from a (legacy) iOS project. While archiving I get the following error:
Libtool /Users/appcell/Library/Developer/Xcode/DerivedData/elho-ctuevlyyxtyssvblxkqezbfgdtyq/Build/Intermediates/ArchiveIntermediates/Elho/IntermediateBuildFilesPath/PSPDFKit-lib.build/Release-iphoneos/PSPDFKit.build/Objects-normal/armv7/libPSPDFKit.a normal armv7
cd /Users/appcell/Documents/Projects/Elho/Libraries/PSPDFKit
export IPHONEOS_DEPLOYMENT_TARGET=5.0
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -static -arch_only armv7 -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk -L/Users/appcell/Library/Developer/Xcode/DerivedData/elho-ctuevlyyxtyssvblxkqezbfgdtyq/Build/Intermediates/ArchiveIntermediates/Elho/BuildProductsPath/Release-iphoneos -filelist /Users/appcell/Library/Developer/Xcode/DerivedData/elho-ctuevlyyxtyssvblxkqezbfgdtyq/Build/Intermediates/ArchiveIntermediates/Elho/IntermediateBuildFilesPath/PSPDFKit-lib.build/Release-iphoneos/PSPDFKit.build/Objects-normal/armv7/PSPDFKit.LinkFileList /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk/usr/lib/libz.dylib -framework AssetsLibrary -framework CoreMedia -framework AVFoundation -framework ImageIO -framework MediaPlayer -framework CoreText -framework CoreGraphics -weak_framework UIKit -framework MessageUI -framework QuartzCore -framework Foundation -o /Users/appcell/Library/Developer/Xcode/DerivedData/elho-ctuevlyyxtyssvblxkqezbfgdtyq/Build/Intermediates/ArchiveIntermediates/Elho/IntermediateBuildFilesPath/PSPDFKit-lib.build/Release-iphoneos/PSPDFKit.build/Objects-normal/armv7/libPSPDFKit.a
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't open file: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk/usr/lib/libz.dylib (No such file or directory)
When I create a link frrom the /usr/lib/libz.dylib file to /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk/usr/lib (which used to work in the past), I now get the following error:
ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk/usr/lib/libz.dylib, missing required architecture armv7 in file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk/usr/lib/libz.dylib (2 slices)
Undefined symbols for architecture armv7:
"_deflateInit_", referenced from:
-[NSData(PSPDFCompression) pspdf_zlibDeflate] in libPSPDFKit.a(NSData+PSPDFCompression.o)
"_deflate", referenced from:
-[ASIDataCompressor compressBytes:length:error:shouldFinish:] in ASIDataCompressor.o
-[NSData(PSPDFCompression) pspdf_zlibDeflate] in libPSPDFKit.a(NSData+PSPDFCompression.o)
"_deflateInit2_", referenced from:
-[ASIDataCompressor setupStream] in ASIDataCompressor.o
"_inflate", referenced from:
_unzReadCurrentFile in unzip.o
-[ASIDataDecompressor uncompressBytes:length:error:] in ASIDataDecompressor.o
-[NSData(PSPDFCompression) pspdf_zlibInflate] in libPSPDFKit.a(NSData+PSPDFCompression.o)
"_get_crc_table", referenced from:
_unzOpenCurrentFile3 in unzip.o
"_inflateEnd", referenced from:
_unzCloseCurrentFile in unzip.o
-[ASIDataDecompressor closeStream] in ASIDataDecompressor.o
-[NSData(PSPDFCompression) pspdf_zlibInflate] in libPSPDFKit.a(NSData+PSPDFCompression.o)
"_crc32", referenced from:
_unzReadCurrentFile in unzip.o
"_inflateInit_", referenced from:
-[NSData(PSPDFCompression) pspdf_zlibInflate] in libPSPDFKit.a(NSData+PSPDFCompression.o)
"_deflateEnd", referenced from:
-[ASIDataCompressor closeStream] in ASIDataCompressor.o
-[NSData(PSPDFCompression) pspdf_zlibDeflate] in libPSPDFKit.a(NSData+PSPDFCompression.o)
"_inflateInit2_", referenced from:
_unzOpenCurrentFile3 in unzip.o
-[ASIDataDecompressor setupStream] in ASIDataDecompressor.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Has anyone ever had the same issues?
PSPDFKit founder here. Our PDF SDK uses libz, so either link with libz.dylib (which has been renamed in later Xcode versions to be libz.tbd) or add the linker flag -lz which should als do the trick.
If you update our SDK to the latest version this all happens automatically, since we're using a dynamic framework which already knows what dependencies it requires.

Linker command failed with exit code 1 (user -v to see invocation) (iOS 9)

I have been googling the above error for four days and can't find a solution that works for my project. This is my error log if any one has any ideas please respond. I am trying to make my project run. I am upgrading from Xcode 6 to Xcode 7 to iOS 9.
Ld /Users/pantelisnatsis/Library/Developer/Xcode/DerivedData/FirmaFinal-fgvuqoqtnzbydzfgwdnttvhzxftc/Build/Products/Debug-iphonesimulator/FirmaQuipux.app/FirmaQuipux normal i386
cd "/Users/pantelisnatsis/Downloads/RESPALDOFirmaIpad 3/RESPALDOFirmaIpad/FirmaFinal"
export IPHONEOS_DEPLOYMENT_TARGET=9.0
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/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/iPhoneSimulator9.0.sdk -L/Users/pantelisnatsis/Library/Developer/Xcode/DerivedData/FirmaFinal-fgvuqoqtnzbydzfgwdnttvhzxftc/Build/Products/Debug-iphonesimulator -L/Users/pantelisnatsis/Downloads/RESPALDOFirmaIpad\ 3/RESPALDOFirmaIpad/FirmaFinal -F/Users/pantelisnatsis/Library/Developer/Xcode/DerivedData/FirmaFinal-fgvuqoqtnzbydzfgwdnttvhzxftc/Build/Products/Debug-iphonesimulator -filelist /Users/pantelisnatsis/Library/Developer/Xcode/DerivedData/FirmaFinal-fgvuqoqtnzbydzfgwdnttvhzxftc/Build/Intermediates/FirmaFinal.build/Debug-iphonesimulator/FirmaFinal.build/Objects-normal/i386/FirmaQuipux.LinkFileList -mios-simulator-version-min=9.0 -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -framework AVFoundation -framework AudioToolbox -framework QuartzCore -framework Security -framework CoreGraphics -framework Foundation -framework UIKit -lcrypto -lchilkatIos -lssl -Xlinker -dependency_info -Xlinker /Users/pantelisnatsis/Library/Developer/Xcode/DerivedData/FirmaFinal-fgvuqoqtnzbydzfgwdnttvhzxftc/Build/Intermediates/FirmaFinal.build/Debug-iphonesimulator/FirmaFinal.build/Objects-normal/i386/FirmaQuipux_dependency_info.dat -o /Users/pantelisnatsis/Library/Developer/Xcode/DerivedData/FirmaFinal-fgvuqoqtnzbydzfgwdnttvhzxftc/Build/Products/Debug-iphonesimulator/FirmaQuipux.app/FirmaQuipux
ld: warning: ignoring file /Users/pantelisnatsis/Downloads/RESPALDOFirmaIpad 3/RESPALDOFirmaIpad/FirmaFinal/libcrypto.a, file was built for archive which is not the architecture being linked (i386): /Users/pantelisnatsis/Downloads/RESPALDOFirmaIpad 3/RESPALDOFirmaIpad/FirmaFinal/libcrypto.a
ld: warning: ignoring file /Users/pantelisnatsis/Downloads/RESPALDOFirmaIpad 3/RESPALDOFirmaIpad/FirmaFinal/libchilkatIos.a, missing required architecture i386 in file /Users/pantelisnatsis/Downloads/RESPALDOFirmaIpad 3/RESPALDOFirmaIpad/FirmaFinal/libchilkatIos.a (2 slices)
ld: warning: ignoring file /Users/pantelisnatsis/Downloads/RESPALDOFirmaIpad 3/RESPALDOFirmaIpad/FirmaFinal/libssl.a, file was built for archive which is not the architecture being linked (i386): /Users/pantelisnatsis/Downloads/RESPALDOFirmaIpad 3/RESPALDOFirmaIpad/FirmaFinal/libssl.a
Undefined symbols for architecture i386:
"_ASN1_STRING_data", referenced from:
_CertificateGetIssuerInfo in MainViewController.o
_CertificateGetInfo in MainViewController.o
_CertificateGetExpiryDate in MainViewController.o
"_ASN1_TIME_to_generalizedtime", referenced from:
_CertificateGetExpiryDate in MainViewController.o
"_ASN1_get_object", referenced from:
_obtener_extension in MainViewController.o
"_OBJC_CLASS_$_CkoCertStore", referenced from:
objc-class-ref in MainViewController.o
"_OBJC_CLASS_$_CkoCrypt2", referenced from:
objc-class-ref in MainViewController.o
"_OBJ_obj2nid", referenced from:
_obtener_extension in MainViewController.o
"_OBJ_obj2txt", referenced from:
_obtener_extension in MainViewController.o
"_OBJ_txt2nid", referenced from:
_CertificateGetIssuerInfo in MainViewController.o
_CertificateGetInfo in MainViewController.o
"_X509_EXTENSION_get_data", referenced from:
_obtener_extension in MainViewController.o
"_X509_NAME_ENTRY_get_data", referenced from:
_CertificateGetIssuerInfo in MainViewController.o
_CertificateGetInfo in MainViewController.o
"_X509_NAME_get_entry", referenced from:
_CertificateGetIssuerInfo in MainViewController.o
_CertificateGetInfo in MainViewController.o
"_X509_NAME_get_index_by_NID", referenced from:
_CertificateGetIssuerInfo in MainViewController.o
_CertificateGetInfo in MainViewController.o
"_X509_get_ext", referenced from:
_obtener_extension in MainViewController.o
"_X509_get_ext_count", referenced from:
_obtener_extension in MainViewController.o
"_X509_get_issuer_name", referenced from:
_CertificateGetIssuerInfo in MainViewController.o
"_X509_get_subject_name", referenced from:
_CertificateGetInfo in MainViewController.o
"_d2i_X509", referenced from:
-[MainViewController ejecutarAccion:::::::] in MainViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
You have a some libraries linked against your application that do not have an i386 architecture slice in them. These are the libraries it is complaining about:
libcrypto.a
libchilkatIos.a
libssl.a
You either need to include versions of these libraries that include machine code for all the architectures of your target (simulator is i386 or x86-64, iOS device is going to be some arm instruction set like arm7vs or arm64), or you need to restrict your target's architectures to match what is available in your dependent libraries.
There are three linker warnings, 15+ Undefined symbols for architecture i386.
ld: warning: ignoring file /Users/pantelisnatsis/Downloads/RESPALDOFirmaIpad 3/RESPALDOFirmaIpad/FirmaFinal/libcrypto.a, file was built for archive which is not the architecture being linked (i386): /Users/pantelisnatsis/Downloads/RESPALDOFirmaIpad 3/RESPALDOFirmaIpad/FirmaFinal/libcrypto.a
ld: warning: ignoring file /Users/pantelisnatsis/Downloads/RESPALDOFirmaIpad 3/RESPALDOFirmaIpad/FirmaFinal/libchilkatIos.a, missing required architecture i386 in file /Users/pantelisnatsis/Downloads/RESPALDOFirmaIpad 3/RESPALDOFirmaIpad/FirmaFinal/libchilkatIos.a (2 slices)
ld: warning: ignoring file /Users/pantelisnatsis/Downloads/RESPALDOFirmaIpad 3/RESPALDOFirmaIpad/FirmaFinal/libssl.a, file was built for archive which is not the architecture being linked (i386): /Users/pantelisnatsis/Downloads/RESPALDOFirmaIpad 3/RESPALDOFirmaIpad/FirmaFinal/libssl.a
libcrypto.a, libchilkatIos.a, libssl.a
The final error which is fairly self explanatory:
ld: symbol(s) not found for architecture i386
These are i386 which indicates you are building for the simulator which is i386 bases since it is a Mac app.
You must get/add i386 libraries for the simulator.
Looks like libcrypo is not built for all devices, not sure where you are getting your library from, check to make sure that they have a build that is built for al l device, if you are building this lib yourself, then you need to make builds for all the architicectuers and sure you link them all together

Cordova in iOS 8 and Xcode 6

I've just updated to Xcode 6 in order to submit my apps for review on the iOS app store and have come across more problems. Please see the image attached! Any help at all would be amazing.
Build target CRS
Ld /Users/jacbeyportes/Library/Developer/Xcode/DerivedData/CRS-fydzgpcksptwdjaztipsuhofllde/Build/Intermediates/CRS.build/Debug-iphoneos/CRS.build/Objects-normal/armv7/CRS normal armv7
cd "/Users/jacbeyportes/Documents/Oasis Websites/Cadet Registration System/Apps/iOS/CRS/platforms/ios"
export IPHONEOS_DEPLOYMENT_TARGET=6.0
export 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/iPhoneOS8.0.sdk -L/Users/jacbeyportes/Library/Developer/Xcode/DerivedData/CRS-fydzgpcksptwdjaztipsuhofllde/Build/Products/Debug-iphoneos -F/Users/jacbeyportes/Library/Developer/Xcode/DerivedData/CRS-fydzgpcksptwdjaztipsuhofllde/Build/Products/Debug-iphoneos -filelist /Users/jacbeyportes/Library/Developer/Xcode/DerivedData/CRS-fydzgpcksptwdjaztipsuhofllde/Build/Intermediates/CRS.build/Debug-iphoneos/CRS.build/Objects-normal/armv7/CRS.LinkFileList -dead_strip -weak_framework CoreFoundation -weak_framework UIKit -weak_framework AVFoundation -weak_framework CoreMedia -weak-lSystem -force_load /Users/jacbeyportes/Library/Developer/Xcode/DerivedData/CRS-fydzgpcksptwdjaztipsuhofllde/Build/Products/Debug-iphoneos/libCordova.a -ObjC -fobjc-arc -fobjc-link-runtime -miphoneos-version-min=6.0 -framework AssetsLibrary /Users/jacbeyportes/Library/Developer/Xcode/DerivedData/CRS-fydzgpcksptwdjaztipsuhofllde/Build/Products/Debug-iphoneos/libCordova.a -framework CoreGraphics -framework MobileCoreServices -framework CoreLocation -liconv -framework AVFoundation -framework CoreVideo -framework QuartzCore -weak_framework SystemConfiguration -Xlinker -dependency_info -Xlinker /Users/jacbeyportes/Library/Developer/Xcode/DerivedData/CRS-fydzgpcksptwdjaztipsuhofllde/Build/Intermediates/CRS.build/Debug-iphoneos/CRS.build/Objects-normal/armv7/CRS_dependency_info.dat -o /Users/jacbeyportes/Library/Developer/Xcode/DerivedData/CRS-fydzgpcksptwdjaztipsuhofllde/Build/Intermediates/CRS.build/Debug-iphoneos/CRS.build/Objects-normal/armv7/CRS
ld: warning: ignoring file /Users/jacbeyportes/Library/Developer/Xcode/DerivedData/CRS-fydzgpcksptwdjaztipsuhofllde/Build/Products/Debug-iphoneos/libCordova.a, file was built for archive which is not the architecture being linked (armv7): /Users/jacbeyportes/Library/Developer/Xcode/DerivedData/CRS-fydzgpcksptwdjaztipsuhofllde/Build/Products/Debug-iphoneos/libCordova.a
Undefined symbols for architecture armv7:
"_OBJC_METACLASS_$_CDVPlugin", referenced from:
_OBJC_METACLASS_$_PushPlugin in PushPlugin.o
_OBJC_METACLASS_$_CDVBarcodeScanner in CDVBarcodeScanner.o
_OBJC_METACLASS_$_CDVConnection in CDVConnection.o
"_CDVLocalNotification", referenced from:
-[AppDelegate application:didReceiveLocalNotification:] in AppDelegate.o
"_OBJC_CLASS_$_CDVViewController", referenced from:
_OBJC_CLASS_$_MainViewController in MainViewController.o
"_OBJC_METACLASS_$_CDVCommandDelegateImpl", referenced from:
_OBJC_METACLASS_$_MainCommandDelegate in MainViewController.o
"_CDVRemoteNotification", referenced from:
-[AppDelegate application:didRegisterForRemoteNotificationsWithDeviceToken:] in AppDelegate.o
"_OBJC_CLASS_$_CDVCommandQueue", referenced from:
_OBJC_CLASS_$_MainCommandQueue in MainViewController.o
"_OBJC_CLASS_$_CDVPlugin", referenced from:
_OBJC_CLASS_$_PushPlugin in PushPlugin.o
_OBJC_CLASS_$_CDVBarcodeScanner in CDVBarcodeScanner.o
_OBJC_CLASS_$_CDVConnection in CDVConnection.o
"_CDVRemoteNotificationError", referenced from:
-[AppDelegate application:didFailToRegisterForRemoteNotificationsWithError:] in AppDelegate.o
"_OBJC_METACLASS_$_CDVViewController", referenced from:
_OBJC_METACLASS_$_MainViewController in MainViewController.o
"_OBJC_METACLASS_$_CDVCommandQueue", referenced from:
_OBJC_METACLASS_$_MainCommandQueue in MainViewController.o
"_CDVPluginHandleOpenURLNotification", referenced from:
-[AppDelegate application:openURL:sourceApplication:annotation:] in AppDelegate.o
"_OBJC_CLASS_$_CDVPluginResult", referenced from:
objc-class-ref in PushPlugin.o
objc-class-ref in CDVBarcodeScanner.o
objc-class-ref in CDVConnection.o
"_OBJC_CLASS_$_CDVCommandDelegateImpl", referenced from:
_OBJC_CLASS_$_MainCommandDelegate in MainViewController.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
You will need to update both Cordova and your plugins.
Here is the news on Cordova moving to 3.6.3
http://cordova.apache.org/announcements/2014/09/22/cordova-361.html
Here is the same regarding the plugins that were updated
http://cordova.apache.org/news/2014/09/22/plugins-release.html
Then update your project
cordova platform update ios
However, I've also run into some issues but it was fixed by removing the platform and adding it again.. You can do that by:
cordova platform remove ios
cordova platform add ios
I had to uninstall cordova and reinstall cordova (version 3.6.3). Then I removed the iOS platform from my project folder and readded it. I also removed and re-added each cordova plugin.
It was a pain, but that fixed my compile issues for me.

Apple Mach-O Linker Errors

I was wondering what I should do to fix these linker errors...
Ld ... normal armv7
cd ...
setenv IPHONEOS_DEPLOYMENT_TARGET 7.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/iPhoneOS7.0.sdk -L...-esjhccmwalrxrdfeduounwwkhaef/Build/Products/Debug-iphoneos -F ...-esjhccmwalrxrdfeduounwwkhaef/Build/Products/Debug-iphoneos -filelist ...-esjhccmwalrxrdfeduounwwkhaef/Build/Intermediates/... -dead_strip -fobjc-arc -fobjc-link-runtime -miphoneos-version-min=7.0 -framework AVFoundation -framework UIKit -framework Foundation -framework CoreGraphics -Xlinker -dependency_info -Xlinker ...
Undefined symbols for architecture armv7:
"_kCVPixelBufferPixelFormatTypeKey", referenced from:
-[MyAVController setupCapture] in AVController.o
"_CATransform3DIdentity", referenced from:
-[MyAVController setupCapture] in AVController.o
"_CMSampleBufferGetImageBuffer", referenced from:
-[MyAVController captureOutput:didOutputSampleBuffer:fromConnection:] in AVController.o
"_kCAGravityResizeAspectFill", referenced from:
-[MyAVController setupCapture] in AVController.o
"_CVPixelBufferLockBaseAddress", referenced from:
-[MyAVController captureOutput:didOutputSampleBuffer:fromConnection:] in AVController.o
"_CVPixelBufferGetWidth", referenced from:
-[MyAVController captureOutput:didOutputSampleBuffer:fromConnection:] in AVController.o
"_CVPixelBufferGetBytesPerRow", referenced from:
-[MyAVController captureOutput:didOutputSampleBuffer:fromConnection:] in AVController.o
"_CVPixelBufferGetBaseAddress", referenced from:
-[MyAVController captureOutput:didOutputSampleBuffer:fromConnection:] in AVController.o
"_CATransform3DRotate", referenced from:
-[MyAVController setupCapture] in AVController.o
"_OBJC_CLASS_$_CALayer", referenced from:
objc-class-ref in AVController.o
"_CVPixelBufferGetHeight", referenced from:
-[MyAVController captureOutput:didOutputSampleBuffer:fromConnection:] in AVController.o
"_CVPixelBufferUnlockBaseAddress", referenced from:
-[MyAVController captureOutput:didOutputSampleBuffer:fromConnection:] in AVController.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I know I need to add some framework, but I can't figure out what.
If you need any additional info, I can provide it.
Thanks!
Looks like you're forgetting to import some frameworks into your project: namely the AVFoundation framework.
Seems like you didn't import frameworks
if you don't know how to do so
here is a step by step guide
Yous should add CoreVideo , CoreMedia frameworks and AVFoundation.
http://thinketg.com/xcode-4-tips-adding-frameworks-to-your-project/

Coreplot for implementing barchart

Am implementing barchart using coreplot...am getting the errors bellow which am unable to debug. Can anybody please help me out with the solution for this..Tried all ways but still couldn find the solution.
Ld /Users/MacMini/Library/Developer/Xcode/DerivedData/DashBoard-cmeoxsnbrnrzrkcwmgmfxqlfuzvo/Build/Products/Debug-iphonesimulator/DashBoard.app/DashBoard normal i386
cd /Users/MacMini/Desktop/DashBoard
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/iPhoneSimulator4.3.sdk -L/Users/MacMini/Library/Developer/Xcode/DerivedData/DashBoard-cmeoxsnbrnrzrkcwmgmfxqlfuzvo/Build/Products/Debug-iphonesimulator -L/Users/MacMini/Desktop/DashBoard -F/Users/MacMini/Library/Developer/Xcode/DerivedData/DashBoard-cmeoxsnbrnrzrkcwmgmfxqlfuzvo/Build/Products/Debug-iphonesimulator -F/Users/MacMini/Desktop/DashBoard -filelist /Users/MacMini/Library/Developer/Xcode/DerivedData/DashBoard-cmeoxsnbrnrzrkcwmgmfxqlfuzvo/Build/Intermediates/DashBoard.build/Debug-iphonesimulator/DashBoard.build/Objects-normal/i386/DashBoard.LinkFileList -mmacosx-version-min=10.6 -ObjC -all_load -Xlinker -objc_abi_version -Xlinker 2 -framework QuartzCore -lCorePlot-CocoaTouch -framework UIKit -framework Foundation -framework CoreGraphics -o /Users/MacMini/Library/Developer/Xcode/DerivedData/DashBoard-cmeoxsnbrnrzrkcwmgmfxqlfuzvo/Build/Products/Debug-iphonesimulator/DashBoard.app/DashBoard
Undefined symbols for architecture i386:
"_CPTDecimalFromDouble", referenced from:
-[Barchart viewDidLoad] in Barchart.o
"_OBJC_CLASS_$_CPTGraphHostingView", referenced from:
objc-class-ref in Barchart.o
"_OBJC_CLASS_$_CPTXYGraph", referenced from:
objc-class-ref in Barchart.o
"_OBJC_CLASS_$_CPTPlotRange", referenced from:
objc-class-ref in Barchart.o
"_OBJC_CLASS_$_CPTBarPlot", referenced from:
objc-class-ref in Barchart.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
This page (in the comments section) may help you with that: http://code.google.com/p/core-plot/wiki/UsingCorePlotInApplications
And this is a previous Stack Overflow question that looks like yours:
Using Core Plot iPhone - Linker error
Here are some fixes I found on the pages above:
In CorePlot-CocoaTouch project settings, change iOS Deployment Target to 3.2
change Build Active Architecture Only to No for all configurations
change C/C++ Compiler Version from GCC 4.2 to LLVM GCC 4.2
Reinstall Core-Plot after downloading its latest stable version

Resources