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-15142] NSUnitMass is not key value coding-compliant for the key 'pounds' #3948

Open
swift-ci opened this issue Sep 1, 2021 · 1 comment

Comments

@swift-ci
Copy link
Contributor

swift-ci commented Sep 1, 2021

Previous ID SR-15142
Radar None
Original Reporter ryanrudes (JIRA User)
Type Bug
Environment

Operating System: macOS Monterey Version 12.0 Beta

System: Mac mini (M1, 2020)

Hardware specs: 8 GB RAM, Apple M1 Chip

Environment: Xcode 13 beta 5, Deploying for iOS 15.0, Xcode 13.0-compatible project format, Swift 5

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

md5: 22bf54106bfcb184d00e6d087a0bc370

Issue Description:

All other quantities, such as UnitDuration, UnitInformationStorage, UnitPower, etc. are key value coding-compliant with all the documented units of measure for the respective quantity.

For instance, UnitDuration is key value coding-compliant with the following keys:
hours, minutes, seconds, milliseconds, microseconds, nanoseconds, picoseconds

And UnitInformationStorage is key value coding-compliant with these keys:

bits, nibbles, bytes, kibibits, kibibytes, mebibits, mebibytes, gibibits, gibibytes, tebibits, tebibytes, pebibits, pebibytes, exbibits, exbibytes, zebibits, zebibytes, yobibits, yobibytes, kilobits, kilobytes, megabits, megabytes, gigabits, gigabytes, terabits, terabytes, petabits, petabytes, exabits, exabytes, zettabits, zettabytes, yottabits, yottabytes

However, it seems that UnitMass is mistakenly not key value coding-compliant with its key 'pounds', although it does comply with the rest of its keys:

kilograms, grams, decigrams, centigrams, milligrams, micrograms, nanograms, picograms, ounces, stones, metricTons, shortTons, carats, ouncesTroy, slugs

@typesanitizer
Copy link

Looks like this bug is specific to Foundation in the SDK shipped with Xcode, not a bug report for swift-corelibs-foundation which is available on GitHub. Could you please file a bug report through feedbackassistant.apple.com for this instead? Thanks!

@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

2 participants