fmdb icon indicating copy to clipboard operation
fmdb copied to clipboard

FMDB/SQLCipher issue on Xcode 9

Open zhoufusong opened this issue 7 years ago • 4 comments

s.dependency 'FMDB/SQLCipher', '~> 2.7.2' in podspec of other pod library. it cannot build successful. also the reason is that sqlite3_key and sqlite3_rekey is missed

zhoufusong avatar Oct 16 '17 12:10 zhoufusong

我也遇到了这个问题,解决了么?

cyl123 avatar Oct 23 '17 05:10 cyl123

I have this problem too.

suweiz19890921 avatar Jan 11 '18 10:01 suweiz19890921

You could try this post_install hook in your Podfile to add SQLCipher to the HEADER_SEARCH_PATHS which will ensure that FMDB finds the correct SQLCipher copy of sqlite3.h

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

I've issued a PR which should hopefully accomplish the same thing within the SQLCipher subspec of the podspec.

R4N avatar May 17 '18 14:05 R4N

https://github.com/ccgus/fmdb/commit/18152d3ea819d5a65a682ad9f3b22dbbb3c2423e was merged in which I'm hopeful will resolve this issue.

@zhoufusong @cyl123 @suweiz19890921

Does it work for you guys with the latest?

R4N avatar May 22 '18 20:05 R4N