Swift Wants Your Tests in the Same File as Your Code. The Hard Part Is Keeping Them Out of Your Binary.
A new Swift Testing pitch, 'Colocated Tests', lets a SwiftPM library target hold @Test functions right next to the code they test, including access to private members. Here's how the proposed @available(Testing) domain keeps test code out of release builds, the open questions on build times and linking, and what it means for iOS app projects.
SwiftPM Wants to Stop Storing Publish Tokens in CI. Your App Store Connect Key Is the Same Problem.
A new Swift forums pitch adds trusted publishing to SwiftPM: short-lived OIDC tokens instead of long-lived registry credentials. Here's how the token exchange works, the wildcard bug the pitch warns about, and what iOS developers should do today about the App Store Connect API key sitting in their CI secrets.
Package.swift Can't Tell the Simulator From a Real iPhone. A New SwiftPM Pitch Finally Fixes That.
SwiftPM's .when(platforms:) condition matches the OS, so a package manifest can't link one library for the iOS simulator and another for the device. A new Swift Evolution pitch adds target environment conditions to Package.swift. Here's what it fixes, the workarounds it replaces, and the one naming fight the thread is already having.
SwiftPM Compilation Caching Is Accepted. The Part Your CI Actually Needed Got Cut.
SE-0547 landed today, accepted with modifications: the remote cache configuration was removed before acceptance. Local caching is real and it's good. But the shared cache that would make your clean CI builds fast got deferred to a future proposal.
SwiftPM Traits Let You Turn Off Half Your Library. Your Test Suite Has No Idea.
A new Swift Evolution pitch fixes a real gap in SwiftPM package traits: there's currently no way to declare which trait combinations a test target actually needs to run against. Here's the bug, the pitch, and the naming collision that'll trip you up first.
The Fix for SwiftPM's 200-Second Compile Bug Just Landed. It Skips the Type Checker Entirely.
A new Swift Forums pitch replaces embedInCode's byte-array literals with linked object files and Span<UInt8>, turning a 70-second, 7.2GB build into a 1.6-second one. Here's how it works and why one reviewer already isn't sure it's worth the complexity.
SwiftPM Embeds Resources as Byte Arrays. One 165KB File Can Take 200 Seconds to Compile.
A fresh Swift Forums pitch wants to give SwiftPM's .embedInCode a real, path-preserving EmbeddedFileSystem — fixing both its lack of directory structure and a documented type-checker bug where a single resource file bloats debug build times by minutes.
SwiftPM Is Getting Real Compilation Caching. My Five Cold Builds a Day Are About to Get Cheaper.
SE-0547 brings CAS-backed compilation caching to SwiftPM: content-addressed cache keys instead of timestamps, with reported 67-75% faster clean builds. Here's what it actually configures, and why it matters more for worktrees and CI than for your everyday edit-build-run loop.