Thanks. I'm getting closer.
This is the command I'm running:
~/.m2/repository/org/robovm/robovm-dist/1.0.0-SNAPSHOT/unpacked/robovm-1.0.0-SNAPSHOT/bin/ios-sim launch ios/build/robovm/Hoplite.app --unbuffered required --timeout 90 --devicetypeid com.apple.CoreSimulator.SimDeviceType.iPhone-4s --args -rvm:log=warn
Which results in the error:
Session could not be started: Error Domain=NSPOSIXErrorDomain Code=3 "Unable to run app in Simulator" UserInfo=0x7fc449448360 {NSUnderlyingError=0x7fc449449d90 "Failed to lookup the process ID of com.magmafortress.hoplite after successful launch. Perhaps it crashed after launch.", NSLocalizedFailureReason=An error was encountered while running (Domain = NSPOSIXErrorDomain, Code = 3), NSLocalizedDescription=Unable to run app in Simulator}
I've tried uninstalling the app from the simulator first and also "Reset Content and Settings...", neither of which make any difference.
The "Hoplite.app" I'm pointing to is the one generated by "gradle ios:createIPA" - is this correct?
I'm just trying to get this working in the iPhone 4s simulator now as that works correctly when run from "gradle ios:launchIPhoneSimulator" but I get the same error with any other device.