Daily iOS
Build and distribution

SPM version rules

How do you decide between SPM's version rules, from:, upToNextMinor, exact, and branch?

How would an interviewer hear this answer? You'll see whether they'd move on, dig in, or say no, and which sentences would trip you up. Your score doesn't change.
See the short answer

Most dependencies take from: and move freely up to the next major, while a payments or analytics SDK where stability matters gets .exact or upToNextMinor. A branch or revision is a stopgap while you wait on a fork fix, and it goes back to a tag before release.

Share a question