question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ios module build error, empty project without any code changes

See original GitHub issue

Issue details

I generated an empty project with the latest gdx-setup.jar without any code changes, then run ios module with the following errors.

Reproduction steps/code

Version of libGDX and/or relevant dependencies

MD5 (gdx-setup.jar) = 00f1f8c2514121507143712d058b9977
MacBook Pro (Apple M1 Pro)
IntelliJ IDEA 2022.1.1 (Ultimate Edition)
Build #IU-221.5591.52, built on May 11, 2022
gdxVersion = '1.11.0'
roboVMVersion = '2.3.16'
gradle wrapper version: 7.3.3
MobiVM idea plugin version: 2.3.16

Stacktrace

RoboVM console log:

[INFO] 10:59:20.940 RoboVM plugin initialized
[INFO] 11:01:01.005 Loading default RoboVM config properties file: /Users/ebnbin/Downloads/test/ios/robovm.properties
[INFO] 11:01:01.005 Loading default RoboVM config file: /Users/ebnbin/Downloads/test/ios/robovm.xml
[INFO] 11:01:01.007 Building executable in /Users/ebnbin/Downloads/test/ios/robovm-build/tmp/ios/ios/arm64-simulator
[INFO] 11:01:01.007 Installation of app in /Users/ebnbin/Downloads/test/ios/robovm-build/tmp/ios/ios/arm64-simulator
[INFO] 11:01:01.009 classpath entry: /Users/ebnbin/Downloads/test/core/build/classes/java/main
[INFO] 11:01:01.009 classpath entry: /Users/ebnbin/Downloads/test/ios/build/classes/java/main
[INFO] 11:01:01.009 classpath entry: /Users/ebnbin/.gradle/caches/modules-2/files-2.1/com.badlogicgames.gdx/gdx-backend-robovm/1.11.0/bedda1c3f9ecf153a9edd245831e620371614d64/gdx-backend-robovm-1.11.0.jar
[INFO] 11:01:01.009 classpath entry: /Users/ebnbin/.gradle/caches/modules-2/files-2.1/com.badlogicgames.gdx/gdx-platform/1.11.0/a55afe221d06ea79c011fa235971eae22aa9419d/gdx-platform-1.11.0-natives-ios.jar
[INFO] 11:01:01.009 classpath entry: /Users/ebnbin/.gradle/caches/modules-2/files-2.1/com.badlogicgames.gdx/gdx/1.11.0/ffe1206d1004cd9e40027e28964be0fea0399af7/gdx-1.11.0.jar
[INFO] 11:01:01.009 classpath entry: /Users/ebnbin/.gradle/caches/modules-2/files-2.1/com.badlogicgames.gdx/gdx-jnigen-loader/2.3.1/2d472f69243631fbcb3d4c3f93dd2e137a6cb084/gdx-jnigen-loader-2.3.1.jar
[INFO] 11:01:01.009 Using SDK boot classpath
[INFO] 11:01:01.148 Cleaning output dir /Users/ebnbin/Downloads/test/ios/robovm-build/tmp/ios/ios/arm64-simulator
[INFO] 11:01:01.175 Compiling classes using 10 threads
[INFO] 11:01:01.310 Compiling com.mygdx.game.IOSLauncher (ios arm64-simulator release)
[INFO] 11:01:01.623 Compiling com.mygdx.game.MyGdxGame (ios arm64-simulator release)
[INFO] 11:01:03.059 Compiled 2 classes in 1.88 seconds
[INFO] 11:01:03.061 Linking 4371 classes (ios arm64-simulator release)
[INFO] 11:01:03.178 50905 methods out of 51391 included in the executable
[INFO] 11:01:04.814 Building ios binary /Users/ebnbin/Downloads/test/ios/robovm-build/tmp/ios/ios/arm64-simulator/IOSLauncher
[INFO] 11:01:04.821 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -o /Users/ebnbin/Downloads/test/ios/robovm-build/tmp/ios/ios/arm64-simulator/IOSLauncher -Wl,-filelist,/Users/ebnbin/Downloads/test/ios/robovm-build/tmp/ios/ios/arm64-simulator/objects0 -w -L /Users/ebnbin/.robovm-sdks/robovm-2.3.16/lib/vm/ios/arm64-simulator -ObjC -exported_symbols_list /Users/ebnbin/Downloads/test/ios/robovm-build/tmp/ios/ios/arm64-simulator/exported_symbols -Wl,-no_implicit_dylibs -Wl,-dead_strip -fPIC --target=arm64-apple-ios9.0-simulator -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/ebnbin/Downloads/test/ios/robovm-build/tmp/ios/ios/arm64-simulator/Entitlements-Simulated.plist -lrobovm-bc -force_load /Users/ebnbin/.robovm-sdks/robovm-2.3.16/lib/vm/ios/arm64-simulator/librobovm-rt.a -lrobovm-debug -lrobovm-core -lgc -lpthread -ldl -lm -lz -liconv -lsqlite3 -framework Foundation -framework UIKit -framework QuartzCore -framework CoreGraphics -framework OpenAL -framework AudioToolbox -framework AVFoundation -framework GameController -force_load /Users/ebnbin/.robovm/cache/ios/arm64-simulator/release/Users/ebnbin/.gradle/caches/modules-2/files-2.1/com.badlogicgames.gdx/gdx-platform/1.11.0/a55afe221d06ea79c011fa235971eae22aa9419d/gdx-platform-1.11.0-natives-ios.jar.extracted/META-INF/robovm/ios/libs/gdx.xcframework/ios-arm64_x86_64-simulator/libgdx.a -force_load /Users/ebnbin/.robovm/cache/ios/arm64-simulator/release/Users/ebnbin/.gradle/caches/modules-2/files-2.1/com.badlogicgames.gdx/gdx-platform/1.11.0/a55afe221d06ea79c011fa235971eae22aa9419d/gdx-platform-1.11.0-natives-ios.jar.extracted/META-INF/robovm/ios/libs/ObjectAL.xcframework/ios-arm64_x86_64-simulator/libObjectAL.a -lz -framework MobileCoreServices -Xlinker -sdk_version -Xlinker 15.5 -Xlinker -rpath -Xlinker /usr/lib/swift -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath 
[INFO] 11:01:04.821     -Xlinker @loader_path/Frameworks
[ERROR] 11:01:05.448 Undefined symbols for architecture arm64:
[ERROR] 11:01:05.448   "_glInvalidateFramebuffer", referenced from:
[ERROR] 11:01:05.448       _Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glInvalidateFramebuffer in libgdx.a(iosgl30.o)
[ERROR] 11:01:05.517      (maybe you meant: _Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glInvalidateFramebuffer__IILjava_nio_IntBuffer_2, _Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glInvalidateFramebuffer , _str_glInvalidateFramebuffer_00 )
[ERROR] 11:01:05.517   "_glProgramParameteri", referenced from:
[ERROR] 11:01:05.517       _Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glProgramParameteri in libgdx.a(iosgl30.o)
[ERROR] 11:01:05.586      (maybe you meant: _Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glProgramParameteri, _str_glProgramParameteri_00 , _Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glProgramParameteri__III )
[ERROR] 11:01:05.586   "_glResumeTransformFeedback", referenced from:
[ERROR] 11:01:05.586       _Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glResumeTransformFeedback in libgdx.a(iosgl30.o)
[ERROR] 11:01:05.655      (maybe you meant: _Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glResumeTransformFeedback__, _str_glResumeTransformFeedback_00 , _Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glResumeTransformFeedback )
[ERROR] 11:01:05.655   "_glPauseTransformFeedback", referenced from:
[ERROR] 11:01:05.655       _Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glPauseTransformFeedback in libgdx.a(iosgl30.o)
[ERROR] 11:01:05.745      (maybe you meant: _Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glPauseTransformFeedback, _str_glPauseTransformFeedback_00 , _Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glPauseTransformFeedback__ )


// ...
// too long...
// ...


[ERROR] 11:01:21.867   "_glFramebufferTexture2D", referenced from:
[ERROR] 11:01:21.868       _Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glFramebufferTexture2D in libgdx.a(iosgl20.o)
[ERROR] 11:01:21.946      (maybe you meant: _str_glFramebufferTexture2D_00, _Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glFramebufferTexture2D , _Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glFramebufferTexture2D__IIIII )
[ERROR] 11:01:21.946   "_glGenQueries", referenced from:
[ERROR] 11:01:21.946       _Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glGenQueries__I_3II in libgdx.a(iosgl30.o)
[ERROR] 11:01:21.946       _Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glGenQueries__ILjava_nio_IntBuffer_2 in libgdx.a(iosgl30.o)
[ERROR] 11:01:22.029      (maybe you meant: _str_glGenQueries_00, _Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glGenQueries__I_3II , _Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glGenQueries__ILjava_nio_IntBuffer_2 )
[ERROR] 11:01:22.029   "_glInvalidateSubFramebuffer", referenced from:
[ERROR] 11:01:22.029       _Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glInvalidateSubFramebuffer in libgdx.a(iosgl30.o)
[ERROR] 11:01:22.101      (maybe you meant: _Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glInvalidateSubFramebuffer__IILjava_nio_IntBuffer_2IIII, _str_glInvalidateSubFramebuffer_00 , _Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glInvalidateSubFramebuffer )
[ERROR] 11:01:22.101   "_glCompileShader", referenced from:
[ERROR] 11:01:22.102       _Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glCompileShader in libgdx.a(iosgl20.o)
[ERROR] 11:01:22.179      (maybe you meant: _str_glCompileShader_00, _Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glCompileShader__I , _Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glCompileShader )
[ERROR] 11:01:22.179   "_glBindRenderbuffer", referenced from:
[ERROR] 11:01:22.179       _Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glBindRenderbuffer in libgdx.a(iosgl20.o)
[ERROR] 11:01:22.265      (maybe you meant: _str_glBindRenderbuffer_00, _Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glBindRenderbuffer__II , _Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glBindRenderbuffer )
[ERROR] 11:01:22.278 ld: symbol(s) not found for architecture arm64
[ERROR] 11:01:22.289 clang: error: linker command failed with exit code 1 (use -v to see invocation)
[ERROR] Couldn't compile app
org.apache.commons.exec.ExecuteException: Command '[/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++, -o, /Users/ebnbin/Downloads/test/ios/robovm-build/tmp/ios/ios/arm64-simulator/IOSLauncher, -Wl,-filelist,/Users/ebnbin/Downloads/test/ios/robovm-build/tmp/ios/ios/arm64-simulator/objects0, -w, -L, /Users/ebnbin/.robovm-sdks/robovm-2.3.16/lib/vm/ios/arm64-simulator, -ObjC, -exported_symbols_list, /Users/ebnbin/Downloads/test/ios/robovm-build/tmp/ios/ios/arm64-simulator/exported_symbols, -Wl,-no_implicit_dylibs, -Wl,-dead_strip, -fPIC, --target=arm64-apple-ios9.0-simulator, -isysroot, /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk, -Xlinker, -sectcreate, -Xlinker, __TEXT, -Xlinker, __entitlements, -Xlinker, /Users/ebnbin/Downloads/test/ios/robovm-build/tmp/ios/ios/arm64-simulator/Entitlements-Simulated.plist, -lrobovm-bc, -force_load, /Users/ebnbin/.robovm-sdks/robovm-2.3.16/lib/vm/ios/arm64-simulator/librobovm-rt.a, -lrobovm-debug, -lrobovm-core, -lgc, -lpthread, -ldl, -lm, -lz, -liconv, -lsqlite3, -framework, Foundation, -framework, UIKit, -framework, QuartzCore, -framework, CoreGraphics, -framework, OpenAL, -framework, AudioToolbox, -framework, AVFoundation, -framework, GameController, -force_load, /Users/ebnbin/.robovm/cache/ios/arm64-simulator/release/Users/ebnbin/.gradle/caches/modules-2/files-2.1/com.badlogicgames.gdx/gdx-platform/1.11.0/a55afe221d06ea79c011fa235971eae22aa9419d/gdx-platform-1.11.0-natives-ios.jar.extracted/META-INF/robovm/ios/libs/gdx.xcframework/ios-arm64_x86_64-simulator/libgdx.a, -force_load, /Users/ebnbin/.robovm/cache/ios/arm64-simulator/release/Users/ebnbin/.gradle/caches/modules-2/files-2.1/com.badlogicgames.gdx/gdx-platform/1.11.0/a55afe221d06ea79c011fa235971eae22aa9419d/gdx-platform-1.11.0-natives-ios.jar.extracted/META-INF/robovm/ios/libs/ObjectAL.xcframework/ios-arm64_x86_64-simulator/libObjectAL.a, -lz, -framework, MobileCoreServices, -Xlinker, -sdk_version, -Xlinker, 15.5, -Xlinker, -rpath, -Xlinker, /usr/lib/swift, -Xlinker, -rpath, -Xlinker, @executable_path/Frameworks, -Xlinker, -rpath, -Xlinker, @loader_path/Frameworks]' failed  (Exit value: 1)
	at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:404)
	at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:166)
	at org.robovm.compiler.util.Executor.exec(Executor.java:344)
	at org.robovm.compiler.util.ToolchainUtil.link(ToolchainUtil.java:409)
	at org.robovm.compiler.target.AbstractTarget.doBuild(AbstractTarget.java:285)
	at org.robovm.compiler.target.ios.IOSTarget.doBuild(IOSTarget.java:340)
	at org.robovm.compiler.target.AbstractTarget.build(AbstractTarget.java:279)
	at org.robovm.compiler.Linker.link(Linker.java:449)
	at org.robovm.compiler.AppCompiler.compile(AppCompiler.java:521)
	at org.robovm.compiler.AppCompiler.build(AppCompiler.java:958)
	at org.robovm.idea.compilation.RoboVmCompileTask$3.doCompile(RoboVmCompileTask.java:277)
	at org.robovm.idea.compilation.RoboVmCompilerThread.run(RoboVmCompilerThread.java:69)

