syedhali / EZAudio

An iOS and macOS audio visualization framework built upon Core Audio useful for anyone doing real-time, low-latency audio processing and visualizations.
Other
4.93k stars 821 forks source link

Can't Compile for Swift - use of undeclared type #360

Closed calioptrix closed 6 years ago

calioptrix commented 6 years ago

I had AudioKit in my project, but removed that and am trying to use EZAudio. I can't get it to build. I'm getting a number of "use of undeclared type" messages for EZAudioFile, EZAudioFloatData, EZAudioPlot. I followed a tutorial to add pods; here is my Podfile:

target 'Terryaoke' do use_frameworks! pod 'EZAudio', '~> 1.1.4' end

When I added all of the files to the project, it didn't prompt to create a bridging header. I removed the files and added EZAudio.m, and it prompted for it but created an empty file. I updated it to match https://raw.githubusercontent.com/syedhali/EZAudio-Swift/master/EZAudio-Swift-Bridging-Header.h

I turned on Always Search User Paths (Targets > Terryaoke > Build Settings). It is giving a warning to migrate away from this.

I also added"Terryaoke/Terryaoke-Bridging-Header.h" to Objective-C Bridging Header (Targets > Terryaoke > Build Settings)

calioptrix commented 6 years ago

I've been comparing my project to the EZAudio-Swift project. On that project, when clicking on the build scheme (upper left corner where the name of the project is), they show the project as well as each of the three different pods. My project doesn't have a choice for the pods on the build menu. Is this my issue? How do I resolve this?

calioptrix commented 6 years ago

I "solved" the problem by downloading the sample project

https://github.com/syedhali/EZAudio-Swift

and importing all of my code, storyboard, and core data files into that.