Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Core header not found #130

Open
beeirl opened this issue Jul 23, 2016 · 7 comments
Open

Core header not found #130

beeirl opened this issue Jul 23, 2016 · 7 comments

Comments

@beeirl
Copy link

beeirl commented Jul 23, 2016

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
Copy link
Contributor

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 (#130), or mute the thread (https://github.com/notifications/unsubscribe-auth/ABObNZhGj7rC7Y6TIGOOO6RMpOpWkoyfks5qYflCgaJpZM4JTVvm).

@johnqin
Copy link

johnqin commented Aug 9, 2016

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
Copy link
Contributor

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

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

@daswass
Copy link

daswass commented Oct 29, 2016

Any answer on this? Im having the same issue.

@belkevich
Copy link
Contributor

@redi-wassere

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

@micnguyen
Copy link

micnguyen commented Nov 5, 2017

@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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants