GitHub Sample iOS App will not build

Hello,

Just downloaded the sample iOS app from GitHub and it will not build.  I'm using Xcode 6.0.1

I'm getting:

Undefined symbols for architecture i386: _OBJC_CLASS_$_MBLMetaWearManager", referenced from:


So it appears that it's having trouble linking to the MetaWear framework - is this correct?  The framework is clearly present in the project and listed in Link Binaries with Libraries.

Complete error

Undefined symbols for architecture x86_64:

  "_OBJC_CLASS_$_MBLMetaWearManager", referenced from:

      objc-class-ref in DeviceDetailViewController.o

      objc-class-ref in DevicesTableViewController.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 appreciated.

Comments

  • You are attempting to build for the simulator or for a device older than an iPhone 4S; this means you are trying to compile for something that does not support Bluetooth.

    Please try to compile your project for a new Device (NOT THE SIMULATOR OR AN OLD IOS DEVICE).
  • Thanks Laura.

    Turns out I need to have the iPhone plugged in.  I was targeting iPhone 6

    Embarrassing.  I was getting errors and would Cmd + B to build.  I was not trying to run on simulator - just build and compile.  I researched before I posted and saw folks saying it cannot run in simulator but in my mind I was not trying to do that.  Learn something every day...
This discussion has been closed.