Little Eclipse launcher issue

I just installed a brand new machine with the latest software (moe, eclipse, xcode…). But launching my application failed, probably because it did not find the right simulator (the error message is a bit cryptic). Then I edited the launch configuration, explicitly selected a simulator and then got it to work.
Would be great if it checks that the default selected simulator works, and also select a recent one by default (not iPhone 4). This would make the developer experience better.

Dear Philippe Riand,

do you remember what the cryptic message was?

No, as I cannot reproduce it. I deleted all my existing launch configurations but it now systematically picks-up iphone 4 by default.
The message I got earlier was showing some ‘null’ values, telling me that it was not able to find an emulator. It disappeared right after I open the launch configurations dialog and selected the moe config. The combobox set a valid value for the device.

I believe it was this message specifically: https://github.com/multi-os-engine/moe-ios-simulator-launcher/blob/master/simlauncher/main.m#L155 . The latter part said something like “specified simulator is only iOS (null)”.

Dear jesse-gallagher,

can you please tell me which Xcode version, Gradle plugin version, etc this happened with?

This was using Xcode 8.1, Eclipse plugin 1.2.0.v201609301828-10, the Maven plugin 1.2.0, build.gradle set to use “version: ‘1.2.+’”, and Gradle 2.14.1.

Actually, I tried a new VM today for the first time and I got the same error, which I bypassed by editing the launch configuration. But this time I got a copy of the log :slight_smile:

See the ’ null’ when it is reference the simulator:

[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building dwo-demo-dominodisc-moe-hybrid 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] >>> moe-maven:1.2.0:xcodebuild (default-cli) > compile @ dwo-demo-dominodisc-moe-hybrid >>>
[INFO] 
[INFO] --- moe-maven:1.2.0:setupSDK (default) @ dwo-demo-dominodisc-moe-hybrid ---
[INFO] Gradle version in wrapper: 2.14.1
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ dwo-demo-dominodisc-moe-hybrid ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 20 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ dwo-demo-dominodisc-moe-hybrid ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] <<< moe-maven:1.2.0:xcodebuild (default-cli) < compile @ dwo-demo-dominodisc-moe-hybrid <<<
[INFO] 
[INFO] --- moe-maven:1.2.0:xcodebuild (default-cli) @ dwo-demo-dominodisc-moe-hybrid ---
[INFO] Gradle version in wrapper: 2.14.1
[INFO] Output directory: /Users/priand/Darwino/source/darwino-demo/darwino-demo/dwo-demo-dominodisc/dwo-demo-dominodisc-moe-hybrid/target/classes
[INFO] Injars: -Pmoe.proguard.injars=/Users/priand/Darwino/source/darwino-demo/darwino-demo/dwo-demo-dominodisc/dwo-demo-dominodisc-moe-hybrid/target/classes:/Users/priand/.m2/repository/com/darwino/dwo-jre-jdbc/1.5.0-SNAPSHOT/dwo-jre-jdbc-1.5.0-SNAPSHOT.jar:/Users/priand/.m2/repository/com/darwino/dwo-rdbc-sqlite/1.5.0-SNAPSHOT/dwo-rdbc-sqlite-1.5.0-SNAPSHOT.jar:/Users/priand/.m2/repository/com/darwino/dwo-mobile-platform/1.5.0-SNAPSHOT/dwo-mobile-platform-1.5.0-SNAPSHOT.jar:/Users/priand/.m2/repository/com/darwino/dwo-sql/1.5.0-SNAPSHOT/dwo-sql-1.5.0-SNAPSHOT.jar:/Users/priand/.m2/repository/com/darwino/dwo-mobile-platform-hybrid/1.5.0-SNAPSHOT/dwo-mobile-platform-hybrid-1.5.0-SNAPSHOT.jar:/Users/priand/.m2/repository/org/apache/httpcomponents/httpclient/4.3.3/httpclient-4.3.3.jar:/Users/priand/.m2/repository/com/darwino/dwo-commons-runtime/1.5.0-SNAPSHOT/dwo-commons-runtime-1.5.0-SNAPSHOT.jar:/Users/priand/.m2/repository/com/darwino/dwo-ios-moe-jsonstore/1.5.0-SNAPSHOT/dwo-ios-moe-jsonstore-1.5.0-SNAPSHOT.jar:/Users/priand/.m2/repository/com/darwino/dwo-command/1.5.0-SNAPSHOT/dwo-command-1.5.0-SNAPSHOT.jar:/Users/priand/.m2/repository/com/darwino/dwo-jre-jsonstore-jdbc/1.5.0-SNAPSHOT/dwo-jre-jsonstore-jdbc-1.5.0-SNAPSHOT.jar:/Users/priand/.m2/repository/org/apache/httpcomponents/httpmime/4.3.3/httpmime-4.3.3.jar:/Users/priand/.m2/repository/com/darwino/dwo-services-social-rest/1.5.0-SNAPSHOT/dwo-services-social-rest-1.5.0-SNAPSHOT.jar:/Users/priand/.m2/repository/com/darwino/dwo-commons/1.5.0-SNAPSHOT/dwo-commons-1.5.0-SNAPSHOT.jar:/Users/priand/.m2/repository/com/darwino/dwo-platform/1.5.0-SNAPSHOT/dwo-platform-1.5.0-SNAPSHOT.jar:/Users/priand/.m2/repository/com/darwino/dwo-services/1.5.0-SNAPSHOT/dwo-services-1.5.0-SNAPSHOT.jar:/Users/priand/.m2/repository/com/darwino/dwo-runtime-command/1.5.0-SNAPSHOT/dwo-runtime-command-1.5.0-SNAPSHOT.jar:/Users/priand/.m2/repository/com/darwino/dwo-jsonstore-sql-sqlite/1.5.0-SNAPSHOT/dwo-jsonstore-sql-sqlite-1.5.0-SNAPSHOT.jar:/Users/priand/.m2/repository/org/apache/httpcomponents/httpcore/4.3.2/httpcore-4.3.2.jar:/Users/priand/.m2/repository/com/darwino/dwo-services-social/1.5.0-SNAPSHOT/dwo-services-social-1.5.0-SNAPSHOT.jar:/Users/priand/.m2/repository/com/darwino/dwo-commons-runtime-debug/1.5.0-SNAPSHOT/dwo-commons-runtime-debug-1.5.0-SNAPSHOT.jar:/Users/priand/.m2/repository/com/darwino/dwo-jre-commons/1.5.0-SNAPSHOT/dwo-jre-commons-1.5.0-SNAPSHOT.jar:/Users/priand/.m2/repository/com/darwino/dwo-ios-moe-commons/1.5.0-SNAPSHOT/dwo-ios-moe-commons-1.5.0-SNAPSHOT.jar:/Users/priand/.m2/repository/com/darwino/dwo-jsonstore-sql/1.5.0-SNAPSHOT/dwo-jsonstore-sql-1.5.0-SNAPSHOT.jar:/Users/priand/.m2/repository/com/darwino/dwo-jre-rdbc-jdbc/1.5.0-SNAPSHOT/dwo-jre-rdbc-jdbc-1.5.0-SNAPSHOT.jar:/Users/priand/.m2/repository/com/darwino/dwo-rdbc/1.5.0-SNAPSHOT/dwo-rdbc-1.5.0-SNAPSHOT.jar:/Users/priand/.m2/repository/com/darwino/dwo-ios-moe-platform/1.5.0-SNAPSHOT/dwo-ios-moe-platform-1.5.0-SNAPSHOT.jar:/Users/priand/.m2/repository/commons-logging/commons-logging/1.1.3/commons-logging-1.1.3.jar:/Users/priand/.m2/repository/com/darwino/dwo-web-darwino/1.5.0-SNAPSHOT/dwo-web-darwino-1.5.0-SNAPSHOT.jar:/Users/priand/.m2/repository/com/darwino/dwo-jsonstore/1.5.0-SNAPSHOT/dwo-jsonstore-1.5.0-SNAPSHOT.jar:/Users/priand/.m2/repository/com/darwino/dwo-jsonstore-http/1.5.0-SNAPSHOT/dwo-jsonstore-http-1.5.0-SNAPSHOT.jar:/Users/priand/.m2/repository/com/darwino/dwo-jsonstore-command/1.5.0-SNAPSHOT/dwo-jsonstore-command-1.5.0-SNAPSHOT.jar:/Users/priand/.m2/repository/com/darwino/dwo-ios-moe-platform-hybrid/1.5.0-SNAPSHOT/dwo-ios-moe-platform-hybrid-1.5.0-SNAPSHOT.jar:/Users/priand/.m2/repository/com/darwino/demo/dominodisc/dwo-demo-dominodisc-webui/0.0.1-SNAPSHOT/dwo-demo-dominodisc-webui-0.0.1-SNAPSHOT.jar:/Users/priand/.m2/repository/commons-codec/commons-codec/1.6/commons-codec-1.6.jar:/Users/priand/.m2/repository/com/darwino/dwo-jsonstore-services/1.5.0-SNAPSHOT/dwo-jsonstore-services-1.5.0-SNAPSHOT.jar:/Users/priand/.m2/repository/com/darwino/demo/dominodisc/dwo-demo-dominodisc-mobile/0.0.1-SNAPSHOT/dwo-demo-dominodisc-mobile-0.0.1-SNAPSHOT.jar:/Users/priand/.m2/repository/com/darwino/dwo-demo-web-darwino/1.5.0-SNAPSHOT/dwo-demo-web-darwino-1.5.0-SNAPSHOT.jar:/Users/priand/.m2/repository/com/darwino/demo/dominodisc/dwo-demo-dominodisc-shared/0.0.1-SNAPSHOT/dwo-demo-dominodisc-shared-0.0.1-SNAPSHOT.jar
[INFO] Output directory: /Users/priand/Darwino/source/darwino-demo/darwino-demo/dwo-demo-dominodisc/dwo-demo-dominodisc-moe-hybrid/target/classes
[INFO] Injars: -Pmoe.proguard.injars=/Users/priand/Darwino/source/darwino-demo/darwino-demo/dwo-demo-dominodisc/dwo-demo-dominodisc-moe-hybrid/target/classes:/Users/priand/.m2/repository/com/darwino/dwo-jre-jdbc/1.5.0-SNAPSHOT/dwo-jre-jdbc-1.5.0-SNAPSHOT.jar:/Users/priand/.m2/repository/com/darwino/dwo-rdbc-sqlite/1.5.0-SNAPSHOT/dwo-rdbc-sqlite-1.5.0-SNAPSHOT.jar:/Users/priand/.m2/repository/com/darwino/dwo-mobile-platform/1.5.0-SNAPSHOT/dwo-mobile-platform-1.5.0-SNAPSHOT.jar:/Users/priand/.m2/repository/com/darwino/dwo-sql/1.5.0-SNAPSHOT/dwo-sql-1.5.0-SNAPSHOT.jar:/Users/priand/.m2/repository/com/darwino/dwo-mobile-platform-hybrid/1.5.0-SNAPSHOT/dwo-mobile-platform-hybrid-1.5.0-SNAPSHOT.jar:/Users/priand/.m2/repository/org/apache/httpcomponents/httpclient/4.3.3/httpclient-4.3.3.jar:/Users/priand/.m2/repository/com/darwino/dwo-commons-runtime/1.5.0-SNAPSHOT/dwo-commons-runtime-1.5.0-SNAPSHOT.jar:/Users/priand/.m2/repository/com/darwino/dwo-ios-moe-jsonstore/1.5.0-SNAPSHOT/dwo-ios-moe-jsonstore-1.5.0-SNAPSHOT.jar:/Users/priand/.m2/repository/com/darwino/dwo-command/1.5.0-SNAPSHOT/dwo-command-1.5.0-SNAPSHOT.jar:/Users/priand/.m2/repository/com/darwino/dwo-jre-jsonstore-jdbc/1.5.0-SNAPSHOT/dwo-jre-jsonstore-jdbc-1.5.0-SNAPSHOT.jar:/Users/priand/.m2/repository/org/apache/httpcomponents/httpmime/4.3.3/httpmime-4.3.3.jar:/Users/priand/.m2/repository/com/darwino/dwo-services-social-rest/1.5.0-SNAPSHOT/dwo-services-social-rest-1.5.0-SNAPSHOT.jar:/Users/priand/.m2/repository/com/darwino/dwo-commons/1.5.0-SNAPSHOT/dwo-commons-1.5.0-SNAPSHOT.jar:/Users/priand/.m2/repository/com/darwino/dwo-platform/1.5.0-SNAPSHOT/dwo-platform-1.5.0-SNAPSHOT.jar:/Users/priand/.m2/repository/com/darwino/dwo-services/1.5.0-SNAPSHOT/dwo-services-1.5.0-SNAPSHOT.jar:/Users/priand/.m2/repository/com/darwino/dwo-runtime-command/1.5.0-SNAPSHOT/dwo-runtime-command-1.5.0-SNAPSHOT.jar:/Users/priand/.m2/repository/com/darwino/dwo-jsonstore-sql-sqlite/1.5.0-SNAPSHOT/dwo-jsonstore-sql-sqlite-1.5.0-SNAPSHOT.jar:/Users/priand/.m2/repository/org/apache/httpcomponents/httpcore/4.3.2/httpcore-4.3.2.jar:/Users/priand/.m2/repository/com/darwino/dwo-services-social/1.5.0-SNAPSHOT/dwo-services-social-1.5.0-SNAPSHOT.jar:/Users/priand/.m2/repository/com/darwino/dwo-commons-runtime-debug/1.5.0-SNAPSHOT/dwo-commons-runtime-debug-1.5.0-SNAPSHOT.jar:/Users/priand/.m2/repository/com/darwino/dwo-jre-commons/1.5.0-SNAPSHOT/dwo-jre-commons-1.5.0-SNAPSHOT.jar:/Users/priand/.m2/repository/com/darwino/dwo-ios-moe-commons/1.5.0-SNAPSHOT/dwo-ios-moe-commons-1.5.0-SNAPSHOT.jar:/Users/priand/.m2/repository/com/darwino/dwo-jsonstore-sql/1.5.0-SNAPSHOT/dwo-jsonstore-sql-1.5.0-SNAPSHOT.jar:/Users/priand/.m2/repository/com/darwino/dwo-jre-rdbc-jdbc/1.5.0-SNAPSHOT/dwo-jre-rdbc-jdbc-1.5.0-SNAPSHOT.jar:/Users/priand/.m2/repository/com/darwino/dwo-rdbc/1.5.0-SNAPSHOT/dwo-rdbc-1.5.0-SNAPSHOT.jar:/Users/priand/.m2/repository/com/darwino/dwo-ios-moe-platform/1.5.0-SNAPSHOT/dwo-ios-moe-platform-1.5.0-SNAPSHOT.jar:/Users/priand/.m2/repository/commons-logging/commons-logging/1.1.3/commons-logging-1.1.3.jar:/Users/priand/.m2/repository/com/darwino/dwo-web-darwino/1.5.0-SNAPSHOT/dwo-web-darwino-1.5.0-SNAPSHOT.jar:/Users/priand/.m2/repository/com/darwino/dwo-jsonstore/1.5.0-SNAPSHOT/dwo-jsonstore-1.5.0-SNAPSHOT.jar:/Users/priand/.m2/repository/com/darwino/dwo-jsonstore-http/1.5.0-SNAPSHOT/dwo-jsonstore-http-1.5.0-SNAPSHOT.jar:/Users/priand/.m2/repository/com/darwino/dwo-jsonstore-command/1.5.0-SNAPSHOT/dwo-jsonstore-command-1.5.0-SNAPSHOT.jar:/Users/priand/.m2/repository/com/darwino/dwo-ios-moe-platform-hybrid/1.5.0-SNAPSHOT/dwo-ios-moe-platform-hybrid-1.5.0-SNAPSHOT.jar:/Users/priand/.m2/repository/com/darwino/demo/dominodisc/dwo-demo-dominodisc-webui/0.0.1-SNAPSHOT/dwo-demo-dominodisc-webui-0.0.1-SNAPSHOT.jar:/Users/priand/.m2/repository/commons-codec/commons-codec/1.6/commons-codec-1.6.jar:/Users/priand/.m2/repository/com/darwino/dwo-jsonstore-services/1.5.0-SNAPSHOT/dwo-jsonstore-services-1.5.0-SNAPSHOT.jar:/Users/priand/.m2/repository/com/darwino/demo/dominodisc/dwo-demo-dominodisc-mobile/0.0.1-SNAPSHOT/dwo-demo-dominodisc-mobile-0.0.1-SNAPSHOT.jar:/Users/priand/.m2/repository/com/darwino/dwo-demo-web-darwino/1.5.0-SNAPSHOT/dwo-demo-web-darwino-1.5.0-SNAPSHOT.jar:/Users/priand/.m2/repository/com/darwino/demo/dominodisc/dwo-demo-dominodisc-shared/0.0.1-SNAPSHOT/dwo-demo-dominodisc-shared-0.0.1-SNAPSHOT.jar
[INFO] null:moeMainProGuard UP-TO-DATE
[INFO] :moeMainRetrolambda UP-TO-DATE
[INFO] :moeMainDex UP-TO-DATE
[INFO] :moeMainDebugX86Dex2Oat UP-TO-DATE
[INFO] :moeMainResourcePackager UP-TO-DATE
[INFO] :moeMainStartupProvider UP-TO-DATE
[INFO] :moeMainDebugI386IphonesimulatorXcodeProvider
[INFO] :moeMainDebugX86_64Dex2Oat UP-TO-DATE
[INFO] :moeMainDebugX86_64IphonesimulatorXcodeProvider
[INFO] :moeXcodeProjectGenerator SKIPPED
[INFO] :moeMainDebugIphonesimulatorXcodeBuild
[INFO] :moeLaunch
[INFO] 
[INFO] BUILD SUCCESSFUL
[INFO] 
[INFO] Total time: 2.352 secs
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.305 s
[INFO] Finished at: 2016-11-22T22:55:37-05:00
[INFO] Final Memory: 19M/277M
[INFO] ------------------------------------------------------------------------



:moeLaunch
 FAILED

Error: application requires iOS 8.0 but specified simulator is only iOS (null).
Command failed: [null]



FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':moeLaunch'.
> Process exited with non-zero exit value

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.


BUILD FAILED

Total time: 5.651 secs