robovm icon indicating copy to clipboard operation
robovm copied to clipboard

xcFrameworks: Set force flag on static libs

Open dasisdormax opened this issue 2 years ago • 1 comments

Description

This sets the force flag on static libraries included from an xcFramework.

My Reasoning

My project uses ZSTD included as a static library and I recently tried to switch it from a regular lib to an xcframework (for arm-simulator support). Without this, the ZSTD symbols would be missing from the binary.

This is the minimal implementation that works with my setup. If you think a 'force' option on the xcframework path is needed instead, I could implement that instead.

dasisdormax avatar Jul 29 '23 05:07 dasisdormax

hi, we should not force all static libs unconditionally. for classic libs there was standalone flag for this. To make sure you symbols are not stripped you should keep them as export symbols, here is an example for FB: https://github.com/dkimitsa/robovm-robopods/blob/alt/facebook/ios-core/src/main/robopods/META-INF/robovm/ios/robovm.xml

dkimitsa avatar Sep 02 '23 16:09 dkimitsa