Http://www.simonjstuart.com/2011/09/03/rad-studio-xe2-setting-it-up-for-a-mac-step-by-step-illustrated-guide/
With Delphi xe2 now available for everyone to enjoy, I figured it's time I start providing some useful information to help you make the most of it!
One of the primary new features of xe2 is the ability to produce MacOSX applications, and to do that, there are additional steps you must take in order to prepare both your windows development system, and your MacOSX deployment/Testing System for this task.
This document makes the following assumptions:
- You 've installed Delphi (or rad studio) xe2 on a Windows 64bit System
- You 've installed Delphi (or rad studio) xe2 to the default paths
So you 've just installed Delphi (or rad studio) xe2...Congratulations and welcome to the new and exciting world of cross-platform Delphi development!
Still, you're not quite ready to start deploying your applications to your MacOSX machine just yet! Fear not, however, as the remaining steps shocould take you just a few additional minutes and you'll be good to go!
On your windows development Machine
- Open Windows Explorer (Flag + E)
- GoC: \ Program Files (x86) \ Embarcadero \ rad studio \ 9.0 \ paserver
- CopySetup_paserver.zipOver to your MacOSX device. you can do this any way you like: Share a folder on your PC and copy it from the Mac, place the file on a Mac-compatible USB flash drive and copy it that way .... Whatever works best
You!
- RunSetup_paserver.exe(Important note:Shocould either the setup_paserver.zip or setup_paserver.exefiles
Be missing, you shoshould contact Embarcadero support as something has gone wrong with your xe2 installation!)
Paserver windows setup (step 1)
Paserver windows setup (step 2)
Paserver windows setup (Step 3)
- Select"I accept the terms of the license agreement"And pressNext
Paserver windows setup (step 4)
Paserver windows setup (step 5)
Paserver windows setup (Step 6)
- Wait for the process to finish (Cocould be anything from a minute or longer)
Paserver windows setup (Step 7)
On your MacOSX deployment/debugging Machine
- InFinder, Locate the folder into which you placedSetup_paserver.zip, AndDouble-clickOn the ZIP file.
Paserver MacOSX setup (step 1)
- Double-clickOn the file namedSetup_paserver(Noting the absence of. Zip) To begin the paserver setup on your MacOSX system.
Paserver Mac setup (step 2)
Paserver Mac setup (Step 3)
Paserver Mac setup (step 4)
- Select"I accept the terms of the license agreement"And pressNext
Paserver Mac setup (step 5)
- PressNext(Note: This guide presumes that you're installing paserver on your MacOSX machine using the default location. if you elect to install to a different location, you will need to accommodate for that in future portions of this
Guide!)
Paserver Mac setup (Step 6)
- PressInstall(Remember: the installation process can take anything from a few seconds to several minutes)
Paserver Mac setup (Step 7)
- PressDone
- Go backFinder, And navigate to"/Users/% username %/applications/Embarcadero/paserver"(Substitute% Username %For your MacOSX account username)
Paserver Mac setup (Step 8)
- To run paserver on your Mac (Which is necessary to deploy and debug Delphi applications for the OSX Platform), You can simplyDouble-clickOnPaserverApplication file
Paserver Mac setup (Step 9)
- SimplyEnter a good passwordAnd pressEnter/Return key
You can also create a desktop/dock shortcut cut toPaserverApplication to make it easier to run on demand .... Or, if you're clever .....
Make paserver start automatically on your Mac when you switch it on (
Or log in)
- Since you already haveFinderOpen in the"/Users/% username %/applications/Embarcadero/paserver"Folder...
- Bring upContext Menu(By doingControl + Click) OnPaserver. CommandFile
- GoOpenAnd clickTextedit
Paserver Autorun at startup/login (step 1-3)
- Modify the second line so that it resembles the following:
"/Users/% username %/applications/Embarcadero/paserver"-Password = s0m3gr8tp455w0rd
Including quotes, and remembering to substitute% Username %With your MacOSX user account name! Essentially you're just adding-Password =...To the end of the line!
Paserver Autorun at startup/login (step 4)
- Save the file(UsingCommand + S) And thenQuit textexit
- OpenSystem Preferences, SelectUsers & groups, Then pressLogin ItemsButton.
- Press+Button to add a new item to your login Group
- Locate"/Users/% username %/applications/Embarcadero/paserver. Command"And pressAdd.
- Tick the box (inHideColumn) corresponding to your paserver. Command entry
Paserver Autorun at startup/login (step 5)
Paserver will now automatically start (And hide itself) Whenever you log in to your Mac, eliminating the annoyance of forgetting to start it before attempting to deploy/debug a Delphi application to the OSX platform.
Deploying your first firemonkey application to your MacOSX Machine
- Open or create your firemonkey Project
- OnProject Manager, You will needRight-clickOnTarget platforms, ClickAdd Platform, And selectOS XFrom the list, followed by clickingOK
- Right-click onOS XEntry underTarget platformsOnProject ManagerAnd clickAssign remote Profile
- ClickAdd...
- EnterProfile name
Xe2 MacOSX firemonkey Application Deployment (step 1)
- ClickNext>
- EnterHost Name(Or IP address) Of Your MacOSX machine, and yourPasswordAs specified for paserver on your Mac.
Xe2 MacOSX firemonkey Application Deployment (step 2)
- You may useTest connectionTo ensure that your details are correct
- ClickNext>, FollowedFinish
- Select your new remote profile from the List (E.g.My Mac DeviceAs per the screenshot for Step 1) And clickOK
That's it! Your profile will be used for all MacOSX deployments by default (Unless you specify a different profile for specific projects). PressingF9Will deploy your application to your MacOSX machine (Presuming you have selected
TheOS XEntry inTarget platformsOnProject Manager), And you'll be able to debug your application from Delphi whilst it is running on your Mac!
Just because pictures speak louder than words...
Firemonkey 3D GUI demo on OSX lion
You can find the official paserver documentation on Embarcadero's documentation wiki.