I am using Xcode 26.2 on a Mac (15.7.3 (24G419)) with Intel cores.
I am unable use InlineArray for some reason.
'InlineArray' is only available in macOS 26.0 or newer
What is the reason?
I am using Xcode 26.2 on a Mac (15.7.3 (24G419)) with Intel cores.
I am unable use InlineArray for some reason.
'InlineArray' is only available in macOS 26.0 or newer
What is the reason?
This sounds correct? InlineArray requires SwiftStdlib 6.2:
Which requires macOS 26:
Thank you, but would you know the specific reason?
I would understand the requirement if it were to do with the concurrency system which might have a dependency on Apple silicon cores, but for a data structure I am baffled by this requirement.
I don't actually think there is a lot of precedent here that new data structures should — or can — be backdeployed.
The Span types are backdeployable but AFAIK it was a lot of effort to get that working.
In general, new types are extraordinarily difficult to back port, regardless of what they do. New functions/methods are much much easier. Among other issues, system libraries adopting them internally and then clients bringing their own copy and trying to pass into the library would lead to problems.
In addition to what David has said, InlineArray also relies on the language feature of "Integer Generic Parameters", which already requires a Swift 6.2 runtime in the first place.
Related thread: Using InlineArray on macOS
On Apple platforms the Swift Standard Library is part of the system software. So you're stuck with whatever version shipped with a particular version of the operating system. (I suppose Apple could update it in a software update, but they generally don't.)
It used to be bundled with the app itself. Is there still any way to do this?
Not for a long time now. Not since Apple's system libraries started using Swift. They need the version Apple ships, and you can't load two copies of the standard library into the same process, so if you link against just about any Apple library (aside from maybe libSystem and other C stuff) you wouldn't be able to use any version of the Swift Standard Library aside from the system one. Thus the option to use your own was removed a long time ago, as it's not useful for much besides perhaps command line utilities (as anything GUI will pull in the system's copy of the Standard Library)
libsystem actually indirectly links libswiftCore now it turns out. iirc the dependency chain is libsystem -> libdispatch -> libobjc -> libswiftCore
Well, that pretty conclusively rules out using your own copy of the Swift standard library for anything on modern macOS. You can't even make system calls without libSystem (at least not safely, as the Go maintainers learned the hard way)