I am trying to challenge myself by building an iPhone app in Swift Playgrounds. I just got a Mac Mini M4, so I am trying Swift Playgrounds for Mac.
I can submit a build to TestFlight, but it's for Mac and won't let me even test on my iPhone.
How can I build my app for iPhone?
The least "hacky" answer is appreciated, but I'll entertain anything. Examples in order of hackiness might be:
- I missed an option in Playgrounds for Mac.
- Open my playground in Xcode, change something, open back in Playgrounds for Mac.
- Same as above, but maybe I have to add/copy a file (e.g., manifest.plist).
- Open my playground in Playgrounds for iPad (I have an iPad 9), do something, copy back to Playgrounds for Mac.
- Submit via Playgrounds for iPad.
- Submit via Xcode.
BTW, I'm challenging myself not just for its own sake, but because I'm curious how far a student/newbie/etc can take Swift Playgrounds. I was hoping to set a good example for others looking for a lighter-resource, more user-friendly experience than Xcode (which is why I assume Playgrounds for Mac even exists). But right now it feels like Playgrounds for Mac is a … third-class citizen? Maybe the iPad version is second-class? I haven't really tried it.
P.S. Why does this text editor seem so lame? Making a numbered list and adding to it is a nightmare. Should be: start a numbered list, hit return, new number appears below. I'm on Safari. This should be the best dev experience on the planet, not the worst!
Swift Playgrounds currently only supports submitting to App Store Connect for the platform that you're currently using—i.e., Swift Playgrounds for Mac submits a Catalyst app to the Mac App Store, and Swift Playgrounds for iPad submits an iOS app to the App Store.
Xcode can produce and submit either kind of app from your app playground, and is the only way to submit an iOS app from macOS.