RTC Forums
November 23, 2024, 10:40:07 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: Configuring XCode Projects to find RTC SDK Lib files  (Read 12101 times)
D.Tkalcec (RTC)
Administrator
*****
Posts: 1881


« on: September 22, 2011, 08:16:03 PM »

For the FPC compiler to find RTC SDK files, you can either copy the complete "Lib" folder from the RTC SDK package into the "/Developer/Embarcadero/fmi" folder (quick and dirty solution), or ...

You can add the path to the RTC SDK “Lib” folder (located on your Windows PC, made accessible to Mac over LAN) to the FPC search path. Unfortunatelly, there  is no “parameter” for adding FPC search paths in XCode directly, so you will need to do this manually for every XCode Project. And not only once, but every time you recreate XCode Project files by using the “dpr2xcode” tool, because all your changes will be overwritten by "dpr2xcode". To avoid having to make these changes too often, use "dpr2xcode" ONLY if you have made changes to the Project file itself (changed the Project icon, for example). There is no need to recreate XCode Project files if you have only changed forms or units inside the Project.

To add the RTC SDK paths to FPC, you will need to modify the file "xcode/<ProjectName>.xcodeproj/project.pbxproj". The path to the RTC SDK “Lib” folder needs to be added as two new “-Fu” parameters. Once for iOS-Simulator and once for iOS-Device compilation, both of are configured through the “shellScript” parameter.

The best place to add the RTC SDK Lib path is after the FireMonkey path, so you should search for “-Fu/Developer/Embarcadero/fmi” in the above mentioned XCode Project file. You will find 2 such instances in the "ShellScript" line and you should add the path to the RTC SDK Lib folder directly after each "-Fu/Developer/Embarcadero/fmi" instance.

For example, if you have made the complete RTC SDK folder on your Windows PC available to your Mac OSX through a network share named “RTC_SDK” (read/write access rights to that folder will be required for FPC compilation to work), you should add “-Fu/Volumes/RTC_SDK/Lib” after both “-Fu/Developer/Embarcaedro/fmi” locations. One is for the iOS-Simulator, the other one for the iOS device. That will be enough to let FPC know where to look for RTC SDK files.

Should you still get "File not found" errors when trying to compile a Project using RTC files, make sure the path you have used is correct and that Mac OSX has read and write access to that folder.

PS. Before configuring access to the RTC SDK, you will need to have OSX 10.6 or 10.7, the latest XCode 4.x version and both packages provided by Embarcadero (included with RAD Studio XE2) installed on your Mac. To make sure your Mac OSX configuration is correct, create an empty "FireMonkey iOS HD" Project, use "dpr2xcode" to create XCode Project files and try to run that Project from XCode - either inside the iOS-Simulator or directly on your iOS device (iPhone or iPad).

Best Regards,
Danijel Tkalcec
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.022 seconds with 17 queries.