0

From this link MediaLibDemos3x , I downloaded source code and I am running it in X-Code 6.3.2 but I am getting following two errors . Can any one check it please give me a solution?

Error 1-

Undefined symbols for architecture i386:
  "_OBJC_CLASS_$_BroadcastStreamClient", referenced from:
      objc-class-ref in ViewController.o

Error 2-

ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Sushil Sharma
  • 2,321
  • 3
  • 29
  • 49
Karthik Mandava
  • 507
  • 1
  • 14
  • 27

2 Answers2

1

Undefined symbols for architecture i386

You can get this type of error if your class' .m file is not listed under the "Compile Sources" step of the "Build Phases" tab of your target.

To do this: Target Settings -> Build Phases -> Compile Sources -> add your .m class ->Build and Run

run your app on device.

Paras vora
  • 192
  • 12
1

It seems the included library are not compiled for i386 (or simulators) so you must run code on real device. See author comment here and here

ares777
  • 3,590
  • 1
  • 22
  • 23