swift-package-list
swift-package-list copied to clipboard
Inconsistent Output for --output-type plist
We're trying to generate a secondary Acknowledgements-spm.plist file in our .xcworkspace because we are currently still using Cocoapods to generate an Acknowledgements.plist.
This way, while we are still in the process of moving our dependencies from Cocoapods to SPM, we can still display accurate acknowledgements for both managers (and avoid getting sued).
| Real Output | Desired Output |
|---|---|
The output on the right is what I believe swift-package-list generated one time, however I have yet to be able to replicate these same results, as now the tool only produces .plist files of the format on the left.
The file on the left produces a blank Acknowledgements page in the iOS Settings page for the app.
The file on the right produces a functional Acknowledgements page.
Most notably, the file on the right features the key PreferenceSpecifiers while the file on the left doesn't.
Am I missing a command line argument, or some other "gotcha"?
The command we're using:
swift-package-list
[...].xcworkspace
--output-type plist
--custom-file-name Acknowledgements-spm-1
--output-path [...]/SupportingFiles/Settings.bundle
The file structure:
/ Settings.bundle
Acknowledgements-spm.plist
Acknowledgements.plist
Root.plist