I need to develop an application to run on a recent iPod touch. Xcode does not have iPod as an option for device (only iPhone or iPad). Likewise, there are no simulators for iPod touch. I've read you can just select iPhone as the device and simulator but I am skeptical that will create an app I can deploy to a iPod. I've also read you can use iPod's to test iPhone apps but this is not my scenario. Is writing apps for the iPod touch with Xcode a bad idea?
-
1Simulator iPhone 5 and iPod touch is equal. http://stackoverflow.com/questions/29289788/how-to-get-ipod-touch-simulator-in-xcode-6-1 – jose920405 Sep 07 '16 at 22:22
-
iPhone and iPod have the same screen size etc, there is no difference. – Tom Pitts Sep 07 '16 at 22:23
-
1You don't develop an application for a recent iPod touch. You develop an iOS application that runs on all iOS devices. – rmaddy Sep 07 '16 at 22:24
-
do you understand that you develop for the operation system iOS and not for a certain device? – vikingosegundo Sep 07 '16 at 22:24
1 Answers
Yes, you can develop for iPod touch using Xcode, just as you do for iPhone and iPad. (There is in fact no other way to develop apps for iPod touch.)
The differences between an iOS Simulator and any physical iOS device are much more significant than those between an iPhone and an iPod touch. (No simulator configuration has telephony capability, for example.) If you want to target the 5th- and 6th-generation iPod touch screen size when testing in Simulator, just choose the iPhone 5, iPhone 5s, or iPhone SE simulator, as those iPhone models have the same screen size as the last two iPod touch models.
When you choose an app template upon starting a new project in Xcode, the choice it offers you between "iPhone", "iPad", and "Universal" really means "phone form-factor" vs "tablet form-factor" vs "support both". If you choose iPhone or Universal, you'll get template UI layouts that support a phone-sized screen (or rather, various phone-sized screens, including 4-inch for iPhone 5/5s/SE, 4.7-inch for iPhone 6/6s/7, and 5.5-inch for iPhone 6/6s/7 Plus).

- 124,678
- 26
- 272
- 326
-
1
-
Because I noticed the dupe was close enough only after writing up the answer. Call it the belt and suspenders approach? :) – rickster Sep 07 '16 at 23:13