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-8528] Terminating app due to uncaught exception 'NSInvalidUnarchiveOperationException', reason: 'The data couldn’t be read because it isn’t in the correct format.' #3648

Open
swift-ci opened this issue Aug 13, 2018 · 0 comments

Comments

@swift-ci
Copy link
Contributor

Previous ID SR-8528
Radar https://bugreport.apple.com/web/?problemID=43234279
Original Reporter eneko (JIRA User)
Type Bug
Environment

Swift 4.1.2, Swift 4.2
macOS 10.13.6

Additional Detail from JIRA
Votes 0
Component/s Foundation
Labels Bug, Codable
Assignee None
Priority Medium

md5: 01f15baed4797624272d6706ec2e24ce

Issue Description:

While using `NSKeyedUnarchiver` with `Codable` I found the swift-only method `

decodeTopLevelDecodable` does not properly catch decoding exceptions, as documented.

@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
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

1 participant