If you’re starting with a newer version of Xcode on the Mac, you will find that the iOS simulators supplied will not work with Delphi (as at version 10.3.2). In this article I describe the procedure for working with the older iOS simulators.
Adding older simulators in Xcode
- Open Xcode on the Mac, and click Window > Devices and Simulators, or just press Shift-Command-2, and click the Simulators tab
- Click the + button that appears in the lower left of the window:
- Select a simulator device that is available for iOS 10.3. The following is a list of those devices:iPhone 5
iPhone 6 Plus
iPhone 6S Plus
iPhone 7 Plus
iPad Mini 2
iPad Mini 3
iPad Mini 4
iPad Air 2
iPad (5th generation)
iPad Pro (9.7-inch)
iPad Pro (10.5-inch)
iPad Pro (12.9-inch)
iPad Pro (12.9-inch) (2nd generation)
- Click Create:
- Repeat steps 2-4 for the devices you wish to have simulators for.
Refreshing the list of simulators in Delphi
Make sure you have imported an iOS simulator SDK. It won’t matter what version it is; I’m unsure as to why this is so.
- In Delphi, start a new FMX project, or open an existing one
- In Project Manager, expand the Target Platforms node, and expand the iOS Simulator node
- Right click the Target node, and click Refresh:
This should make the simulators that you added appear in the Targets list. You may target those that you added.