When adding EZAudio to my swift project using CocoaPods, I get a compiler error that says:Could not build Objective-C module 'EZAudio'
My Podfile is this:
platform :ios, '9'
use_frameworks!
pod 'CorePlot'
pod 'SWRevealViewController'
pod 'EZAudio'
I add it to a swift file like so:
import EZAudio
I am not using a bridging header. Does anybody have any insight into why this is happening?
The problem is in the EZAudioiOS.m
and EZAudioOSX.m
files. You can find those in: /Pods/EZAudio/Core/EZAudioiOS.m
Change the following lines:
#import <EZAudioiOS/EZAudio.h>
With:
#import "EZAudio.h"
An alert will popup, to Unlock the file, you are editing. Just click "Unlock".
I guess you need to add pod 'TPCircularBuffer'
to the Podfile as well. Works fine now.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With