Skip to content

iOS export issues #830

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jackchapm opened this issue May 10, 2025 · 0 comments
Open

iOS export issues #830

jackchapm opened this issue May 10, 2025 · 0 comments

Comments

@jackchapm
Copy link

jackchapm commented May 10, 2025

Exporting an iOS app in the latest version (v0.13.1) leads to various errors and warnings.

  1. When exporting an iOS app in Godot, the following error is produced
  ERROR: Failed to open '.../jvm/ios/jvm/usercode.a'.
  ERROR: ./editor/export/editor_export_platform.h:243 - Export: Could not copy a file at path ".../jvm/ios/jvm/usercode.a" to "ios/usercode.a".

Expected behaviour: usercode.a should be copied from its actual location at jvm/ios/usercode.a

  1. After moving the usercode file to the expected location the export succeeds however, there are multiple warnings referencing several paths to a developers local machine
Image
  1. After running the app generated by the export, the following exception is thrown
Godot-JVM: VM set to graal_native_image
Exception in thread "main": java.lang.NoSuchMethodError
java.lang.NoSuchMethodError: godot.runtime.Bootstrap.initJar(Ljava/lang/ClassLoader;)V
	at org.graalvm.nativeimage.builder/com.oracle.svm.core.jni.functions.JNIFunctions$Support.getMethodID(JNIFunctions.java:1848)
	at org.graalvm.nativeimage.builder/com.oracle.svm.core.jni.functions.JNIFunctions$Support.getMethodID(JNIFunctions.java:1833)
	at org.graalvm.nativeimage.builder/com.oracle.svm.core.jni.functions.JNIFunctions.GetMethodID(JNIFunctions.java:443)
Exception in thread "main": java.lang.NoSuchMethodError
java.lang.NoSuchMethodError: godot.runtime.Bootstrap.initNativeImage()V
	at org.graalvm.nativeimage.builder/com.oracle.svm.core.jni.functions.JNIFunctions$Support.getMethodID(JNIFunctions.java:1848)
	at org.graalvm.nativeimage.builder/com.oracle.svm.core.jni.functions.JNIFunctions$Support.getMethodID(JNIFunctions.java:1833)
	at org.graalvm.nativeimage.builder/com.oracle.svm.core.jni.functions.JNIFunctions.GetMethodID(JNIFunctions.java:443)

Exception in thread "main": java.lang.NoSuchMethodError
java.lang.NoSuchMethodError: godot.runtime.Bootstrap.getVersion()Ljava/lang/String;
	at org.graalvm.nativeimage.builder/com.oracle.svm.core.jni.functions.JNIFunctions$Support.getMethodID(JNIFunctions.java:1848)
	at org.graalvm.nativeimage.builder/com.oracle.svm.core.jni.functions.JNIFunctions$Support.getMethodID(JNIFunctions.java:1833)
	at org.graalvm.nativeimage.builder/com.oracle.svm.core.jni.functions.JNIFunctions.GetMethodID(JNIFunctions.java:443)

This is likely related to the manual moving of the usercode.a as further static libraries may not be found in their expected locations

Steps to reproduce

The project being build can be found in mobile/ directory of https://github.com/jackchapm/multiplayer-cards
The export presets aren't committed to the repo, so your own configuration must be made.
The latest export templates are being used from here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant