Skip to content

iOS export issues #830

Open
Open
@jackchapm

Description

@jackchapm

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions