Skip to content
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-2381] Swift 3 (Xcode 8 beta 6) archives booleans in XML plist as integers #4122

Closed
rdingman opened this issue Aug 18, 2016 · 4 comments
Closed

Comments

@rdingman
Copy link

Previous ID SR-2381
Radar rdar://27897683
Original Reporter @rdingman
Type Bug
Status Resolved
Resolution Done

Attachment: Download

Environment

Swift 3 that shipped with Xcode 8 beta 6

Additional Detail from JIRA
Votes 0
Component/s Foundation, Standard Library
Labels Bug
Assignee @belkadan
Priority Medium

md5: e71d7d9787d25bc3141ffb7eb1c0de14

is duplicated by:

  • SR-2441 When compiling with Swift 3, serializing with JSONSerialization translates boolean (Bool) values to 1 or 0 instead of true or false
  • SR-2454 someBool as NSNumber no longer produces kCFBoolean* values

Issue Description:

When using Swift 3 in Xcode 8 beta 6, archiving a dictionary to an XML plist results in booleans written out as integers.

With Swift 3 in Xcode 8 beta 5, booleans were archived out as booleans in an XML plist.

See the attached script and archived plist files.

@belkadan
Copy link

Probably fixed by apple/swift#4363 but we should check. cc @DougGregor

@belkadan
Copy link

Nope. :-(

@belkadan
Copy link

Proposed fix at apple/swift#4366

@belkadan
Copy link

In the swift-3.0-branch in apple/swift#4386

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 5, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants