英文:
RoboVM: IDEVICE_E_NO_DEVICE
问题
我试图在 iPod 上测试我的 libGDX 应用,但简单地说,它不起作用。
它可以构建到模拟器上,我还可以将具有相同 bundle ID 的 Xcode 项目推送到我的设备上,所以我实际上并没有能够将问题缩小到任何特定的原因。
我正在使用:
- Android Studio 4.0.1
- RoboVM 2.3.10-SNAPSHOT
- Xcode 11.7
- macOS Catalina 10.15.6
- iOS 13.7 (17H35)
我怀疑这可能并没有特别有帮助,但是以下是完整的错误信息:
[ERROR] 无法启动应用程序
org.robovm.libimobiledevice.LibIMobileDeviceException: IDEVICE_E_NO_DEVICE
at org.robovm.libimobiledevice.IDevice.checkResult(IDevice.java:197)
at org.robovm.libimobiledevice.IDevice.<init>(IDevice.java:57)
at org.robovm.compiler.target.ios.IOSTarget.createIOSDevLauncher(IOSTarget.java:201)
at org.robovm.compiler.target.ios.IOSTarget.createLauncher(IOSTarget.java:175)
at org.robovm.compiler.target.AbstractTarget.doLaunch(AbstractTarget.java:802)
at org.robovm.compiler.target.ios.IOSTarget.doLaunch(IOSTarget.java:784)
at org.robovm.compiler.target.AbstractTarget.launch(AbstractTarget.java:798)
at org.robovm.compiler.AppCompiler.launchAsync(AppCompiler.java:1024)
at org.robovm.idea.running.RoboVmRunProfileState.executeRun(RoboVmRunProfileState.java:72)
at org.robovm.idea.running.RoboVmRunProfileState.startProcess(RoboVmRunProfileState.java:118)
at com.intellij.execution.configurations.CommandLineState.execute(CommandLineState.java:61)
at org.robovm.idea.running.RoboVmRunner.doExecute(RoboVmRunner.java:79)
at com.intellij.execution.runners.GenericProgramRunner$execute$$inlined$runProfileStarter$1.executeAsync(GenericProgramRunner.kt:56)
at com.intellij.execution.runners.GenericProgramRunnerKt$startRunProfile$$inlined$runProfileStarter$1.executeAsync(GenericProgramRunner.kt:56)
at com.intellij.execution.impl.ExecutionManagerKtImpl$startRunProfile$startRunnable$1.run(ExecutionManagerKtImpl.kt:66)
at com.intellij.openapi.application.TransactionGuardImpl.runSyncTransaction(TransactionGuardImpl.java:83)
at com.intellij.openapi.application.TransactionGuardImpl.lambda$pollQueueLater$0(TransactionGuardImpl.java:68)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.doRun(LaterInvocator.java:441)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.runNextEvent(LaterInvocator.java:424)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:407)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:764)
at java.awt.EventQueue.access$500(EventQueue.java:98)
at java.awt.EventQueue$3.run(EventQueue.java:715)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:734)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:908)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:781)
at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:424)
at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:698)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:423)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
英文:
I'm trying to test my libGDX app on an iPod but, simply put, it ain't workin'.
It builds for the simulator, and I can also push an Xcode project with the same bundle ID to my device, so I've not really been able to narrow the problem down to anything.
I am using:
- Android Studio 4.0.1
- RoboVM 2.3.10-SNAPSHOT
- Xcode 11.7
- macOS Catalina 10.15.6
- iOS 13.7 (17H35)
I doubt it's particularly helpful, but here is the error in its entirety:
[ERROR] Couldn't start application
org.robovm.libimobiledevice.LibIMobileDeviceException: IDEVICE_E_NO_DEVICE
at org.robovm.libimobiledevice.IDevice.checkResult(IDevice.java:197)
at org.robovm.libimobiledevice.IDevice.(IDevice.java:57)
at org.robovm.compiler.target.ios.IOSTarget.createIOSDevLauncher(IOSTarget.java:201)
at org.robovm.compiler.target.ios.IOSTarget.createLauncher(IOSTarget.java:175)
at org.robovm.compiler.target.AbstractTarget.doLaunch(AbstractTarget.java:802)
at org.robovm.compiler.target.ios.IOSTarget.doLaunch(IOSTarget.java:784)
at org.robovm.compiler.target.AbstractTarget.launch(AbstractTarget.java:798)
at org.robovm.compiler.AppCompiler.launchAsync(AppCompiler.java:1024)
at org.robovm.idea.running.RoboVmRunProfileState.executeRun(RoboVmRunProfileState.java:72)
at org.robovm.idea.running.RoboVmRunProfileState.startProcess(RoboVmRunProfileState.java:118)
at com.intellij.execution.configurations.CommandLineState.execute(CommandLineState.java:61)
at org.robovm.idea.running.RoboVmRunner.doExecute(RoboVmRunner.java:79)
at com.intellij.execution.runners.GenericProgramRunner$execute$$inlined$runProfileStarter$1.executeAsync(GenericProgramRunner.kt:56)
at com.intellij.execution.runners.GenericProgramRunnerKt$startRunProfile$$inlined$runProfileStarter$1.executeAsync(GenericProgramRunner.kt:56)
at com.intellij.execution.impl.ExecutionManagerKtImpl$startRunProfile$startRunnable$1.run(ExecutionManagerKtImpl.kt:66)
at com.intellij.openapi.application.TransactionGuardImpl.runSyncTransaction(TransactionGuardImpl.java:83)
at com.intellij.openapi.application.TransactionGuardImpl.lambda$pollQueueLater$0(TransactionGuardImpl.java:68)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.doRun(LaterInvocator.java:441)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.runNextEvent(LaterInvocator.java:424)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:407)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:764)
at java.awt.EventQueue.access$500(EventQueue.java:98)
at java.awt.EventQueue$3.run(EventQueue.java:715)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:734)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:908)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:781)
at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:424)
at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:698)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:423)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
答案1
得分: 1
根据异常堆栈跟踪,我可以看到 RoboVM 在编译之前检测到了您的设备(因为它获取了您的 UDID),编译了项目,但在尝试通过 UDID 获取设备时部署失败。
如果您的设备不再连接,或者连接不是通过 USB 而是通过 wifi 进行的,就会出现这种情况。
可能您应该取消勾选您的设备的 通过网络连接
选项(可通过 Xcode->Windows->Device and Simulator 菜单访问),然后使用 USB 连接它。
英文:
From the exception stack traces I can see that RoboVM detected your device before compilation (as it got your UDID), compiled project and failed during deployment while trying to get device by UDID.
This happens if you device is not connected anymore or connected not over USB. E.g. over wifi.
Probably you should uncheck Connect via network
for your device (accessable by Xcode->Windows->Device and Simulator menu) and connect it using USB.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论