How to Fix Undefined Symbols for Architecture x86_64: “_OBJC_CLASS_$_AVAudioPlayer” Error

We are glad to announce that the new version 2.5.34 of PlugPDF SDK for iOS has been updated today. With it, now you can play Sound Annotations on your PDF pages by just tapping on them.

Nevertheless, in order to play sound resources the AVAudioPlayer class must be used in AVFoundation.framework.

Without AVFoundation.framework in your project, the Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_AVAudioPlayer" error may be thrown as illustrated below.

Screenshot 2015-01-24 00.55.44

To fix this error please add AVFoundation.framework into the Link Binary With Libraries list which is located in the Build Phases tab.

Screenshot 2015-01-24 00.55.58

Once the framework has been added, it will appear in the Link Binary With Libraries list.

Screenshot 2015-01-24 00.56.14

This will fix the Undefined symbols error.

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *