我最近在Android Studio中使用LibGDX构建Multi-OS引擎项目时出错。这是Multi-OS Engine控制台的输出:
ERROR: Failed to upgradeonly on device, Unknown error
Command failed: [/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/bin/java, -Dfile.encoding=UTF-8, -Duser.country=US, -Duser.language=en, -Duser.variant, -jar, /Users/camilo/.moe/moe-sdk-1.3.0-beta-2/tools/ios-device.jar, --app-path=/path/to/my/project/ios-moe/build/moe/xcodebuild/Debug-iphoneos/MyApp.app, --wait-for-device, --launch-arg=-args, --launch-arg=--debug, --install-mode=upgradeonly]
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':ios-moe:moeLaunch'.
> Process exited with non-zero exit value
* Try:
:ios-moe:moeLaunch FAILED
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
我的gradle看起来像这样:
buildscript {
...
dependencies {
classpath 'com.android.tools.build:gradle:2.2.3'
classpath 'org.multi-os-engine:moe-gradle:1.3.3'
}
}
LibGDX版本= 1.9.6
尽管如此,应用程序已安装在设备中,但我无法在控制台中看到日志。当我将构建目标更改为模拟器时,它可以正常工作。
答案 0 :(得分:0)
问题解决了,我的iPhone已更新到10.3.1而Xcode没有与最新的iOS版本对应的DeveloperDiskImage,所以我不得不将Xcode更新到版本8.3.1。