Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MPVolumeView and iOS 5

I am trying to make a slider to control device volume. Previously I have accomplished this with MPVolumeView, but since iOS 5 I get the following error on build:

Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_MPVolumeView", referenced from:
  objc-class-ref in PlayerViewController.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Can someone please tell me what is the problem or is there another way to control devices volume.

Thanks in advance!

like image 647
reggian Avatar asked Apr 13 '26 16:04

reggian


1 Answers

You need to make sure that you link against the MediaPlayer.framework

like image 172
hypercrypt Avatar answered Apr 16 '26 10:04

hypercrypt



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!