Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

cocoapods - header files from different libraries have same name

Tags:

ios

cocoapods

There are two different dependent libraries which have header files with same name "Base64.h". Pod add both libraries dir to the include search paths. Then one of the library would include the wrong "Base64.h".

After I change the

#include "Base64.h"

to

#include "./Base64.h"

in the library with wrong. Then the building is pass.

Is there any method to solve the problem in pod way?

I don't include the Base64.h in my files. The Base64.h only been included by the libraries which installed by pods. My tricky approach is patching the 3rd party library after "pod install". So the approach is ugly.

like image 886
Qiu Yuzhou Avatar asked Oct 20 '22 06:10

Qiu Yuzhou


1 Answers

You should probably use a different import:

#import <Library/Base64.h>
like image 58
Keith Smiley Avatar answered Oct 30 '22 11:10

Keith Smiley