robovm icon indicating copy to clipboard operation
robovm copied to clipboard

How to link xcframework

Open bachtrong43 opened this issue 4 years ago • 5 comments

As title, Apple release new format of framework: xcframework which contains multiple frameworks for each architecture. How to use it, newest firebase is using this format.

bachtrong43 avatar Apr 03 '20 08:04 bachtrong43

Running into exactly this today as I was updating to the Crashlytics beta which deprecates Fabric. I solved this by copying only the .framework folders in the ios-armv7_arm64. However it fails to compile for the simulator as it uses x86 architecture.

cellcrowd avatar Apr 03 '20 12:04 cellcrowd

anyone know how to solve this? As there are multiple diff frameworks for each folder, does that mean I have to swap them out when testing on simulator compared to when releasing?

wheelergames avatar Apr 16 '20 16:04 wheelergames

Yes, you have to swap files. Now I only test on real devices

bachtrong43 avatar Apr 16 '20 19:04 bachtrong43

Ok, thanks I thought it might be like that. I don't own a physical device so at the moment that makes it easy for me.

I think there is a fix in the works for the next week or so to allow these xc folders to work! Fingers crossed

wheelergames avatar Apr 16 '20 23:04 wheelergames

There's currently no support for xcframeworks but you can use workaround described here: https://github.com/MobiVM/robovm/pull/483

obigu avatar Jun 03 '20 11:06 obigu

support added in 2.3.19 https://github.com/MobiVM/robovm/pull/694

dkimitsa avatar Apr 07 '23 07:04 dkimitsa