https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
b

brandonmcansh

07/28/2021, 2:42 PM
Hey guys has anyone run into an XCFramework built not able to run on an actual iOS device when generating swift package
worked around it by supplying a fat jar it seems
k

Kartik Prakash

07/28/2021, 5:07 PM
I will be doing something similar soon on my project but yeah was thinking to publish fat framework using: https://github.com/ge-org/multiplatform-swiftpackage
@brandonmcansh are you using any plugin for publication?
b

brandonmcansh

07/28/2021, 5:11 PM
That’s what I was using :/
I’ll post my current task in a bit
👍 1
k

Kartik Prakash

08/01/2021, 1:57 AM
So I was finally able to try this out. I used the
multiplatform-swiftpackage
gradle plugin and generated a fat framework. Then created a new iOS project using xcode added the generated artifact from the gradle plugin as a framework and was able to use it. The only thing i’m not able to figure out is how to make my iOS app consume the my generated fat framework via a remote url.
b

brandonmcansh

08/05/2021, 5:53 PM
k

Kartik Prakash

08/05/2021, 9:23 PM
No problem. I’m doing same and was able to build a zip file and use it in a full native iOS project.
well, I just noticed you had issues running on an actual device . I tested on simulators.
b

brandonmcansh

08/05/2021, 9:27 PM
Yep this solved it for us. :)
k

Kartik Prakash

08/05/2021, 9:40 PM
Nice. 👍
8 Views