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

Adds SQLCipher to the HEADER_SEARCH_PATHS of FMDB within the SQLCiphe… #672

Merged
merged 3 commits into from May 22, 2018

Conversation

R4N
Copy link
Contributor

@R4N R4N commented May 17, 2018

…r subspec.

When installing FMDB/SQLCipher via cocoa pods and using Swift, the proper SQLCipher copy of sqlite3.h isn't located so the sqlite3_key and sqlite3_rekey functions aren't found.

This should hopefully resolve these issues:
#591
#618
#612

and accomplish the same thing as this PR (without changing the import statements/breaking direct integrations):
#594

A current workaround is to use a post_install hook in the Podfile:

post_install do |installer|
        installer.pods_project.targets.each do |target|
            if target.name == "FMDB"
               target.build_configurations.each do |config|
                   header_search = {"HEADER_SEARCH_PATHS" => "SQLCipher"}
                   config.build_settings.merge!(header_search)
               end
            end
        end
    end

@ccgus ccgus merged commit 18152d3 into ccgus:master May 22, 2018
@ccgus
Copy link
Owner

ccgus commented May 22, 2018

Crossing my fingers and hoping for the best here. I don't use Cocoa Pods, so…

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

Successfully merging this pull request may close these issues.

None yet

2 participants