Giter VIP home page Giter VIP logo

Comments (5)

nagarro-mohitpadalia avatar nagarro-mohitpadalia commented on July 2, 2024 3

Looks like issue happens because of an older version of ruby gem used by cocoapods, updating the cocoapods does not update some dependencies. So the steps I performed to resolve this are :

  1. Uninstall ruby gems sudo gem uninstall --all
  2. Remove workspace project, delete Podfile.lock
  3. Deleted the pods directory
  4. Install cocoapods sudo gem install cocoapods
  5. Run pod install

from openssl.

ferencIOS avatar ferencIOS commented on July 2, 2024 1

I had also this issue on another project with SPM.
I guess you, @paulosilva8, have a structure like this:

App
---> Embed Custom Framework
--------> Custom Framework embed OpenSSL via SPM

If the assumption is right what I did is:

App
---> Embed Custom Framework **+ OpenSSL via SPM** (*)
--------> Custom Framework embed OpenSSL via SPM (*)

(*)using the same version for the App and the Custom Framework

Why?

  • SPM generates a sort of static lib
  • OpenSSL is a xcframework
    So you need to embed the xcframework in the App level.

Maybe @krzyzanowskim an attempt could be

targets: [
        .binaryTarget(
            name: "OpenSSL",
            url: "<OpenSSL-URL>",
            checksum: "<OpenSSL-Checksum>"
        )
    ]

instead of

targets: [
        .binaryTarget(
            name: "OpenSSL",
            path: "Frameworks/OpenSSL.xcframework"
        )
    ]

Have a nice evening!

from openssl.

paulosilva8 avatar paulosilva8 commented on July 2, 2024

It must be some other problem as this didn't help to fix the issue. Thanks

Looks like issue happens because of an older version of ruby gem used by cocoapods, updating the cocoapods does not update some dependencies. So the steps I performed to resolve this are :

  1. Uninstall ruby gems sudo gem uninstall --all
  2. Remove workspace project, delete Podfile.lock
  3. Deleted the pods directory
  4. Install cocoapods sudo gem install cocoapods
  5. Run pod install

from openssl.

paulosilva8 avatar paulosilva8 commented on July 2, 2024

Problem with this approach is only that the embed framework is managed by another company. I have requested a new binary to point to the correct framework and yes, it should fix the issue

from openssl.

krzyzanowskim avatar krzyzanowskim commented on July 2, 2024
        url: "<OpenSSL-URL>",
       checksum: "<OpenSSL-Checksum>"

Xcode is (was) quite broken when it comes to downloadable SPM artifacts last time I checked

from openssl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.