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
[SR-8259] Make PropertyListDecoder available on Linux #3665
Comments
Comment by Sven A. Schmidt (JIRA) I've come across this issue here trying to find a way to make `PropertyListDecoder` available on Linux. It turns out that given your pointer above this was quite easy. I took the file you linked to and added ``` import Foundation extension DecodingError {
} let kCFBooleanTrue = NSNumber(booleanLiteral: true) let kCFBooleanFalse = NSNumber(booleanLiteral: false) ``` to fix a couple of missing declarations. This builds and runs fine on Linux with swift-4.2 (and probably earlier, I didn't test). So I suppose that proves that this should be straightforward to add 🙂 I'd be happy to put in some time to open an MR for this but not having build swift or the stdlib I'm not really sure where to start. |
@millenomi it looks like the implementation for this is already in the overlay, could we copy it into s-c-f? |
Comment by Yonas (JIRA) Is there an update on this? |
Comment by Ondrej Rafaj (JIRA) hi, any update please? 🙁 |
PropertyListEncoder/Decoder were added in #1849 |
Additional Detail from JIRA
md5: 8dac4c81dd53c90b112705b1517e129a
Issue Description:
Right now PropertyListDecoder doesn't exist on Linux. From a quick look at the implementation https://github.com/apple/swift/blob/master/stdlib/public/SDK/Foundation/PlistEncoder.swift I don't see anything that jumps out as not being available on Linux. This would be a nice addition for some tools that want to operate on plists.
The text was updated successfully, but these errors were encountered: