Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

building for iOS, but linking in object file built for iOS Simulator #698

Answered by dkimitsa
HAL9000Thomas asked this question in Q&A
Discussion options

Hi, I want to export an ipa of my libGDX game so I can upload it to testflight. I encountered the following error during creation:

ld: in /Users/myname/.robovm/cache/ios/arm64/release/Users/myname/.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(OALAction.o), building for iOS, but linking in object file built for iOS Simulator, file '/Users/myname/.robovm/cache/ios/arm64/release/Users/myname/.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'
clang: error: linker command failed with exit code 1 (use -v to see invocation)

libGDX 1.11.0
RoboVM Version: 2.3.16
RoboVM Gradle Plugin Version: 2.3.12

My build gradle contains

robovm {
iosSignIdentity = "291A96D1F7EA55FB38E8449A5F005B8E3523A155"
iosProvisioningProfile = "ST94RJ823S"
iosSkipSigning = false
archs = "thumbv7:arm64"
}

My xCode project contains this architecture settings:

image

Is that related to #617 ?
Any tips how to resolve that?

You must be logged in to vote

hi, are you creating IPA with Idea plugin or from gradle command line ?
One of the reason for your problem -- is old version RoboVM Idea/Gradle plugin.
Support for sim/device qualified lib dependencies were added in 2.3.15

Replies: 1 comment 1 reply

Comment options

hi, are you creating IPA with Idea plugin or from gradle command line ?
One of the reason for your problem -- is old version RoboVM Idea/Gradle plugin.
Support for sim/device qualified lib dependencies were added in 2.3.15

You must be logged in to vote
1 reply
Comment options

Yes with the gradle command line. Thank you! Updating to 2.3.16 fixed the issue.

Answer selected by HAL9000Thomas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /