EZAudio icon indicating copy to clipboard operation
EZAudio copied to clipboard

Error compiling version 1.1.4 using Cocoapods

Open andreaslindahl opened this issue 9 years ago • 21 comments

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

andreaslindahl avatar Jan 26 '16 16:01 andreaslindahl

What version of Xcode and cocoapods are you running?

syedhali avatar Jan 26 '16 16:01 syedhali

Cocoapods 0.39.0 and XCode 7.2

andreaslindahl avatar Jan 26 '16 16:01 andreaslindahl

Can you just include it like:

#import <EZAudio/EZAudio.h>

syedhali avatar Jan 26 '16 17:01 syedhali

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

andreaslindahl avatar Jan 26 '16 17:01 andreaslindahl

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

andreaslindahl avatar Jan 26 '16 17:01 andreaslindahl

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...

andreaslindahl avatar Jan 26 '16 17:01 andreaslindahl

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

fcjxxl avatar Jan 27 '16 08:01 fcjxxl

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

andreaslindahl avatar Jan 27 '16 09:01 andreaslindahl

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

pod 'EZAudio', '1.1.2'

cmmartin avatar Jan 28 '16 17:01 cmmartin

Hey everyone, please try again with 1.1.5

pod 'EZAudio', '1.1.5'

syedhali avatar Jan 29 '16 17:01 syedhali

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

fcjxxl avatar Jan 30 '16 06:01 fcjxxl

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...

andreaslindahl avatar Jan 31 '16 07:01 andreaslindahl

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

lluisgerard avatar Feb 01 '16 17:02 lluisgerard

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.

fform avatar Feb 03 '16 00:02 fform

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

don-inkscreen avatar Feb 18 '16 18:02 don-inkscreen

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

vin-the-dev avatar Feb 25 '16 11:02 vin-the-dev

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

brnunes avatar Mar 01 '16 23:03 brnunes

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

codezero-jp avatar Mar 10 '16 08:03 codezero-jp

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?

davidchappelle avatar Apr 01 '16 19:04 davidchappelle

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

abdultcb avatar Jun 17 '16 09:06 abdultcb

@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.

bideal avatar Oct 07 '17 10:10 bideal