I'm trying to use OpenSSL in my project through Cocoapods, but it just keeps failing on some "undefined symbols for arm64". While I know that this question had been asked before; I can't get it to work using the provided solutions. It's really and I mean really frustrating.
I tried the solutions posted in:
All the things I did and the configs:
- Tried building with the
Build Active Architectures
for both Debug and Release toYES
and tried it with both forNO
(in My Project, the Pods project and all the Targets) - Tried building with the
Valid architectures
toarm64 arm7 arm7s
and all possible variations you can think of with those three - My project has the linker flags and library/framework search paths set to
$(inherited)
- Removed duplicate linker flags or library/framework search paths
- I have added the Pods-{My Project} lib to My project
- Re-installed all the pods by:
- Deleting all installed pods
- Deleting the Podfile
- Called
pod init
- Added each pod one step at a time
- Re-added the target in My Project and did all the steps again
Next to the above list I probably did a lot of other things I cannot even remember through my clouded-vision right now.
Now this is how my project is set up:
I have a main project which builds my framework. Now because I use both SQLCipher and OpenSSL and had the transitive dependencies error, I added a static library target to my project. This static library target has the Cocoapods dependencies for SQLCipher and OpenSSL which enabled me to use use_frameworks
for the framework target in my project.
So far so good and everything works fine, but whenever I try to use OpenSSL in my static library it complains about the godforsaken undefined symbols. I can't seem to resolve those.
Does anyone knows what goes wrong? Or are there other/better setups for what I'm trying?