UPDATE: Due to the kindness of another newsgroup participant, I’ve posted about how to make debugging work. Please check the link at the end of this article.

If you’re looking to hang on to Delphi XE4, but want to upgrade Xcode to version 5, there’s a couple of things you need to do, especially if compiling for a device.

Firstly, Xcode 5 is not an upgrade from Xcode 4; it is is a completely new install. This means you’ll need to reinstall the Command Line Tools (via the Xcode Preferences) and reinstall the iOS6.1 simulator if you need it.

Secondly, you’ll need to add the iOS7 SDK to the SDK manager in XE4. To do this, go to the SDK manager by clicking Tools|Options in the XE4 main menu and select SDK manager from the tree. Next, click the “Add..” button in the lower left. Select iOS Device as the platform and iPhoneOS 7.0 as the SDK, then click OK.

This should start the local file cache update. But wait.. there’s more. You’ll need to manually add a few files to the local file cache list. To do this, click the little yellow button at the top right, and enter the directory, filename and select the “Library” radio button.

Do this for all of the files listed in the next picture starting at libcorecrypto.dylib:

Then click the “Update Local File Cache” button, click Close once the files have been copied, and click OK on the options dialog.

This should have you compiling for the device for the bare minimum. If your app requires other files, and the compiler complains that other libXXXX.dylib files are missing, you’ll need to add them in the same fashion, remembering to click “Update Local File Cache” once you’ve added the file to the list.

Here’s the link to a new article, regarding making debugging work:

http://delphi.radsoft.com.au/2013/10/making-delphi-xe-4-debug-for-ios-devices-with-xcode-5/