Code Monkey home page Code Monkey logo

Comments (4)

eschos24 avatar eschos24 commented on May 30, 2024 1

Yes, that worked! Thank you so much.

One other note, my project has a " " (space) in the name, so I had to adjust the script slightly (in addition to wanting it to generate the settings bundle). Just in case it's helpful, here my final script that is working:

export PATH="$PATH:$HOME/.mint/bin/"

if command -v swift-package-list &> /dev/null; then
    OUTPUT_PATH=$SOURCE_ROOT/$TARGETNAME
    
    swift-package-list "$PROJECT_FILE_PATH" --output-path "$OUTPUT_PATH" --requires-license --file-type settings-bundle
else
    echo "warning: swift-package-list not installed"
fi

from swift-package-list.

FelixHerrmann avatar FelixHerrmann commented on May 30, 2024

Hi, let's get this working!

I guess that you have installed it via Mint? Xcode's PATH variable does not contain the path to Mint's bin directory. You can easily fix this by either adding export PATH="$PATH:$HOME/.mint/bin/" as the first line in your build script or link the swift-package-list file to your standard bin directory by executing ln -s $HOME/.mint/bin/swift-package-list /usr/local/bin/swift-package-list in your Terminal (probably with sudo). Let me know if that worked!

FYI, adding the package as a dependency to your project has no effect on the writing process, this is only for a convenient way to read/display the contents of the generated file.

from swift-package-list.

FelixHerrmann avatar FelixHerrmann commented on May 30, 2024

Hey @eschos24 let me know if that works so I can close the issue!

from swift-package-list.

FelixHerrmann avatar FelixHerrmann commented on May 30, 2024

Oh yea, you're totally right, will update that in the docs!

from swift-package-list.

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.