Home/Uncategorized/Making Delphi XE4 compile for iOS devices with Xcode 5

Making Delphi XE4 compile for iOS devices with Xcode 5

Views:
33

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/

By | 2017-02-16T18:02:36+00:00 October 2, 2013 4:37 pm|Uncategorized|5 Comments

About the Author:

5 Comments

  1. Reza February 12, 2014 at 12:01 am - Reply

    Hi
    I’ve downloaded xcode 5 and command line tools , and installed them, I am using delphi xe5 , I had a project that it would compiled fine through Device (app store configuration) and Simulator. Now app is working fine with Simulator and every thing is OK but for Device I get this error:
    [PAClient Error] Error: E0264 Unable to execute ‘”/usr/bin/codesign” –en “/Users/RezaRa/RADPAServer/scratch-dir/RezaRa-RezaRa/iziShoppingList.app/Entitlements.plist” -s “iPhone Distribution: Mohammad Sanati (XXXXXXXX)” -f “/Users/RezaRa/RADPAServer/scratch-dir/RezaRa-RezaRa/MyApp.app”‘ (Error 1)
    Any Idea?

  2. Tom April 2, 2014 at 8:33 am - Reply

    Hi,

    I have followed both your articles on compiling and debugging using Delphi XE4. However, it seems I can not get it working for newest OSX and Xcode. Is there any chance you will be updating the articles or make a 3rd?

    I used the newest PAServer (Xe5 Upd2)

    • admin April 2, 2014 at 8:41 am - Reply

      I’ll revisit this soon.. thanks for the heads up!

  3. Tom April 3, 2014 at 7:54 pm - Reply

    Sounds great. I have been able to make a iTunes upload (not getting accepted yet though)

    – I got Xcode commandline tools installed which is apparently not done through Xcode UI any longer: stackoverflow.com/questions/9329243/xcode-4-4-and-later-install-command-line-tools
    – fixed the click issue

    but I still got warnings on icons sizes even though I followed
    http://docwiki.embarcadero.com/RADStudio/XE5/en/Using_the_iOS_7_Update_for_XE5
    (I tried to apply it to my XE4)

    Anyhow, I will try research that further what I have done wrong there. I would like to supply proper iOS7 icons if possible

Leave a Reply

Show Buttons
Hide Buttons