Alterplay / APAddressBook

Easy access to iOS address book
MIT License
1.38k stars 193 forks source link

Core header not found #130

Open beeirl opened 8 years ago

beeirl commented 8 years ago

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

belkevich commented 8 years ago

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

Best regards, Alexey Belkevich

23 июля 2016 г., 14:21 +0300, Druux notifications@github.com, писал:

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

johnqin commented 8 years ago

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

belkevich commented 8 years ago

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

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

daswass commented 7 years ago

Any answer on this? Im having the same issue.

belkevich commented 7 years ago

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

micnguyen commented 6 years ago

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

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 commented 6 years ago

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