XCode 7.3 - Undefined symbols for architecture x86_64:

I updated to xCode 7.3 and am now getting these errors on build attempts (it was building fine before the update):

ld: warning: ignoring file /IOS Development/Projects/ProjectName/Pods/Metawear-iOSAPI/MetaWear.framework/MetaWear, missing required architecture x86_64 in file /IOS Development/Projects/ProjectName/Pods/Metawear-iOSAPI/MetaWear.framework/MetaWear (2 slices)
Undefined symbols for architecture x86_64:
  "_OBJC_CLASS_$_MBLAccelerometerMMA8452Q", referenced from:
      ProjectName.DeviceViewController.setup () -> () in DeviceViewController.o
      type metadata accessor for __ObjC.MBLAccelerometerMMA8452Q in DeviceViewController.o
      ProjectName.HarmonicsViewController.streamData () -> () in HarmonicsViewController.o
      type metadata accessor for __ObjC.MBLAccelerometerMMA8452Q in HarmonicsViewController.o
      ProjectName.LateralDisplaceViewController.setup () -> () in LateralDisplaceViewController.o
      type metadata accessor for __ObjC.MBLAccelerometerMMA8452Q in LateralDisplaceViewController.o
      ProjectName.OpDataViewController.setup () -> () in OpDataViewController.o
      ...
  "_OBJC_CLASS_$_MBLMetaWear", referenced from:
      type metadata accessor for __ObjC.MBLMetaWear in DeviceViewController.o
      type metadata accessor for __ObjC.MBLMetaWear in HarmonicsViewController.o
      type metadata accessor for __ObjC.MBLMetaWear in ScanTableViewController.o
      type metadata accessor for __ObjC.MBLMetaWear in DeviceInfoViewController.o
      ProjectName.MainTableViewController.prepareForSegue (__ObjC.UIStoryboardSegue, sender : Swift.AnyObject?) -> () in MainTableViewController.o
      type metadata accessor for __ObjC.MBLMetaWear in MainTableViewController.o
      type metadata accessor for __ObjC.MBLMetaWear in LateralDisplaceViewController.o
      ...
  "_OBJC_CLASS_$_MBLMetaWearManager", referenced from:
      type metadata accessor for __ObjC.MBLMetaWearManager in ScanTableViewController.o
      type metadata accessor for __ObjC.MBLMetaWearManager in MainTableViewController.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)


Any help is appreciated - thanks!

Comments

  • Since you can't use bluetooth in the simulator, you are required to run on a physical device.  The "missing required architecture x86_64" indicates it's trying to compile for the simulator.  Please compile and run on an iOS Device.

    Thanks!
  • Oh ok, I thought that was just to debug/ run not just to build (and not run) too - thanks!
This discussion has been closed.