All posts

Posts tagged with: SwiftPM

8 posts found

A row of glass test tubes in a rack on a laboratory bench
Swift Swift Testing

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.

8 min read
A ring of old iron keys hanging from a nail on a weathered wooden wall
Swift SwiftPM

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.

8 min read
A railway junction where one track splits into two, seen from above the switch
Swift SwiftPM

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.

10 min read
A container ship loaded only halfway, the rest of the deck empty
Swift Swift Evolution

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.

8 min read
A brass combination lock dial, close up
Swift SwiftPM

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.

6 min read
An aerial view of a highway bypass lane cutting past a long line of traffic — the shortcut this pitch takes around Swift's type checker
Swift SwiftPM

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.

7 min read
Stacked shipping containers, neatly indexed and labeled — the kind of file system SwiftPM's embedded resources still don't have
Swift SwiftPM

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.

6 min read
Rows of server storage racks, the kind of content-addressed cache infrastructure SwiftPM is about to borrow from
Swift Swift Evolution

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.

7 min read