Can I change iOS version in package.swift to use SwiftData?

For the swift student challenge I was hoping to use swift data, I found that since it's a playground app, in package.swift the defaults is set to iOS 16 which means you can't use swift data. I changed it to iOS 17 and everything works but I want to know if that goes against the rules in anyway, changing th bios version in package.swift? This was the code I changed in package.swift.

let package = Package( name: "ProStepper", platforms: [ .iOS("17.0") ],

Answered by DTS Engineer in 820947022

I asked about this internally and folks confirmed that you can expect submissions to be judged on iPadOS 18 / macOS 15. Thus raising your deployment target so that you can use SwiftData is fine.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Honestly, I don’t think that’ll be a problem but I’m working to get you a definitive answer.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

I asked about this internally and folks confirmed that you can expect submissions to be judged on iPadOS 18 / macOS 15. Thus raising your deployment target so that you can use SwiftData is fine.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Hey,

I know you’ve probably seen that at the beginning of the file it states that it might be auto generated, and overriding it might not last. So personally I’d try to go with @ available or other version checks. But then again I’ve never seen the file actually regenerate and override the content. But it’s something I’d think about.

good luck 🍀 lena

Can I change iOS version in package.swift to use SwiftData?
 
 
Q