-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moves _SQLITE3_H_=1 _FTS5_H=1 _SQLITE3RTREE_H_=1 for podspec to user_…
…target_xcconfig as we only want that applied to the consuming project.
- Loading branch information
Showing
1 changed file
with
4 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
832e658
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @R4N, When I updated to 4.5.7 I am not able to build. I have the following errors
and many more.
I see in the .c file that in Xcode the definitions are greyed out because of the
Any advice how to fix that?
832e658
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@manahilov
I'm unable to reproduce this when integrating SQLCipher 4.5.7 via Cocoapods. A few questions:
832e658
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the prompt response @R4N ,
I am not able to share the Podfile, but we are using https://github.com/stephencelis/SQLite.swift v0.15.3 as SQLite.swift/SQLCipher and our GCC_PREPROCESSOR_DEFINITIONS looks like this after SQLCipher update to 4.5.7
Thanks.
832e658
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@manahilov
The
SQLite.swift/SQLCipher
subspec works fine for me with the latest SQLCipher 4.5.7 release.It looks like you additionally have preprocessor macros defined for GRDB, are you also including the
GRDB.swift/SQLCipher
subspec?I also tried the
GRDB.swift/SQLCipher
subspec and that works properly with the SQLCipher 4.5.7 release.I suspect your Podfile has both included i.e.
This type of configuration would include two SQLCipher transitive dependencies which can lead to undefined/undesired behavior. You'll need to stick to one wrapper.
832e658
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes we include GRDB.swift/SQLCipher as well. Thank you for pointing directions to look for, I will check them.