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.94k stars 822 forks source link

Error compiling version 1.1.4 using Cocoapods #267

Open andreaslindahl opened 8 years ago

andreaslindahl commented 8 years ago

I updated to version 1.1.4 (from 1.1.2) using Cocoapods and am now getting an error when building:

"'EZAudioiOS/EZAudio.h' file not found" in EZAudioiOS.h

syedhali commented 8 years ago

What version of Xcode and cocoapods are you running?

andreaslindahl commented 8 years ago

Cocoapods 0.39.0 and XCode 7.2

syedhali commented 8 years ago

Can you just include it like:

#import <EZAudio/EZAudio.h>
andreaslindahl commented 8 years ago

The error doesn't appear in any of my files, but in the EZAudioiOS.h file in the Cocoapods project.

andreaslindahl commented 8 years ago

EZAudioiOS.h isn't included in the Pod if I use EZAudio version 1.1.2

andreaslindahl commented 8 years ago

Seems like this file was changed for 1.1.3: https://github.com/syedhali/EZAudio/commit/470d3cdd8b84db9b25b7a8a3e87fd804034a8fbe.

But 1.1.3 doesn't seem to be available via Cocoapods, meaning I have used 1.1.2 up until now, so this is the first time I'm seeing this (old?) bug.

Might be related to the two targets in your project for iOS and OS X. Don't know how pods work exactly, but I'm guessing targets are missing from the Cocoapods files...

fcjxxl commented 8 years ago

I met the same problem, and I change EZAudioiOS.h and EZAudioOSX.h to #import "EZAudio.h", then it build succeeded

andreaslindahl commented 8 years ago

I changed it to make it compile, as well. But I would rather not edit the files in my Cocoapods project...

cmmartin commented 8 years ago

Same issue here. I just reverted to 1.1.2 for now...

pod 'EZAudio', '1.1.2'

syedhali commented 8 years ago

Hey everyone, please try again with 1.1.5

pod 'EZAudio', '1.1.5'

fcjxxl commented 8 years ago

still /Pods/EZAudio/EZAudio/EZAudioiOS.h:26:9: 'EZAudioiOS/EZAudio.h' file not found

andreaslindahl commented 8 years ago

Nope, still doesn't work. It looks like you're trying to remove these files in the podspec file, but that doesn't seem to work...

lluisgerard commented 8 years ago

Same problem here with 1.1.5, had to manually comment EZAudioOSX.h and EZAudioiOS.h imports to compile.

fform commented 8 years ago

Can confirm this with 1.1.5 and 1.1.2 using XCode 7.2. Changing the path fixes it.

FWIW, I was using 1.1.2 before and it was working with XCode 7.2 but I had to clean out my Pod folder on a branch change. When I reinstalled 1.1.2 fresh, it no longer would compile.

don-inkscreen commented 8 years ago

Had to use lluisgerard's solution for 1.1.5. Cocoapods refused to install 1.1.2 for me.

vin-the-dev commented 8 years ago

I got it fixed by changing

#import <EZAudioiOS/EZAudio.h>

to

#import "EZAudio.h"

in

EZAudioiOS.h and EZAudioOSX.h even after updating to 1.1.5

brnunes commented 8 years ago

Same problem on 1.1.4, had to change #import <EZAudioiOS/EZAudio.h> to #import "EZAudio.h" in EZAudioiOS.h and EZAudioOSX.h

codezero-jp commented 8 years ago

I use pod/diffs to change #import <EZAudioiOS/EZAudio.h> to #import "EZAudio.h" in EZAudioiOS.h and EZAudioOSX.h

davidchappelle commented 8 years ago

Seems like a super trivial thing to patch? can't we just get a working version that has the path fix that everyone is using above?

abdultcb commented 8 years ago

I got it fixed by changing

import <EZAudioiOS/EZAudio.h>

to

import "EZAudio.h"

in

EZAudioiOS.h and EZAudioOSX.h even after updating to 1.1.5

bideal commented 6 years ago

@syedhali , thanks for your EZAudio project which saves me a lot of work, but please help solve this problem asap.

The error is obvious. the two files "Pods/EZAudio/EZAudioiOS.h" & "Pods/EZAudio/EZAudioOSX.h" that Cocoapods tries to build into the "Products/EZAudio.framework" import header files in this framework per se.

Solution: please either remove these two header files or change the header reference in "*.h" format.

Thanks.