Compile an existing project with iOS-SDK

Hi, I’m trying to add estimote iOS-SDK (v3.4.0) on an existing project and I’m getting some errors about architecture 64.

This project worked successfully before adding estimote SDK.

Log:

Undefined symbols for architecture arm64:
  "_CBAdvertisementDataServiceUUIDsKey", referenced from:
      +[ESTDeviceDataHelper typeForName:packet:] in EstimoteSDK(ESTDeviceDataHelper.o)
      +[ESTEddystoneDataHelper parseAdvertisingData:] in EstimoteSDK(ESTEddystoneDataHelper.o)
  "_OBJC_CLASS_$_CBCentralManager", referenced from:
      objc-class-ref in EstimoteSDK(ESTBeaconDevice.o)
  "_OBJC_CLASS_$_CBUUID", referenced from:
      objc-class-ref in EstimoteSDK(ESTBeaconDevice.o)
      objc-class-ref in EstimoteSDK(ESTDeviceDataHelper.o)
      objc-class-ref in EstimoteSDK(ESTBluetoothServiceAuth.o)
      objc-class-ref in EstimoteSDK(ESTBluetoothServiceAuthCloud.o)
      objc-class-ref in EstimoteSDK(ESTBluetoothServiceEstimote.o)
      objc-class-ref in EstimoteSDK(ESTBluetoothServiceOta.o)
      objc-class-ref in EstimoteSDK(ESTBluetoothServiceSoftware.o)
      ...
  "_CBCentralManagerOptionShowPowerAlertKey", referenced from:
      -[ESTBeaconManager init] in EstimoteSDK(ESTBeaconManager.o)
  "_OBJC_CLASS_$_AddThisSDK", referenced from:
      objc-class-ref in ShareView.o
  "_CBAdvertisementDataServiceDataKey", referenced from:
      +[ESTBeaconDataHelper parseAdvertisingData:] in EstimoteSDK(ESTBeaconDataHelper.o)
      +[ESTEddystoneDataHelper parseAdvertisingData:] in EstimoteSDK(ESTEddystoneDataHelper.o)
  "_OBJC_CLASS_$_GAI", referenced from:
      objc-class-ref in CoreAppDelegate.o
      objc-class-ref in AugmentedRealityViewController.o
  "_OBJC_METACLASS_$_GAITrackedViewController", referenced from:
      _OBJC_METACLASS_$_AdviceTableViewController in AdviceTableViewController.o
      _OBJC_METACLASS_$_PhotoCollectionViewController in PhotoCollectionViewController.o
      _OBJC_METACLASS_$_EvenementsViewController in EvenementsViewController.o
      _OBJC_METACLASS_$_GalleryGenericViewController in GalleryGenericViewController.o
      _OBJC_METACLASS_$_MenuViewController in MenuViewController.o
      _OBJC_METACLASS_$_AccountContainerViewController in AccountContainerViewController.o
      _OBJC_METACLASS_$_GenericMapViewController in GenericMapViewController.o
      ...
  "_OBJC_CLASS_$_CameraService", referenced from:
      objc-class-ref in GenericMapViewController.o
      objc-class-ref in MapViewController.o
      objc-class-ref in CoreAppDelegate.o
      objc-class-ref in RadarView.o
      objc-class-ref in AugmentedRealityItemView.o
      objc-class-ref in AugmentedRealityViewController.o
  "_directionToGeographicCoordinatesDeg", referenced from:
      -[Circle toString] in Circle.o
      -[AugmentedRealityViewController viewWillAppear:] in AugmentedRealityViewController.o
  "_OBJC_CLASS_$_GAIDictionaryBuilder", referenced from:
      objc-class-ref in AssetCellView.o
      objc-class-ref in PubView.o
      objc-class-ref in DetailView.o
      objc-class-ref in ShareAdviceController.o
      objc-class-ref in SharePhotoController.o
  "_CBCentralManagerScanOptionAllowDuplicatesKey", referenced from:
      -[ESTBeaconDevice startScanning] in EstimoteSDK(ESTBeaconDevice.o)
      -[ESTBeaconDevice startScanningBkg] in EstimoteSDK(ESTBeaconDevice.o)
  "_OBJC_CLASS_$_CBPeripheralManager", referenced from:
      objc-class-ref in EstimoteSDK(ESTBeaconManager.o)

ld: symbol(s) not found for architecture arm64

Can you try adding Core Bluetooth to the list of Linked Frameworks and Libraries in your project’s settings? Usually, Xcode should link to it automatically (proved Link Frameworks Automatically is enabled in the Build Settings), maybe something didn’t quite work here.

Woohoo it’s work. Thanks!

1 Like