[iOS 10.3] Installation on iPhone failed - ERROR: Failed to upgradeonly on device, Unknown error

Hello,

an application which was running on the simulator without problems could not be installed on the iPhone 6. Signing was not the problem. And I could install and Xcode-Obj-C-apps on the iPhone without any problem.

I could reproduce the problem with the simplest possible MOE app (just created a default Androis project and added a default MOE module).

I noticed that in spite of the error the app seems to be installed and is able to run. Of course - debugging on the device isn’t possible in the current situation.

I would highly appreciate any hint/help how to solve the problem.

Here are the log messages showing the bug/failure:

Incremental java compilation is an incubating feature.
Using already downloaded SDK: /Users/bernert/.moe/moe-sdk-1.3.3
:ios:compileJava UP-TO-DATE
:ios:processResources UP-TO-DATE
:ios:classes UP-TO-DATE
:ios:moeMainProGuard UP-TO-DATE
:ios:moeMainRetrolambda UP-TO-DATE
:ios:moeGenerateUIObjCInterfaces
:ios:moeMainDex UP-TO-DATE
:ios:moeMainReleaseArm64Dex2Oat UP-TO-DATE
:ios:moeMainResourcePackager UP-TO-DATE
:ios:moeMainStartupProvider UP-TO-DATE
:ios:moeMainReleaseArm64IphoneosXcodeProvider
:ios:moeMainReleaseArmDex2Oat UP-TO-DATE
:ios:moeMainReleaseArmv7IphoneosXcodeProvider
:ios:moeMainReleaseArmv7sIphoneosXcodeProvider
:ios:moeMainReleaseIphoneosXcodeBuild
:ios:moeLaunch
Waiting for iOS Device…
Uploading:

Installing:

Command failed: [/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/bin/java, -Dfile.encoding=UTF-8, -Duser.country=DE, -Duser.language=de, -Duser.variant, -jar, /Users/bernert/.moe/moe-sdk-1.3.3/tools/ios-device.jar, --udid=9da92657f18ba43d898cbbb3b68e69b31b2dc1be, --app-path=/Users/bernert/Desktop/MyApplication/ios/build/moe/xcodebuild/Release-iphoneos/proj.app, --wait-for-device, --launch-arg=-args, --install-mode=upgradeonly]

:ios:moeLaunch FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:ios: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

We were able to reproduce this issue with iOS 10.3.1. We are looking into it.

We have released Moe 1.3.4 which should include support for iOS 10.3 devices.

A hotfix for the Gradle plugin was released as 1.3.5

Is there a build for 1.3.5 available, or do I have to compile it from source?

In the meantime 1.3.6 was also released you just need to update the Gradle plugin version in your build.gradle.