How to setup the libGDX project using MOE plugin.
If i try to select ios-moe at the setup of libGDX project then my build fails with following error.
Generating app in /Users/USERNAME/Desktop/PaxPlay/libGDXProjects/SampleGame
Executing ‘/Users/USERNAME/Desktop/PaxPlay/libGDXProjects/SampleGame/gradlew clean --no-daemon’
To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/2.10/userguide/gradle_daemon.html.
Configuration on demand is an incubating feature.
FAILURE: Build failed with an exception.
What went wrong:
A problem occurred configuring root project ‘SampleGame’.
Whenever you see a failure with a class package starting with com.intel.moe, that means it is trying to use code from an older MOE version. Please upgrade your code to use the new classes which have a package prefix of org.moe.
So above issue resolves if you change the libGDX version to 1.9.5-SNAPSHOT and there are no more compiler error after that however there are still issues with the plugin.
When I tried to run the app on iOS this is what I got
fatal error: ‘MOE/MOE.h’ file not found
1 error generated.
** BUILD FAILED **
The following build commands failed:
CompileC /Users/rohitgoyal/Desktop/PaxPlay/libGDXProjects/SampleGame/ios-moe/build/moe/xcodebuild/obj/ios-moe.build/Debug-iphonesimulator/ios-moe.build/Objects-normal/i386/main.o ios-moe/main.cpp normal i386 c++ com.apple.compilers.llvm.clang.1_0.compiler
CompileC /Users/rohitgoyal/Desktop/PaxPlay/libGDXProjects/SampleGame/ios-moe/build/moe/xcodebuild/obj/ios-moe.build/Debug-iphonesimulator/ios-moe.build/Objects-normal/x86_64/main.o ios-moe/main.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
Was it a newly generated project using gdx-setup or an existing project updated to the new version?
For an existing project you will need to update the Xcode project as well. The easiest way would be if you could just replace your old Xcode project with a newly generated one, and re-add any necessary sources.