Comments (4)
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.
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.
Hey @eschos24 let me know if that works so I can close the issue!
from swift-package-list.
Oh yea, you're totally right, will update that in the docs!
from swift-package-list.
Related Issues (20)
- Add Makefile for manual installation
- Question re. swift-package-list HOT 3
- Improve error handling
- Decoding Error with Xcode 13.3 HOT 2
- Build Package.resolved version system
- Add all important languages
- Add support for pdf
- Build phase - Build input files cannot be found HOT 13
- Add customFileName Option HOT 4
- No such module 'AppKit' HOT 3
- SwiftPackageListUI AcknowledgmentsList() - shows no licenses HOT 8
- SPLPackageList returning nil
- Restructure Command Target
- Add Unit testing
- Configure CI
- Feature request: Support for -clonedSourcePackagesDirPath HOT 2
- Feature Request: add `LicenseName` field to the output HOT 7
- Dependency Tree is missing HOT 3
- Feature Request: Output into stdout HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swift-package-list.