Open
Description
Previous ID | SR-12177 |
Radar | rdar://problem/59496020 |
Original Reporter | @spevans |
Type | Bug |
Environment
macOS 10.15.3
Xcode 11.3.1, 11.4 (beta)
Additional Detail from JIRA
Votes | 0 |
Component/s | Foundation |
Labels | Bug |
Assignee | None |
Priority | Medium |
md5: ec29f3810e07302629468489d098f6be
Issue Description:
Running TestFoundation
in Xcode using a snapshot toolchain eg swift-swift-DEVELOPMENT-SNAPSHOT-2020-02-08-a-osx
results in a runtime error although it compiles and builds successfully.
I believe this ultimately due to the version check performed in swift::_swift_stdlib_operatingSystemVersion
which ends up calling directly into CoreFoundation without __CFInitialize()
being called first. This is most likely due to how CoreFoundation is built as part of the swift-corelibs-foundation
such that its constructor doesnt call this function.
Using the default Xcode toolchains works without issue.