-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for Swift Package Manager #16
Comments
Would be happy to see this happen! |
You can just point directly at the path where SPM packages are downloaded: ./credits.py -s "$CONFIGURATION_BUILD_DIR/../../../SourcePackages/checkouts" -o "$SRCROOT/Credits.plist" |
But how to combine both? Cocoapods and SPM? Update: Got it working by the changes from @colejd... Thanks for that! |
@chrizstone How did you manage it to work? Can you share? thanks |
@svoip Use my PR (#38), which lets you specify multiple paths as inputs. Then you can do something like this:
(sorry @chrizstone, tagged you by mistake) |
Works great, thanks @colejd |
Hey-- Thanks! I've got this working with SPM now. This is probably difficult but in one of my SPM dependencies, in its Package.swift, I make use of conditional dependencies:
however, at least with Xcode, it looks like all checkout are done first (i.e., to Cheers! |
Yeah, this looks to be SPM's behavior so it'd need to be changed by the Swift team. You could evaluate the Package.swift using this repo's Python script somehow, then ignore the corresponding directories that don't match, but that does sound like a lot of work. |
It looks like this path
A workaround is to put a conditional around it like:
Seems a bit of a hack though. And if you really want to generate the credits on an archive, wouldn't be suitable. |
I just ran into this and I found the workaround for archiving. the path is 3 levels up from there, |
Should add support for SPM in addition to CocoaPods
The text was updated successfully, but these errors were encountered: