【问题标题】:Cannot load all assets on iphone 4无法在 iphone 4 上加载所有资产
【发布时间】:2016-04-06 00:35:41
【问题描述】:

我决定开始在 iOS 上进行测试,因为 Android 版本即将完成。 在我的应用程序编译完成并且启动画面完成后,我收到此错误。我正在使用 android studio 在 Mac (El capitan) 上开发。我正在使用 LibGdx 和 RoboVM,似乎 RoboVM 的问题导致了此错误。 网上没有解决办法,请帮忙。

[ERROR] AppLauncher failed with an exception:
[ERROR] org.robovm.libimobiledevice.LibIMobileDeviceException: IDEVICE_E_UNKNOWN_ERROR
[ERROR]     at org.robovm.libimobiledevice.IDevice.checkResult(IDevice.java:189)
[ERROR]     at org.robovm.libimobiledevice.IDeviceConnection.receive(IDeviceConnection.java:102)
[ERROR]     at org.robovm.libimobiledevice.util.AppLauncher.receiveGdbPacket(AppLauncher.java:443)
[ERROR]     at org.robovm.libimobiledevice.util.AppLauncher.receiveGdbPacket(AppLauncher.java:425)
[ERROR]     at org.robovm.libimobiledevice.util.AppLauncher.pipeStdOut(AppLauncher.java:779)
[ERROR]     at org.robovm.libimobiledevice.util.AppLauncher.launchInternal(AppLauncher.java:727)
[ERROR]     at org.robovm.libimobiledevice.util.AppLauncher.launch(AppLauncher.java:1045)
[ERROR]     at org.robovm.compiler.target.ios.AppLauncherProcess$1.run(AppLauncherProcess.java:60

gdxVersion = '1.9.1'

roboVMVersion = '1.12.0'

编辑: 当我加载所有资源时,似乎会引发此错误,如果我只选择大约 80% 的资源,它加载正常(如果我尝试加载所有资源,它会使其达到大约 96%,然后崩溃,我使用 AssetManager)。 iOS 设备是否有某种尺寸限制?我的资产文件夹只有 16.9MB。

编辑 2: 好的,所以我几乎可以肯定这是因为我在启动时加载了所有资产,也许对于 ihpone4 GPU 来说太多了?毕竟现在已经很老了。这可能是原因吗?我的意思是我收到的错误消息毫无意义,认为这种类型的错误会给出“内存不足”的消息,但我对 iOS 真的很陌生,所以可能不是。

【问题讨论】:

    标签: ios performance libgdx robovm


    【解决方案1】:

    它可能与您 iPhone 4 上的 IOS 版本有关。您是否尝试过支持 IOS 9 的设备?

    【讨论】:

    • 不,不幸的是,我还没有,#indie 挣扎。但我正在寻找高低来借一个
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-09-19
    • 2020-06-19
    • 2021-08-10
    • 2020-04-28
    • 2021-05-10
    • 2019-05-08
    相关资源
    最近更新 更多