Replies: 1 comment 1 reply
-
@ppamorim I have converted the original issue into a discussion. since it is an opportunity to share experience. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have read all your documentation, also the documentation from
SQLCipher
, also searched for possible solutions in the issues tab. I couldn't find a proper solution to automatically move theSQLCipher
to the top of the list ofOTHER_LDFLAGS
. The issue is that our application uses Firebase and it includessqlite3
that causes conflict withSQLCipher
.I can do it manually by dragging the flags manually to the top of the list using Xcode. Like this:
The project compiles fine.
But it's unsustainable to keep doing it manually. The issue is that we have +100 targets, any change to the
OTHER_LDFLAGS
needs to be done through thepodfile
. Also modifying it manually overwrites the xcconfig data, similar to what we can find in this StackOverflow response: https://stackoverflow.com/a/34320394/2430555I tried multiple solutions to do that on the
podfile
(based on the link above), but none could yield a solution were theSQLCipher
is on top of everything. It always gets ordered by the name.Maybe I could move
-l"sqlite3"
to the bottom, but I couldn't make it work yet since it keeps ordering by name.Is there any suggestion of how to fix it? If we find something I believe this should be included in the project's README.md.
Thank you.
Edit: Moving
-l"sqlite3"
to the bottom doesn't fix the issue. The project fails to linkGRDB
toSQLCipher
.Fix:
I kinda sorted the issue, I wrote this workaround to fix the order in all the
.xcconfig
files:This script finds
-framework "SQLCipher"
and moves it to the start of theOTHER_LDFLAGS
.For the developers, please let me know if there is a non workaround solution to sort this issue, thank you.
Beta Was this translation helpful? Give feedback.
All reactions