Michael
Michael
It seems the newest sim_launcher should include changes which would enable it to work with Xcode 4.3, but I just tested it and it doesn't appear to work.
I have a custom build of the sim_launcher gem that I have been using which I will email to you to use until the official gem works.
Cheers,
Geoff
Michael
I just ran briefly through the thread, but having just installed Xcode 4.3 on a fresh new box, I've realized Apple implemented their "modules" features of Xcode starting with 4.3.
Xcode doesn't ship with the 4.3 simulator anymore and doesn't install command line tools.
Those have to be downloaded separately through the preferences/downloads pane.
I don't know how this will work when upgrading from 4.2 to 4.3 though.
/kra
Michael
I think the new 4.3 structure is a lot nicer and more self contained, but it is going to be a pain for a little while until all the third party tools that assumes /Developer locations get upgraded.
Does Apple provide any environment variables for the developer root directory that we could use instead of hardcoding? I think within Xcode there are paths like this - if you look at the shell script that runs OCUnit tests as part of the build, it references SYSTEM_DEVELOPER_DIR. Not sure if we can use them outside Xcode though.
- Stew
For some reason, early in my development of Victor (my Java front end for Frank) I abandoned the third-party launcher and launched the simulator via the command line. Like this:
<simulator-path> -SimulateApplication <application-path> -SimulateDevice <device-name> -currentSDKRoot <sdk-root>
The variable bits are:
<simulator-path> -- the path to the simulator executable (inside the iPhone Simulator.app bundle). See below.
<application-path> -- the path to your iOS app executable (inside your .app bundle).
<device-name> -- which device you want to simulate: iPhone, iPhone (Retina), iPad.
<sdk-root> -- the path to the iPhone Simulator SDK that you want to run against (which determines which version of the iOS to simulate).
Given that the simulator executable and the simulator SDKs all live in predictable places below the Developer directory, all you gotta do is specify which Developer directory and iOS version to use, and you can calculate the rest. Here's some pseudocode:
// Set these two parameters...
DEVELOPER_DIR = /Applications/Xcode.app/Contents/Developer
IOS_VERSION = 5.0
// Then calculate the rest...
PLATFORM_DIR = ${DEVELOPER_DIR}/Platforms/iPhoneSimulator.platform
SIMULATOR_PATH = ${PLATFORM_DIR}/Developer/Applications/iPhone Simulator.app/Contents/MacOS/iPhone Simulator
SDK_ROOT = ${PLATFORM_DIR}/Developer/SDKs/iPhoneSimulator${IOS_VERSION}.sdk
It probably wouldn't be difficult to create a Cucumber step to build those paths and launch the simulator directly.
Dale
--
Dale Emery
Consultant to software teams and leaders
http://dhemery.com
Cheers,
Pete
--
Typed on a little bitty keyboard
I think you need to point at the executable /inside/ your .app package/file.
Dale
Pete,
I would like to test, but I will need the URL to pull the source of the sim_launcher 0.3.8
Do you have a test procedure document that I can follow?
Rodney
Hello all,I'm struggling to get the Simulator working correctly from Cucumber - the Simulator app will fire up, but sits with a black screen while the terminal shouts about the ping failing. Everything else appears OK - the Simulator will fire up from Xcode, and the Symbiote server is running happily.I'm running Xcode 4.3.2 and the Simulator is 5.1 - I've updated both the sim_launcher to 0.3.8 and Command Line Tools to 2307. XCODE_PATH is set to `xcode-select -print-path` in env.rb. Does anyone have any suggestions?