Eclipse simulator launch fails at Xcode build step

I’m running into some trouble trying to launch one of my projects using Eclipse’s Run As - specifically, it fails at the “moeMainReleaseIphonesimulatorXcodeBuild” step, though I haven’t been able to find any further diagnostic information.

I have other MOE projects in my workspace that launch properly, and I’ve been trying to narrow down what the distinction is between them, though with no luck so far. I tried to find a pertinent log file in the “build” directory, but to no avail. The closest-looking one is “build/moe/mail/xcode/Release-iphonesimulator/XcodeProvider.log”, but that file is empty.

I’ve tried adjusting the Program arguments in the launch configuration to add the “-X” and “-e” switches for extra debugging, but that didn’t seem to pass through to Maven as such… though that typically only narrows down the problem to being something inside the wrapped Gradle task anyway.

So if you can assist me in tracking down some pertinent logging information (or if this is a known pitfall I’ve hit), I’d appreciate it. Here’s the Eclipse console output, with some stuff relating to just Maven repository lookups snipped:

[INFO] Scanning for projects…
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building DWOTPL_IOS_HYBRID_PROJECTNAME 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> moe-maven:1.2.0:xcodebuild (default-cli) > compile @ DWOTPL_IOS_HYBRID_PROJECTNAME >>>

  • snip - Maven resolution chatter *

[INFO]
[INFO] — moe-maven:1.2.0:setupSDK (default) @ DWOTPL_IOS_HYBRID_PROJECTNAME —
[INFO] Gradle version in wrapper: 2.14.1
[INFO]
[INFO] — maven-dependency-plugin:2.10:copy (copy-native-lib) @ DWOTPL_IOS_HYBRID_PROJECTNAME —
[INFO] Configured Artifact: com.darwino:dwo-native-sqlite:ios-universal:1.5.0-SNAPSHOT:a

  • snip - Maven resolution chatter *