Please select the affected platforms

  • Android
  • iOS
  • HTML/GWT
  • Windows
  • Linux
  • macOS

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
Berstaniocommented, Jun 4, 2022

@obigu Okay, I will open a pr. To remember to remove this again we could maybe keep this issue open and add it to a 1.11.1 milestone? Or opening a reverting pr already and tag this with the milestone?

1reaction
Berstaniocommented, Jun 3, 2022

Could you keep the issue open @ebnbin ? The problem with the setup definitely needs to be fixed on libGDX site.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[SOLVED] React Native 0.70.0 iOs fresh project errors out on ...
I just wanted to try out the latest release from yesterday which is 0.70, but did not work at all as a default...
Read more >
Value for SWIFT_VERSION cannot be empty - Stack Overflow
It's very important to clear the build folder after changing Code Generation Language. This can be done by pressing Command-Shift-K or by ...
Read more >
Xcode 12 beta 4 - error compiling … | Apple Developer Forums
ARCHS variables have been deleted, build the project again with a Simulator selected and it should build without the error of "ARCHS[@]: unbound...
Read more >
iOS Native Modules
Xcode is built for iOS development, and using it will help you to quickly resolve smaller errors like code syntax. Create Custom Native...
Read more >
Kotlin Multiplatform Project for Android and iOS: Getting Started
Handles the error if it occurs. After a lot of code without visual changes, build and run the app to see that the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found