Cocoapods: transitive dependencies again

Created on 19 May 2015  Â·  10Comments  Â·  Source: CocoaPods/CocoaPods

Hello.
When installing pods I get: [!] The 'Pods' target has transitive dependencies that include static binaries: (.../Pods/OpenSSL-Universal/lib-ios/libcrypto.a and .../Pods/OpenSSL-Universal/lib-ios/libssl.a

I looked up similar issues, but did not understand whether there is now a solution to this problem?

Most helpful comment

pod trunk push --use-libraries, @gabriel ?

All 10 comments

Nope, the only solution lies in the Pod in question switching to dynamic libraries or frameworks.

@mobdim Did you get this resolved? I'm seeing the same error against OpenSSL-Universal. I filed an issue there: https://github.com/krzyzanowskim/OpenSSL/issues/9

@neonichu Can you please point to documentation, or further illustrate how a podspec would need to be altered to prevent this error?

Thanks for the thought, though I don’t think that will work in my situation as I need OpenSSL to be available to iOS as well as OS X.

Levi
On June 8, 2015 at 14:46:42, Duncan Cunningham ([email protected]) wrote:

You can try using OpenSSL-Framework instead of OpenSSL-Universal to have OpenSSL included as a framework, rather than a static library,

—
Reply to this email directly or view it on GitHub.

@levigroker basically shared libraries/frameworks have to be used instead of static ones.

I can't publish updates to my pods that use OpenSSL-Static or OpenSSL-Universal because of this issue. Not sure what to do :(

    GHBigNum (0.1.8) - Analyzing on iOS 7.0 platform.
  Preparing

Analyzing dependencies

Fetching external sources
-> Fetching podspec for `GHBigNum` from `/Users/gabe/Projects/GHBigNum/GHBigNum.podspec`

Resolving dependencies of 

Comparing resolved specification to the sandbox manifest
  A GHBigNum
  A OpenSSL-Static

Downloading dependencies

-> Installing GHBigNum (0.1.8)
 > Git download
 > Git download
     $ /usr/local/bin/git clone https://github.com/gabriel/GHBigNum.git /var/folders/84/7q50__3j4yscqtt4qmrv8rtr0000gn/T/d20150812-88753-1l95c5w --single-branch --depth 1 --branch 0.1.8
     Cloning into '/var/folders/84/7q50__3j4yscqtt4qmrv8rtr0000gn/T/d20150812-88753-1l95c5w'...
     Note: checking out 'a12e4ae4ae44769e90fef476c9efdc37065c7d4c'.

     You are in 'detached HEAD' state. You can look around, make experimental
     changes and commit them, and you can discard any commits you make in this
     state without impacting any branches by performing another checkout.

     If you want to create a new branch to retain commits you create, you may
     do so (now or later) by using -b with the checkout command again. Example:

       git checkout -b new_branch_name

  > Copying GHBigNum from `/Users/gabe/Library/Caches/CocoaPods/Pods/External/GHBigNum/3a4230c74085cff5307f58831d7969b8-911f4` to
  `../../../../private/var/folders/84/7q50__3j4yscqtt4qmrv8rtr0000gn/T/CocoaPods/Lint/Pods/GHBigNum`

-> Installing OpenSSL-Static (1.0.2.c1)
  > Copying OpenSSL-Static from `/Users/gabe/Library/Caches/CocoaPods/Pods/Release/OpenSSL-Static/1.0.2.c1-bd17e` to
  `../../../../private/var/folders/84/7q50__3j4yscqtt4qmrv8rtr0000gn/T/CocoaPods/Lint/Pods/OpenSSL-Static`
  - Running pre install hooks
 -> GHBigNum (0.1.8)
    - ERROR | [iOS] Encountered an unknown error (The 'Pods' target has transitive dependencies that include static binaries: (/private/var/folders/84/7q50__3j4yscqtt4qmrv8rtr0000gn/T/CocoaPods/Lint/Pods/OpenSSL-Static/lib-ios/libcrypto.a and /private/var/folders/84/7q50__3j4yscqtt4qmrv8rtr0000gn/T/CocoaPods/Lint/Pods/OpenSSL-Static/lib-ios/libssl.a)) during validation.

[!] The podspec does not validate.

pod trunk push --use-libraries, @gabriel ?

yup that worked thanks!

On Wed, Aug 12, 2015 at 2:54 PM, Samuel E. Giddins <[email protected]

wrote:

pod trunk push --use-libraries, @gabriel https://github.com/gabriel ?

—
Reply to this email directly or view it on GitHub
https://github.com/CocoaPods/CocoaPods/issues/3583#issuecomment-130459323
.

@segiddins

pod trunk push --use-libraries

works, thx.

add below line of code in your pod file to ignore transitive dependencies
pre_install` do |installer| 'def installer.verify_no_static_framework_transitive_dependencies; end end`

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pronebird picture pronebird  Â·  3Comments

pallaviMN picture pallaviMN  Â·  3Comments

tlandsmancars picture tlandsmancars  Â·  3Comments

soleares picture soleares  Â·  3Comments

gerchicov-bp picture gerchicov-bp  Â·  3Comments