[INFO] Copying dwo-native-sqlite-1.5.0-SNAPSHOT-ios-universal.a to /Volumes/Terra/SourceTree/darwino-studio/dwo-studio/parent-dwo-studio-eclipse/darwino.eclipse.studio.templates/templates/BlankApplication/DWOTPL_APPNAME/DWOTPL_IOS_HYBRID_PROJECTNAME/libs/libJsonstoreUniversal.a
[INFO]
[INFO] — maven-resources-plugin:2.6:resources (default-resources) @ DWOTPL_IOS_HYBRID_PROJECTNAME —
[INFO] Using ‘UTF-8’ encoding to copy filtered resources.
[INFO] Copying 20 resources
[INFO]
[INFO] — maven-compiler-plugin:3.1:compile (default-compile) @ DWOTPL_IOS_HYBRID_PROJECTNAME —
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] <<< moe-maven:1.2.0:xcodebuild (default-cli) < compile @ DWOTPL_IOS_HYBRID_PROJECTNAME <<<
[INFO]
[INFO] — moe-maven:1.2.0:xcodebuild (default-cli) @ DWOTPL_IOS_HYBRID_PROJECTNAME —
[INFO] Gradle version in wrapper: 2.14.1
[INFO] Output directory: /Volumes/Terra/SourceTree/darwino-studio/dwo-studio/parent-dwo-studio-eclipse/darwino.eclipse.studio.templates/templates/BlankApplication/DWOTPL_APPNAME/DWOTPL_IOS_HYBRID_PROJECTNAME/target/classes
[INFO] Injars: -Pmoe.proguard.injars=/Volumes/Terra/SourceTree/darwino-studio/dwo-studio/parent-dwo-studio-eclipse/darwino.eclipse.studio.templates/templates/BlankApplication/DWOTPL_APPNAME/DWOTPL_IOS_HYBRID_PROJECTNAME/target/classes:/Users/jesse/.m2/repository/com/darwino/dwo-platform/1.5.0-SNAPSHOT/dwo-platform-1.5.0-SNAPSHOT.jar:/Users/jesse/.m2/repository/com/darwino/dwo-commons-runtime/1.5.0-SNAPSHOT/dwo-commons-runtime-1.5.0-SNAPSHOT.jar:/Users/jesse/.m2/repository/com/darwino/dwo-jre-jsonstore-jdbc/1.5.0-SNAPSHOT/dwo-jre-jsonstore-jdbc-1.5.0-SNAPSHOT.jar:/Users/jesse/.m2/repository/com/darwino/dwo-rdbc/1.5.0-SNAPSHOT/dwo-rdbc-1.5.0-SNAPSHOT.jar:/Users/jesse/.m2/repository/com/darwino/dwo-runtime-command/1.5.0-SNAPSHOT/dwo-runtime-command-1.5.0-SNAPSHOT.jar:/Users/jesse/.m2/repository/org/apache/httpcomponents/httpclient/4.3.3/httpclient-4.3.3.jar:/Users/jesse/.m2/repository/com/darwino/dwo-jre-rdbc-jdbc/1.5.0-SNAPSHOT/dwo-jre-rdbc-jdbc-1.5.0-SNAPSHOT.jar:/Users/jesse/.m2/repository/com/darwino/dwo-jsonstore-sql-sqlite/1.5.0-SNAPSHOT/dwo-jsonstore-sql-sqlite-1.5.0-SNAPSHOT.jar:/Users/jesse/.m2/repository/com/darwino/dwo-commons/1.5.0-SNAPSHOT/dwo-commons-1.5.0-SNAPSHOT.jar:/Users/jesse/.m2/repository/com/darwino/dwo-ios-moe-jsonstore/1.5.0-SNAPSHOT/dwo-ios-moe-jsonstore-1.5.0-SNAPSHOT.jar:/Users/jesse/.m2/repository/org/apache/httpcomponents/httpmime/4.3.3/httpmime-4.3.3.jar:/Users/jesse/.m2/repository/com/darwino/dwo-web-darwino/1.5.0-SNAPSHOT/dwo-web-darwino-1.5.0-SNAPSHOT.jar:/Users/jesse/.m2/repository/com/darwino/dwo-jsonstore-services/1.5.0-SNAPSHOT/dwo-jsonstore-services-1.5.0-SNAPSHOT.jar:/Users/jesse/.m2/repository/com/darwino/dwo-ios-moe-platform-hybrid/1.5.0-SNAPSHOT/dwo-ios-moe-platform-hybrid-1.5.0-SNAPSHOT.jar:/Users/jesse/.m2/repository/com/darwino/dwo-jsonstore-sql/1.5.0-SNAPSHOT/dwo-jsonstore-sql-1.5.0-SNAPSHOT.jar:/Users/jesse/.m2/repository/org/apache/httpcomponents/httpcore/4.3.2/httpcore-4.3.2.jar:/Users/jesse/.m2/repository/com/darwino/dwo-jre-commons/1.5.0-SNAPSHOT/dwo-jre-commons-1.5.0-SNAPSHOT.jar:/Users/jesse/.m2/repository/DWOTPL_MAVEN_GROUPID/DWOTPL_WEBUI_PROJECTNAME/0.0.1-SNAPSHOT/DWOTPL_WEBUI_PROJECTNAME-0.0.1-SNAPSHOT.jar:/Users/jesse/.m2/repository/com/darwino/dwo-rdbc-sqlite/1.5.0-SNAPSHOT/dwo-rdbc-sqlite-1.5.0-SNAPSHOT.jar:/Users/jesse/.m2/repository/com/darwino/dwo-mobile-platform-hybrid/1.5.0-SNAPSHOT/dwo-mobile-platform-hybrid-1.5.0-SNAPSHOT.jar:/Users/jesse/.m2/repository/com/darwino/dwo-mobile-platform/1.5.0-SNAPSHOT/dwo-mobile-platform-1.5.0-SNAPSHOT.jar:/Users/jesse/.m2/repository/com/darwino/dwo-sql/1.5.0-SNAPSHOT/dwo-sql-1.5.0-SNAPSHOT.jar:/Users/jesse/.m2/repository/com/darwino/dwo-services-social/1.5.0-SNAPSHOT/dwo-services-social-1.5.0-SNAPSHOT.jar:/Users/jesse/.m2/repository/com/darwino/dwo-ios-moe-platform/1.5.0-SNAPSHOT/dwo-ios-moe-platform-1.5.0-SNAPSHOT.jar:/Users/jesse/.m2/repository/com/darwino/dwo-ios-moe-commons/1.5.0-SNAPSHOT/dwo-ios-moe-commons-1.5.0-SNAPSHOT.jar:/Users/jesse/.m2/repository/com/darwino/dwo-commons-runtime-debug/1.5.0-SNAPSHOT/dwo-commons-runtime-debug-1.5.0-SNAPSHOT.jar:/Users/jesse/.m2/repository/DWOTPL_MAVEN_GROUPID/DWOTPL_SHARED_PROJECTNAME/0.0.1-SNAPSHOT/DWOTPL_SHARED_PROJECTNAME-0.0.1-SNAPSHOT.jar:/Users/jesse/.m2/repository/commons-logging/commons-logging/1.1.3/commons-logging-1.1.3.jar:/Users/jesse/.m2/repository/DWOTPL_MAVEN_GROUPID/DWOTPL_MOBILE_PROJECTNAME/0.0.1-SNAPSHOT/DWOTPL_MOBILE_PROJECTNAME-0.0.1-SNAPSHOT.jar:/Users/jesse/.m2/repository/com/darwino/dwo-jsonstore/1.5.0-SNAPSHOT/dwo-jsonstore-1.5.0-SNAPSHOT.jar:/Users/jesse/.m2/repository/com/darwino/dwo-jre-jdbc/1.5.0-SNAPSHOT/dwo-jre-jdbc-1.5.0-SNAPSHOT.jar:/Users/jesse/.m2/repository/com/darwino/dwo-services/1.5.0-SNAPSHOT/dwo-services-1.5.0-SNAPSHOT.jar:/Users/jesse/.m2/repository/com/darwino/dwo-jsonstore-http/1.5.0-SNAPSHOT/dwo-jsonstore-http-1.5.0-SNAPSHOT.jar:/Users/jesse/.m2/repository/com/darwino/dwo-command/1.5.0-SNAPSHOT/dwo-command-1.5.0-SNAPSHOT.jar:/Users/jesse/.m2/repository/com/darwino/dwo-jsonstore-command/1.5.0-SNAPSHOT/dwo-jsonstore-command-1.5.0-SNAPSHOT.jar:/Users/jesse/.m2/repository/commons-codec/commons-codec/1.6/commons-codec-1.6.jar:/Users/jesse/.m2/repository/com/darwino/dwo-services-social-rest/1.5.0-SNAPSHOT/dwo-services-social-rest-1.5.0-SNAPSHOT.jar
[INFO] Output directory: /Volumes/Terra/SourceTree/darwino-studio/dwo-studio/parent-dwo-studio-eclipse/darwino.eclipse.studio.templates/templates/BlankApplication/DWOTPL_APPNAME/DWOTPL_IOS_HYBRID_PROJECTNAME/target/classes
[INFO] Injars: -Pmoe.proguard.injars=/Volumes/Terra/SourceTree/darwino-studio/dwo-studio/parent-dwo-studio-eclipse/darwino.eclipse.studio.templates/templates/BlankApplication/DWOTPL_APPNAME/DWOTPL_IOS_HYBRID_PROJECTNAME/target/classes:/Users/jesse/.m2/repository/com/darwino/dwo-platform/1.5.0-SNAPSHOT/dwo-platform-1.5.0-SNAPSHOT.jar:/Users/jesse/.m2/repository/com/darwino/dwo-commons-runtime/1.5.0-SNAPSHOT/dwo-commons-runtime-1.5.0-SNAPSHOT.jar:/Users/jesse/.m2/repository/com/darwino/dwo-jre-jsonstore-jdbc/1.5.0-SNAPSHOT/dwo-jre-jsonstore-jdbc-1.5.0-SNAPSHOT.jar:/Users/jesse/.m2/repository/com/darwino/dwo-rdbc/1.5.0-SNAPSHOT/dwo-rdbc-1.5.0-SNAPSHOT.jar:/Users/jesse/.m2/repository/com/darwino/dwo-runtime-command/1.5.0-SNAPSHOT/dwo-runtime-command-1.5.0-SNAPSHOT.jar:/Users/jesse/.m2/repository/org/apache/httpcomponents/httpclient/4.3.3/httpclient-4.3.3.jar:/Users/jesse/.m2/repository/com/darwino/dwo-jre-rdbc-jdbc/1.5.0-SNAPSHOT/dwo-jre-rdbc-jdbc-1.5.0-SNAPSHOT.jar:/Users/jesse/.m2/repository/com/darwino/dwo-jsonstore-sql-sqlite/1.5.0-SNAPSHOT/dwo-jsonstore-sql-sqlite-1.5.0-SNAPSHOT.jar:/Users/jesse/.m2/repository/com/darwino/dwo-commons/1.5.0-SNAPSHOT/dwo-commons-1.5.0-SNAPSHOT.jar:/Users/jesse/.m2/repository/com/darwino/dwo-ios-moe-jsonstore/1.5.0-SNAPSHOT/dwo-ios-moe-jsonstore-1.5.0-SNAPSHOT.jar:/Users/jesse/.m2/repository/org/apache/httpcomponents/httpmime/4.3.3/httpmime-4.3.3.jar:/Users/jesse/.m2/repository/com/darwino/dwo-web-darwino/1.5.0-SNAPSHOT/dwo-web-darwino-1.5.0-SNAPSHOT.jar:/Users/jesse/.m2/repository/com/darwino/dwo-jsonstore-services/1.5.0-SNAPSHOT/dwo-jsonstore-services-1.5.0-SNAPSHOT.jar:/Users/jesse/.m2/repository/com/darwino/dwo-ios-moe-platform-hybrid/1.5.0-SNAPSHOT/dwo-ios-moe-platform-hybrid-1.5.0-SNAPSHOT.jar:/Users/jesse/.m2/repository/com/darwino/dwo-jsonstore-sql/1.5.0-SNAPSHOT/dwo-jsonstore-sql-1.5.0-SNAPSHOT.jar:/Users/jesse/.m2/repository/org/apache/httpcomponents/httpcore/4.3.2/httpcore-4.3.2.jar:/Users/jesse/.m2/repository/com/darwino/dwo-jre-commons/1.5.0-SNAPSHOT/dwo-jre-commons-1.5.0-SNAPSHOT.jar:/Users/jesse/.m2/repository/DWOTPL_MAVEN_GROUPID/DWOTPL_WEBUI_PROJECTNAME/0.0.1-SNAPSHOT/DWOTPL_WEBUI_PROJECTNAME-0.0.1-SNAPSHOT.jar:/Users/jesse/.m2/repository/com/darwino/dwo-rdbc-sqlite/1.5.0-SNAPSHOT/dwo-rdbc-sqlite-1.5.0-SNAPSHOT.jar:/Users/jesse/.m2/repository/com/darwino/dwo-mobile-platform-hybrid/1.5.0-SNAPSHOT/dwo-mobile-platform-hybrid-1.5.0-SNAPSHOT.jar:/Users/jesse/.m2/repository/com/darwino/dwo-mobile-platform/1.5.0-SNAPSHOT/dwo-mobile-platform-1.5.0-SNAPSHOT.jar:/Users/jesse/.m2/repository/com/darwino/dwo-sql/1.5.0-SNAPSHOT/dwo-sql-1.5.0-SNAPSHOT.jar:/Users/jesse/.m2/repository/com/darwino/dwo-services-social/1.5.0-SNAPSHOT/dwo-services-social-1.5.0-SNAPSHOT.jar:/Users/jesse/.m2/repository/com/darwino/dwo-ios-moe-platform/1.5.0-SNAPSHOT/dwo-ios-moe-platform-1.5.0-SNAPSHOT.jar:/Users/jesse/.m2/repository/com/darwino/dwo-ios-moe-commons/1.5.0-SNAPSHOT/dwo-ios-moe-commons-1.5.0-SNAPSHOT.jar:/Users/jesse/.m2/repository/com/darwino/dwo-commons-runtime-debug/1.5.0-SNAPSHOT/dwo-commons-runtime-debug-1.5.0-SNAPSHOT.jar:/Users/jesse/.m2/repository/DWOTPL_MAVEN_GROUPID/DWOTPL_SHARED_PROJECTNAME/0.0.1-SNAPSHOT/DWOTPL_SHARED_PROJECTNAME-0.0.1-SNAPSHOT.jar:/Users/jesse/.m2/repository/commons-logging/commons-logging/1.1.3/commons-logging-1.1.3.jar:/Users/jesse/.m2/repository/DWOTPL_MAVEN_GROUPID/DWOTPL_MOBILE_PROJECTNAME/0.0.1-SNAPSHOT/DWOTPL_MOBILE_PROJECTNAME-0.0.1-SNAPSHOT.jar:/Users/jesse/.m2/repository/com/darwino/dwo-jsonstore/1.5.0-SNAPSHOT/dwo-jsonstore-1.5.0-SNAPSHOT.jar:/Users/jesse/.m2/repository/com/darwino/dwo-jre-jdbc/1.5.0-SNAPSHOT/dwo-jre-jdbc-1.5.0-SNAPSHOT.jar:/Users/jesse/.m2/repository/com/darwino/dwo-services/1.5.0-SNAPSHOT/dwo-services-1.5.0-SNAPSHOT.jar:/Users/jesse/.m2/repository/com/darwino/dwo-jsonstore-http/1.5.0-SNAPSHOT/dwo-jsonstore-http-1.5.0-SNAPSHOT.jar:/Users/jesse/.m2/repository/com/darwino/dwo-command/1.5.0-SNAPSHOT/dwo-command-1.5.0-SNAPSHOT.jar:/Users/jesse/.m2/repository/com/darwino/dwo-jsonstore-command/1.5.0-SNAPSHOT/dwo-jsonstore-command-1.5.0-SNAPSHOT.jar:/Users/jesse/.m2/repository/commons-codec/commons-codec/1.6/commons-codec-1.6.jar:/Users/jesse/.m2/repository/com/darwino/dwo-services-social-rest/1.5.0-SNAPSHOT/dwo-services-social-rest-1.5.0-SNAPSHOT.jar
[INFO] null:moeMainProGuard
[INFO] :moeMainRetrolambda
[INFO] :moeMainDex
[INFO] :moeMainReleaseX86Dex2Oat
[INFO] :moeMainResourcePackager
[INFO] :moeMainStartupProvider
[INFO] :moeMainReleaseI386IphonesimulatorXcodeProvider
[INFO] :moeMainReleaseX86_64Dex2Oat
[INFO] :moeMainReleaseX86_64IphonesimulatorXcodeProvider
[INFO] :moeXcodeProjectGenerator SKIPPED
[INFO] :moeMainReleaseIphonesimulatorXcodeBuild FAILED
[INFO]
[INFO] BUILD FAILED
[INFO]
[INFO] Total time: 23.726 secs
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 26.106 s
[INFO] Finished at: 2016-11-09T11:05:34-05:00
[INFO] Final Memory: 23M/597M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.multi-os-engine:moe-maven:1.2.0:xcodebuild (default-cli) on project DWOTPL_IOS_HYBRID_PROJECTNAME: Could not execute build using Gradle distribution ‘https://services.gradle.org/distributions/gradle-2.14.1-bin.zip’. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

Dear jesse-gallagher,

please try the following:

  • In Eclipse, edit your run configuration and set the active configuration to “Debug”
  • Run from Eclipse (probably will fail again, but this step is needed)
  • Open your Xcode project
  • Go to target settings > Build Phases > Compile Sources (MOE)
  • Comment out the line "$GRADLE_EXEC" --daemon moeXcodeInternal -s by placing a # in front of it
  • Select a simulator target
  • Try to build from Xode

Ah! That led me on the path to find an in-retrospect-blatantly-obvious problem I’d missed: the Xcode project wasn’t even present to begin with. Once I generated a new project, copied in its Xcode info, and tweaked it for a little while, I got it working again.

Thanks for the help!