Here is what I would like to do… using AppleScript or another easy method (hopefully)
create a XOJO method with a signature something like : x=Run_Xcode(f,device)
where F is a folderitem the points to an .XcodeProj file.
and device indicates (iPhone,iPad etc in the iOSSimulator, -OR- the users physical device)
When this method is execute it would perform the following steps
- Launch Xcode
- Load the project specified by “F”
- CLEAN the project (very important)
- set the destination to the device specified
- run the app (launching it in iOSSimulator if physical device not selected)
I can easily get the first two by simply using f.launch
but the last 3 I cannot seem to get to work.
Using SYSTEM EVENTS to simulate menu clicking is a problem, as the available device family choices are somewhat controlled by the Xcode project (ie. an iPhone app won’t have iPad on the menu and vice versa)