gpt4 book ai didi

java - RoboVM 错误 - dyld : Library not loaded

转载 作者:行者123 更新时间:2023-11-29 10:44:44 25 4
gpt4 key购买 nike

我正在尝试使用带有 libGDX 的 RoboVM 来运行我的 iOS 游戏。我的项目是用 maven 构建的,并使用 maven robovm 插件在 iOS 模拟器中测试应用程序。但是,当我尝试运行它时,出现以下错误:

[ERROR] dyld: Library not loaded: @rpath/iPhoneSimulatorRemoteClient.framework/Versions/A/iPhoneSimulatorRemoteClient
[ERROR] Referenced from: /Users/<user>/.m2/repository/org/robovm/robovm-dist/0.0.9/unpacked/robovm-0.0.9/bin/ios-sim
[ERROR] Reason: image not found

我知道这两个问题 herehere ,但一个从未得到回答,另一个的回答似乎没有解决我的具体错误。

我正在运行以下 maven 命令来构建和测试项目:

mvn clean integration-test -Pios

我的 pom.xml 看起来像这样:

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>[parent groupid]</groupId>
<artifactId>[parent artifactid]</artifactId>
<version>[parent version]</version>
</parent>

<artifactId>[artifactid]</artifactId>
<packaging>jar</packaging>

<properties>
<mainClass>[Main Class]</mainClass>
</properties>

<dependencies>
<dependency>
<groupId>[core groupid]</groupId>
<artifactId>[core artifactid]</artifactId>
<version>${project.version}</version>
</dependency>

<dependency>
<groupId>com.badlogicgames.gdx</groupId>
<artifactId>gdx</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>

<dependency>
<groupId>com.badlogicgames.gdx</groupId>
<artifactId>gdx-backend-robovm</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
</dependencies>

<build>
<resources>
<resource>
<directory>../assets</directory>
</resource>
</resources>

<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.16</version>
<configuration>
<forkMode>once</forkMode>
<argLine>-Djava.library.path=${project.build.directory}/natives/</argLine>
</configuration>
</plugin>

<plugin>
<groupId>org.robovm</groupId>
<artifactId>robovm-maven-plugin</artifactId>
<version>0.0.9.1</version>
<configuration>
<config>
<mainClass>${mainClass}</mainClass>
<os>ios</os>
<arch>x86</arch>
</config>
</configuration>
<executions>
<execution>
<id>iphone-sim</id>
<phase>integration-test</phase>
<goals>
<goal>iphone-sim</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

有谁知道可能导致此错误的原因是什么?我对 OS X 和 RoboVM 都不熟悉,所以我完全不知所措。

最佳答案

此问题应该已在 RoboVM 0.0.10 中修复。因此,将您的 pom 更改为使用 RoboVM Maven 插件的 0.0.10.1 版本,看看是否会有所不同。

关于java - RoboVM 错误 - dyld : Library not loaded,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22775444/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com