Code Monkey home page Code Monkey logo

Comments (5)

markst avatar markst commented on June 1, 2024

Personally seems a bit out of scope for Xcodegen. You might consider using a tool such as: https://github.com/mono0926/LicensePlist

from xcodegen.

pafdad avatar pafdad commented on June 1, 2024

@markst thank you for your response

So a tool like that will have to have access to SPM's Package.swift file, which is a file managed by Xcodegen. When we use Xcodegen we don't actually manage the Package.swift file manually. Instead we are telling Xcodegen which dependencies we need. So it seems appropriate that the application that manages the actual dependencies (Xcodegen) generates also the acknowledgements for them.

This is true in case of Cocoapods as well. In that case Cocoapods is managing the dependencies, hence it's able to generate the acknowledgements for them too.

Regards

from xcodegen.

markst avatar markst commented on June 1, 2024

The LicensePlist uses the project.xcworkspace/xcshareddata/swiftpm/Package.resolved in order to generate the output Acknowledgements. This file file will exist after a project generated by XcodeGen has resolved dependencies.

So in order to use LicensePlist you can update your project.yml to add a buildToolPlugins to execute the LicensePlistBuildTool. I'm happy to create a demonstration as an example if it's not clear.

from xcodegen.

markst avatar markst commented on June 1, 2024

You might hit a blocker trusting the build tool - "Trust & Enable All".
Depending on how you are running your build you could pass -skipPackagePluginValidation to your xcodebuild.

from xcodegen.

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.