Error importing EZAudio CocoaPods module

When adding EZAudio to my quick project using CocoaPods, I get a compiler error that reads:
Could not build Objective-C module 'EZAudio'

My subfile:

 platform :ios, '9' use_frameworks! pod 'CorePlot' pod 'SWRevealViewController' pod 'EZAudio' 

I add it to the fast file:

 import EZAudio 

I do not use the bridge header. Does anyone know why this is happening?

+5
source share
2 answers

The problem is with the EZAudioiOS.m and EZAudioOSX.m . You can find them at: /Pods/EZAudio/Core/EZAudioiOS.m

Change the following lines:

 #import <EZAudioiOS/EZAudio.h> 

WITH

 #import "EZAudio.h" 

A warning will appear to unlock the file you are editing. Just hit "Unblock."

+16
source

I think you need to add the pod 'TPCircularBuffer' to the subfile. Now it works fine.

+1
source

Source: https://habr.com/ru/post/1241383/


All Articles