Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Can't build via CocoaPods on macOS High Sierra #219
i found your pod and it looks really great, i'd love to use it but cocoapods reports:
i would be happy to help submit a PR or help test if someone can point me in the right direction
Thank you for pointing this out!
Challenge we face
Themis depends on the OpenSSL pod, that is shipped as static library. As you know, it's quite difficult to use both static libraries and frameworks in your Podfile since CocoaPods 1.0.0 (large discussions were happen here: CocoaPods/CocoaPods#2926, CocoaPods/CocoaPods#3583 and CocoaPods/CocoaPods#3729)
Also there's an open issue in OpenSSL repo krzyzanowskim/OpenSSL#9 according switching to frameworks.
One of the best options for Themis would be using OpenSSL as dynamic framework, that is discussed here #128. However, building and supporting dynamic frameworks for static libs is quite messy. Maybe one day we will switch to BoringSSL instead, as grpc maintainers did when they came across the same problem (grpc/grpc#4121).
Workaround to make it work now
As workaround I can suggest you to add these lines to your Podfile:
Please let me know if it helped!
i'm sorry but i've tried the fix you mention and it no longer seems to work. i get the same error. if it helps, i'm on cocoapods
i do understand the conundrum, but this is of course a show stopper bug for people already using dynamic frameworks in their code. i really like themis and the ecosystem of other software around it but i'm afraid this prevents us from being able to consider it for adoption at all.
BoringSSL would make me very happy as a user both because it is solid software and because it would fix this issue.
i'm familiar with it and i understand that it largely replaces similar interfaces exposed by OpenSSL, but i've also heard that code is rather nuanced.
is there a plan to actually implement BoringSSL, or is it really a "maybe someday" kind of thing?
as i mentioned earlier, i would be glad to help if my skillset has any value for solving this problem
edit: also, as an upcoming adoptee of gRPC as well, it would be great to share dependencies here rather than ship both.
We're migrated some other versions of Themis to BoringSSL already (I'm pretty sure about Android, and I recon hearing we wanted to do so for Linux as well at some point), so this is rather a question of replicating that experience on iOS, shouldn't be too problematic.
I've updated podspec to use GRKOpenSSLFramework as dependency in separate branch. You shouldn't have 'transitive dependencies' error right now.
Can you please update your podfile and link to the podspec directly, like this:
pod 'themis', :podspec => 'https://raw.githubusercontent.com/cossacklabs/themis/podspec_dynamic_frameworks_GRKOpenSSLFramework/themis.podspec'
One thing I don't really like is that I disabled CLANG modules to make project built. This feels wrong and prevents running pod spec lint successfully (more discussion --> #128).
Please let me know if this themis spec works for you :)
referenced this issue
Aug 30, 2017
Currently i've update podspec to disable bitcode :)
Will google tomorrow what are the best options to re-build frameworks
Thank you @sgammon
Unfortunately this happens because it's unreal to preserve the folder structure using CocoaPods. Themis core has two different files with the same name
The only way to preserve folder structure is to create subspec inside podspec, however it's not an option for us: soter is not a separate part of the project and shouldn't be moved into separate subspec.
If you believe that this warning is crucial, please open a separate Issue, we'll try to use magic renaming technique: rename
However I can't promise that it's a quick solution: need to make sure that all wrappers are not affected :)
After long days of fixing-updating-trying-repeating-again, I can say that branch https://github.com/cossacklabs/themis/tree/release_0.9.5 contains Themis podspec that fully supports bitcode.
Please link Themis to your project as
Consider this as pre-release version :)
We will publish release very soon (need to update other wrappers as well).
Please re-open this issue if you still experience difficulties.
Thank you a lot for your help and patience!