Tag: linker error

Apple Mach-O Linker Error armv7s & libGoogleAdMobAds.a

I’ve just upgraded my app to run on the new iPhone5 simulator, however when I try to build it for my iPhone 4S device, I get this Apple Mach-O Liner error. ld: file is universal (3 slices) but does not contain a(n) armv7s slice: /Users/Darren/Documents/Dev stuff/My App/GoogleAdMobAdsSDKiOS-5.0.5/libGoogleAdMobAds.a for architecture armv7s clang: error: linker command failed […]

'ld: file not found' after changing product name in Xcode

I was working on my application and i started out with a really bad name. So i decided to change it. I did that like this. At the top right corner i simply changed the name to what i want. and then i started getting the error as you can see there. Reveal in Log […]

Cannot add embedded binaries (other projects) to project dependencies in XCode

I have an XCode workspace created with XCode 6.0.1. It constains 2 (Swift) libraries and one iOS app (Swift) that depends on those 2 libraries. I had stable setup that allowed me to run the iOS app on both iPhone and simulators: The 2 library projects were added as Embedded Binaries (see picture) of the […]

APPLE MACH-O LINKED ERROR After adding AFNetworking

Just adding AFNetworking into my project, and after B&R here i got this error like: Undefined symbols for architecture i386: “_SecCertificateCopyData”, referenced from: -[AFURLConnectionOperation connection:willSendRequestForAuthenticationChallenge:] in AFURLConnectionOperation.o “_SecCertificateCreateWithData”, referenced from: ___44+[AFURLConnectionOperation pinnedPublicKeys]_block_invoke in AFURLConnectionOperation.o “_SecPolicyCreateBasicX509”, referenced from: ___44+[AFURLConnectionOperation pinnedPublicKeys]_block_invoke in AFURLConnectionOperation.o -[AFURLConnectionOperation connection:willSendRequestForAuthenticationChallenge:] in AFURLConnectionOperation.o “_SecTrustCopyPublicKey”, referenced from: ___44+[AFURLConnectionOperation pinnedPublicKeys]_block_invoke in AFURLConnectionOperation.o -[AFURLConnectionOperation connection:willSendRequestForAuthenticationChallenge:] in […]

Xcode gives Apple Mach-O linker error

I just compiled a project and Xcode returns these two errors which don’t seem to be my code’s fault. How do I fix them? Undefined symbols for architecture i386: “_vImageBoxConvolve_ARGB8888”, referenced from: -[UIImage(Blur) boxblurImageWithBlur:] in UIImage+Blur.o ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to […]

Xcode 7.2 bug: library not found for -lGoogleAnalyticsServices

I’m having an issue with Xcode 7.2 and the linker command. Since i added the google analitycs library WITHOUT POD, in my project, everytime y close the project and reopen it, i get this error. What i have to do to workaround this problem is remove the library reference and add it again, and all […]

GooglePlus with CocoaPods linking error

I added to my pod file pod ‘google-plus-ios-sdk’, ‘1.4.1’ I did a pod update I imported #import <GooglePlus/GooglePlus.h> But if i try to [GPPSignIn sharedInstance].clientID = kClientID; I get this error from linker: Undefined symbols for architecture i386: “_OBJC_CLASS_$_GPPSignIn”, referenced from: objc-class-ref in SDSocialManager.o ld: symbol(s) not found for architecture i386 clang: error: linker command […]

duplicate symbols for architecture x86_64 (Implementing FBSDKCoreKilt) Swift

This is the most horrifying error that I’ve dealt with so far. To be clear: This is in swift so it’s not a “.h” “.m” issue My compile sources is so tiny, there are no duplicates there. I have redownloaded the SDK several times but it never works. The project only has two frameworks in […]

Linker error when unit testing: ld: illegal text-relocation to cstring in … from _av_image_check_size in …/libavutil.a(imgutils.o)

In Xcode 4.3.2, building an iPad app, which includes libavutil.a from the ffmpeg distribution, it builds and runs correctly but when I try to run unit tests (Cmd-U) I get the following linker error: ld: illegal text-relocation to cstring in /myPath/libavutil.a(imgutils.o) from _av_image_check_size in /myPath/libavutil.a(imgutils.o) for architecture armv7 clang: error: linker command failed with exit […]

GoogleMapsSDK : Undefined symbols for architecture x86_64

I am trying to install the Google maps SDK and I am running through this error when running: Undefined symbols for architecture x86_64: “_CBAdvertisementDataManufacturerDataKey”, referenced from: -[GMSx_PEBeaconScanner centralManager:didDiscoverPeripheral:advertisementData:RSSI:] in GoogleMaps(PEBeaconScanner.o) “_CBAdvertisementDataServiceDataKey”, referenced from: -[GMSx_PEBeaconScanner centralManager:didDiscoverPeripheral:advertisementData:RSSI:] in GoogleMaps(PEBeaconScanner.o) “_CBCentralManagerScanOptionAllowDuplicatesKey”, referenced from: -[GMSx_PEBeaconScanner scanIfAppropriate] in GoogleMaps(PEBeaconScanner.o) “_OBJC_CLASS_$_CBCentralManager”, referenced from: objc-class-ref in GoogleMaps(PEBeaconScanner.o) “_OBJC_CLASS_$_CBUUID”, referenced from: objc-class-ref in […]