Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cocoapod "transitive dependencies" error #9

Closed
levigroker opened this issue May 20, 2015 · 22 comments
Closed

Cocoapod "transitive dependencies" error #9

levigroker opened this issue May 20, 2015 · 22 comments

Comments

@levigroker
Copy link

With Cocoapods 0.37.1 I'm seeing this error when including OpenSSL-Universal in my iOS project:

[!] The 'Pods' target has transitive dependencies that include static binaries: (/private/var/folders/7b/mh8q849d64sc6r07cypfg_mh0000gn/T/CocoaPods/Lint/Pods/OpenSSL-Universal/lib-ios/libcrypto.a and /private/var/folders/7b/mh8q849d64sc6r07cypfg_mh0000gn/T/CocoaPods/Lint/Pods/OpenSSL-Universal/lib-ios/libssl.a)

I've tried cleaning my cocoapod cache etc. but I can't get it to work.

I'm not alone, apparently:

CocoaPods/CocoaPods#3583 (comment)

@ethanmick
Copy link

Yep, I have this issue too.

@krzyzanowskim
Copy link
Owner

... this is shared vs static problem, it can't be static and shared at the same time.

@crilleengvall
Copy link

I'm also getting this error. Has this one got a solution yet?

@shvekiasaf
Copy link

+1 here as well

@krzyzanowskim
Copy link
Owner

there is nothing I can do about it, can I?

@scottfister
Copy link

+1 also getting this

@bpwalford
Copy link

Another +1

@krzyzanowskim
Copy link
Owner

@bpwalford it can't be "fixed" due to nature of static vs dynamic libraries. This build is static library.

@geraldeersteling
Copy link

May be silly, but is there a possibility that the OpenSSL libraries become dynamic then? Seems like a lot of users try to tackle the problem.

@krzyzanowskim
Copy link
Owner

can't be done. Can't create dynamic framework with bitcode with currently available tools. It is possible generate framework without bitcode though: https://github.com/krzyzanowskim/OpenSSL/tree/master/Frameworks

@jcavar
Copy link

jcavar commented Jul 11, 2016

Does it make sense to add subspec with dynamic framework then? Some projects are not using bitcode anyway so it might be useful.

@geraldeersteling
Copy link

geraldeersteling commented Jul 13, 2016

@krzyzanowskim What do you suggest? Add the framework manually?

-- Update: Thanks for the link, I just resorted to adding the openssl.framework manually and use the vendored frameworks build setting from cocoapods

@krzyzanowskim
Copy link
Owner

@jcavar yes, it does.

@jcavar
Copy link

jcavar commented Jul 13, 2016

Cool, we have internal pod which is working well for us and uses prebuilt framework, so I can open pull request here when i catch some time if you are interested?

@krzyzanowskim
Copy link
Owner

sure

@geraldeersteling
Copy link

Hi, another question; it seems installing an app with the pre-built framework fails because the framework has no Info.plist. Got the framework from here: https://github.com/krzyzanowskim/OpenSSL/tree/master/Frameworks

@jcavar
Copy link

jcavar commented Jul 15, 2016

Yes, we also had that problem. You can change script a bit:
https://github.com/x2on/OpenSSL-for-iPhone/blob/master/create-openssl-framework.sh#L25

However, after fixing this we had another set of issues so we ended up creating framework using Xcode following this:
https://pewpewthespells.com/blog/convert_static_to_dynamic.html
and this:
http://www.insert.io/frameworkios8xcode6/

@krzyzanowskim
Copy link
Owner

ok, can you please create PR with that ?

@jcavar
Copy link

jcavar commented Jul 15, 2016

Yes, I planned to do that with pod update pull request.

@geraldeersteling
Copy link

Ah thanks @jcavar , rebuilding the framework seems to be adding the Info.plist 👍

@krzyzanowskim
Copy link
Owner

@jcavar how's going with the PR ?

@jcavar
Copy link

jcavar commented Jul 28, 2016

@krzyzanowskim PR is here for a while:
#27

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants