Linker command failed with exit code 1 on my Swift app - ios

Can't figure this out. Tried making a completely new project and it still doesn't work. This app uses GoogleMaps. Error below:
Undefined symbols for architecture i386:
"_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 GoogleMaps(PEBeacon.o)
objc-class-ref in GoogleMaps(PEBeaconScanner.o) "_vImageBoxConvolve_Planar8", referenced from:
(anonymous namespace)::CreateBlurredImage(CGImage*, float, float) in GoogleMaps(GLWaterGroup.o) ld: symbol(s) not found for
architecture i386 clang: error: linker command failed with exit code 1
(use -v to see invocation)

Try importing CoreBluetooth.framework and Accelerate.framework. Also use "-ObjC" instead of "-all_load" in under "Other Linker Flags".
You can refer colink's reply in GoogleMapsSDK : Undefined symbols for architecture x86_64

Related

CORDOVA Error build ios Undefined symbols for architecture x86_64

I'm working on a cordova app, not developed by me. during build I get the following error:
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$\_TTIdentity", referenced from:
objc-class-ref in TokenTrust.o
"_OBJC_CLASS_$\_TTIdentityProvider", referenced from:
objc-class-ref in TokenTrust.o
"_OBJC_CLASS_$\_TTOfflineTransactionUrlParams", referenced from:
objc-class-ref in TokenTrust.o
"_OBJC_CLASS_$\_TTSecureOfflineActivationLaunchUrlParams", referenced from:
objc-class-ref in TokenTrust.o
"_OBJC_CLASS_$\_TTSoftTokenSDK", referenced from:
objc-class-ref in TokenTrust.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Having no experience in cordova I don't know how to correct the error.

How do I debug requirements for Google-Mobile-Ads-Sdk?

I'm getting undefined architecture error. For other frameworks I can read in documentation what is required.
For Google-Mobile-Ads-SDK, their sample app has no libraries linked.
How do I debug what frameworks are needed?
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_GADRequest", referenced from:
objc-class-ref in MainScene.o
"_OBJC_CLASS_$_GADBannerView", referenced from:
objc-class-ref in MainScene.o
"_OBJC_CLASS_$_GADMobileAds", referenced from:
objc-class-ref in MainScene.o
"_kGADSimulatorID", referenced from:
-[MainScene init] in MainScene.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Swift Xcode Error : Apple Mach-O Linker Error

Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_PFLogInViewController", referenced from:
__TMaCSo21PFLogInViewController in ViewController.o
"_OBJC_CLASS_$_PFSignUpViewController", referenced from:
__TMaCSo22PFSignUpViewController in ViewController.o
"_OBJC_CLASS_$_PFUser", referenced from:
__TMaCSo6PFUser in LoginViewController.o
__TMaCSo6PFUser in ViewController.o
__TMaCSo6PFUser in signUpViewController.o
"_OBJC_CLASS_$_Parse", referenced from:
__TMaCSo5Parse in AppDelegate.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I'm having Apple Mach-O Linker Error from
1) "_OBJC_CLASS_$_PFLogInViewController", referenced from:
2) "_OBJC_CLASS_$_PFSignUpViewController", referenced from:
3) "_OBJC_CLASS_$_PFUser", referenced from:
4) "_OBJC_CLASS_$_Parse", referenced from:
5) linker command failed with exit code 1 (use -v to see invocation)
Can i know what is Apple Mach-O Linker Error and the way to solve this error ?
Clean build your project. Rebuild.

Zebra Link OS SDK with Cordova (Phonegap) on IOS

I'm trying to generate a plugin for Cordova (Phonegap) for the Zebra SDK (https://www.zebra.com/us/en/products/software/barcode-printers/zebralink/zebralink-multiplatform-sdk.html), to print via bluetooth.
I've created a new Cordova project and refereneced the SDK. On build I recieve these errors :
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_EAAccessoryManager", referenced from:
objc-class-ref in CordovaZebraPrint.o
"_OBJC_CLASS_$_MfiBtPrinterConnection", referenced from:
objc-class-ref in CordovaZebraPrint.o
ld: symbol(s) not found for architecture x86_64
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_EAAccessoryManager", referenced from:
objc-class-ref in CordovaZebraPrint.o
"_OBJC_CLASS_$_MfiBtPrinterConnection", referenced from:
objc-class-ref in CordovaZebraPrint.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_EAAccessoryManager", referenced from:
objc-class-ref in CordovaZebraPrint.o
"_OBJC_CLASS_$_MfiBtPrinterConnection", referenced from:
objc-class-ref in CordovaZebraPrint.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Is there a particular version of the SDK I need to be using or is this something I can fix in my XCode project?

Apple Mach-O : Undefined symbols for architecture i386: in PhoneGap Cordova 2.9.1

I am new in phonegap app development in iOS. After adding CordovaLib.xcodeproj in my xcode project, I made architecture changes in buildsettings as suggested here. Other linker flag is -all_load and -Obj-C When I build the project, I get Apple Mach-O linker errors described below. I have not mentioned i386 anywhere in my build settings. How do I negate this error?
Undefined symbols for architecture i386:
"_CDVPluginHandleOpenURLNotification", referenced from:
-[AppDelegate application:handleOpenURL:] in AppDelegate.o
"_OBJC_CLASS_$_CDVPlugin", referenced from:
_OBJC_CLASS_$_LoginPlugin in LoginPlugin.o
"_OBJC_CLASS_$_CDVPluginResult", referenced from:
objc-class-ref in LoginPlugin.o
"_OBJC_CLASS_$_CDVViewController", referenced from:
_OBJC_CLASS_$_MainViewController in MainViewController.o
"_OBJC_METACLASS_$_CDVPlugin", referenced from:
_OBJC_METACLASS_$_LoginPlugin in LoginPlugin.o
"_OBJC_METACLASS_$_CDVViewController", referenced from:
_OBJC_METACLASS_$_MainViewController 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)

Resources