Recently Apple released new version of the iOS for iPhone and iPad.
If you start Delphi XE5 and you will try to compile the application you will get error:
‘Unable to locate DeviceSupport directory matched with connected device info’
What you need to do is:
Step 1) to import the new iOS SDK.
At the Delphi go to Tools -> Options and Under Enviroment Options is the SDK Manager.
The new iPhoneOS 7.1 should be listed.
If you don’t have it, go to your Mac and update the Xcode via App Store.
When you click the OK button the actual SDK will get imported.
If you are using more libraries than are officially supported by Delphi, you need to copy the manually from your Mac.
At the windows they are located at:
C:\Users\<your user>\Documents\RAD Studio\SDKs\<version of the iOS SDK>\System\Library\Frameworks\.
At the Mac they are locates at: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/<version of the iOS SDK>/System/Library\Frameworks/ .
Just copy the files and everything will start to work.
Restart the Delphi and restart the Xcode at the Mac.
Step 2) If you still have the problem, then:
a) go to your mac and stat XCode
b) open Organized (Window -> Organizer)
c) Connect your device and check the device version:
You will see version (in my case it’s 7.1) and the version identification (in my case 11D167)
d) go to folder /Users/<your name>/Library/Developer/XCode/iOS DeviceSupport
e) There should be folder of your version and version identification – in my case it’s 7.1 (11d167). In my case there was folder 7.1 (11d169), but not 11d167. That’s because my iPhone 11d167, but the iPad Air 11d169. I think it’s a bug in Xcode Organizer that that the correct folder wasn’t created.
f) Just take any existing folder and copy it under correct name.
f) Disconnect the device and restart Xcode.
g) Reconnect the device and the you will see Organizer will start to import the DeviceSupport from your device.
And everything start to work!