-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Can't build via CocoaPods on macOS High Sierra #219
Comments
Hi @sgammon! Thank you for pointing this out! Challenge we faceThemis 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. Our planOne 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 nowAs 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 found this https://github.com/levigroker/GRKOpenSSLFramework This is pod with dynamic frameworks based on https://github.com/krzyzanowskim/OpenSSL repo and discussions I mentioned earlier. I'll try to link podspec to this dependency instead. Give me some time, I'll be back. |
Hi @sgammon 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 :) |
I know how to switch to OpenSSL dynamic frameworks without a "CLANG modules mess" 😄 I'll keep you updated when merge that changes into release branch. |
I will try it with these changes tonight and report back. it would still be the preferred route IMO though to build off of boringSSL which has a shorter patch cycle than openSSL, although i will take what i can get :) thank you for posting this change |
😞 |
Perhaps we could fork that and re-build w/bitcode? |
Currently i've update podspec to disable bitcode :) Will google tomorrow what are the best options to re-build frameworks |
Ok, disabling bitcode (temporarily) in my project and all pods has it building with the modified Podspec for themis. |
I've opened PR in GRKOpenSSLFramework repo I think we'll have bitcode support quite soon :) |
thanks @vixentael. looking forward to it! right on. |
hey @vixentael - one small issue. i get this warning when building with let me know if I can help in any way. thank you again! |
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 :) |
Dear @sgammon 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! |
Thank you @vixentael!! Very excited to get started with themis |
@sgammon Themis 0.9.5 is officially out! Now you can write in your podfile |
hey there,
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
i've tried with
themis
0.9.4
, and withmaster
The text was updated successfully, but these errors were encountered: