-
Notifications
You must be signed in to change notification settings - Fork 23
Bug: Plist - Error: Version 7 of workspace-state.json is not supported #148
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
Comments
Hey @JulesMoorhouse, are you on version 4.7.0 or higher? You can check with |
4.7.1 |
Interesting, it is impossible to get this exact error in 4.7.1 with V7 (
swift-package-list <path-to-your-xcodeproj> --requires-license and see if there is the same error or if you get the JSON output?
|
Ok, I've upgraded to 4.8.0 and ran
And get this error Error: Version 7 of workspace-state.json is not supported Hmmm, I right clicked on the package in Xcode and opened a terminal...
Why does it say 4.1.0 Confused... |
Ahh I must have used homebrew originally. Works now 👍 Cheers. |
So is it not possible to use the spm version in the build phase? Seemed weird having two versions. |
Good to hear that you got it working now! I recommend deciding on which way you want to use the tool in your project:
The most seamless way IMO is the plugin, especially on a basic project setup like yours. Let me know if you want more guidance about that, the README section about that topic should be a good starting point. Based on the run script you sent the config would be:
|
Ahhh that sounds great. |
Yes, just add the plugin to the target and config to the project root. To clean up the existing setup remove the custom run script and the generated |
Adding spl to my spm, doesn't show in the build tool from build phase 🤔 |
So you have added the package in Project/Package Dependencies and in Target/Build Phases/Run Build Tool Plugins it does not appear? Xcode restart sometimes helps with such issues. |
Uh oh!
There was an error while loading. Please reload this page.
Hey,
I'm trying to generate a plist.
Admittedly I have some additional UI code in my version of this code.
But the building of the plist from my build phase fails...
I think the issue is that V7 is missing from...
I can see the PR to add this, but I think it's missing from :-
SwiftPackageListCore/Files/PackageResolved.swift
I've tried adding it, but I think an additional struct is required.
Please can this be added ?
Thanks,
Jules.
The text was updated successfully, but these errors were encountered: