Closed doozMen closed 2 days ago
This issue is a duplicate of https://github.com/apple/swift-foundation/issues/920
by adding dependency to swift-foundation and using import FoundationEssentials seams to work but has other issues.
This is only intended to be used as a development convenience and it will not work in situations when you are not working on swift-foundation itself. The correct path forward here is to remove the package dependency, and there are folks working on fixing the compiler crash that you reported
Given you are on macOS 15.0 and installed the toolchain via https://www.swift.org/install/macos/ and installed using the package installer the import of Foundation is causing problems when building. The output I will include at the end but how to reproduce is
this will output the following error
Trying to mitigate the issue like described swift forum post https://forums.swift.org/t/using-swift-foundation-with-linux-static-sdk/74642 by adding dependency to
swift-foundation
and usingimport FoundationEssentials
seams to work but has other issues.This seams to contradict the docs stating that foundation and especially FoundationEssentials is included in the toolchain on any platform?