APAddressBook icon indicating copy to clipboard operation
APAddressBook copied to clipboard

Core header not found

Open beeirl opened this issue 9 years ago • 7 comments

Hi!

I created an Objective-C bridge header, imported the APAddressBook Pod and now I got the error message at the line #import "APAddressBook.h" in the APAddressBook-Bridging.h file: 'APAddressBook.h' file not found. Afterwards I added the pod 'APAddressBook/Core' dependency to my Podfile but that didn't solve the problem either.

Any suggestions? Thanks

beeirl avatar Jul 23 '16 11:07 beeirl

Hi, You should use 'APAddressBook/Swift' for 'swift'-projects

Best regards, Alexey Belkevich

23 июля 2016 г., 14:21 +0300, Druux [email protected], писал:

Hi!

I created an Objective-C bridge header, imported the APAddressBook Pod and now I got the error message #import "APAddressBook.h" 'APAddressBook.h' file not found. After that I added the pod 'APAddressBook/Core' dependency to my Podfile but that didn't solved the problem either.

Any suggestions? Thanks

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub (https://github.com/Alterplay/APAddressBook/issues/130), or mute the thread (https://github.com/notifications/unsubscribe-auth/ABObNZhGj7rC7Y6TIGOOO6RMpOpWkoyfks5qYflCgaJpZM4JTVvm).

belkevich avatar Jul 24 '16 13:07 belkevich

It doesn't work, even using ''APAddressBook/Swift', still getting "file not found" for APAddressbook.h in APAddressBook-Bridging.h. Please update your sample project to use APAddressbook through cocoapods to verify that it work.

using cocoapod version 1.0.1 xcode 7.3.1

johnqin avatar Aug 09 '16 06:08 johnqin

Please, checkout podtest branch and check example in Examlpe/Swift folder.

P.S. You should use <> instead of "" when import from framework.

belkevich avatar Aug 10 '16 15:08 belkevich

Any answer on this? Im having the same issue.

daswass avatar Oct 29 '16 17:10 daswass

@redi-wassere

  1. Do you try build example app in podtest branch? (see comment above)
  2. Do you use <> instead of ""?

belkevich avatar Nov 21 '16 17:11 belkevich

@belkevich Hi, I have a similar-ish issues. I have a brand new project, Podfile that uses pod 'APAddressBook/Swift' and a bridging header that imports #import <APAddressBook/APAddressBook-Bridging.h>. With that, I get undeclared use of APAddressBook`.

EDIT: I removed the use_frameworks! in the Podfile and it is working now. Is anyone else experiencing this issue of using it as a framework?

micnguyen avatar Nov 05 '17 09:11 micnguyen

I've started to use it through Carthage and it works perfectly now.

micnguyen avatar Nov 07 '17 00:11 micnguyen