0

I am creating a custom swift framework for managing all common data of my applications like data base or common classes.

I import the library "libsqlite3.0.tbd" in Linked Frameworks and Libraries, but when I try to put #import "sqlite3.h" in my Umbrella header file, I recite the next error:

Include of non-modular header inside framework module

Any idea? Thank you very much

3
  • 1
    Did you check github.com/stephencelis/SQLite.swift and github.com/groue/GRDB.swift ? Commented Dec 2, 2015 at 6:56
  • Finally I used github.com/stephencelis/SQLite.swift for finish with this problem and it works! Commented Dec 9, 2015 at 13:14
  • Damned! I'm amazed by the success of the complex API of SQLite.swift :-) Happy you found your solution! Commented Dec 9, 2015 at 16:03

1 Answer 1

2

Step by Step what I did with my sqlite project for it to work, try this (keep the library added and the #import statement in the header):

  1. First, remove the Header from Build Phases >> Headers.
  2. Then go to Build Settings and add the path to the Header in the Objective-C Bridging Header. If you just created the Framework, didn't change the name of the .h file and your project is called Test, for example, the path will be Teste/Test.h (Xcode 7.1.1).

Hope it works.

Sign up to request clarification or add additional context in comments.

2 Comments

Thank you for your response, using bridging headers with framework targets is unsupported, I receive the next error: using bridging headers with framework targets is unsupported
Hmm strange. Click in the header that was created with your project. Then, in the File Inspector (first tab of the menu in the right side of the screen) see if there are any target membership selected. If there is any, unselect. In my project there is no item selected there, and when I check any the same error appear.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.