stephencelis / SQLite.swift

A type-safe, Swift-language layer over SQLite3.
MIT License
9.73k stars 1.57k forks source link

Include of non-modular header inside framework module 'SQLite.SQLite_Bridging': #856

Closed webull-ios closed 6 years ago

webull-ios commented 6 years ago

Build Information

Complile Using Xcode 10.0 on MacOs 10.14 using swift 4.2 with SQLite.swift 0.11.4, installed by Cocoapods

get error: _Include of non-modular header inside framework module 'SQLite.SQLiteBridging':

webull-ios commented 6 years ago

I found the solution:

open SQLite-Briging.h , change

#import "sqlite3.h" to #import <sqlite3/sqlite3.h>

if someone got the same issue, may try this

deadlyrice commented 5 years ago

It still doesn't work. 'sqlite3/sqlite3.h' file not found.

jonathanrfisher1 commented 5 years ago

I'm having the same issue. Xcode 10.1, cocoa pods 1.5.3, SQLite.swift 0.11.5 included as: pod 'SQLite.swift/SQLCipher'

Removed Pods folder, Podfile.lock, cleared pod cache, installed pods fresh. Removed DerivedData folder Rebuilt, same issue: Include of non-modular header inside framework module 'SQLite.SQLite_Bridging':

Tried setting 'Allow non-modular includes in framework module' to YES in both target and project settings.

Tried adding:

post_install do |installer| installer.pods_project.build_configuration_list.build_configurations.each do |configuration| configuration.build_settings['CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES'] = 'YES' end end

to Podfile

None of this has any positive effect for me.

Are people not seeing this anymore somehow? Any suggestions? I don't see a closed issue related to this. I just see several issues opened and closed.

jonathanrfisher1 commented 5 years ago

I'm able to build by unlocking the pod and making this change:https://github.com/stephencelis/SQLite.swift/commit/a72a1c43361b480f7c3ca8b57c5ed3d788345880

apspot commented 5 years ago

I'm able to build by unlocking the pod and making this change:a72a1c4

Saved my day, thank you!

Tybion commented 5 years ago

I'm able to build by unlocking the pod and making this change:a72a1c4

Thank you, Johnathan! Fixed in Xcode 10.2

jonathanrfisher1 commented 5 years ago

Tybion: the change I posted is no longer needed with Xcode 10.2?

Tybion commented 5 years ago

Johnathan: It was the only thing that worked for me. I tried lots of other ideas from above, and elsewhere. (0.11.5)