New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fat multiplatform framework #13
Comments
Hey @sebarthel89, thanks for the feedback. I'm not sure if I understand your use case correctly. The sample project declares When you take a look at the contents of the generated XCFramework you can actually see that both architectures are present. ./gradlew createXCFramework
cd swiftpackage
ls MyFramework.xcframework Will print
|
That's a good question. I am not mobile developer and still learning a lot in this direction. So the swift-package format solves it by itself, right? I had only a look at the binaries, one is build with multiple targets and one with only a single target: Some KMP library that is build for multiple architectures (simulator + native ios)
Some other library that is only build for a single target
We can close this issue for now and I will verify how smart XCode is picking the right architecture for an imported swift package. |
The By using an XCFramework you can omit this step because Xcode will always select the correct architecture depending on your build type. To use the XCFramework you can drag&drop it into Xcode. Let me know if you need more info or support. |
Hey,
I have another issue bundling a fat framework.
I added a task called universalFrameworkRelease that bunldes simulator and native ios builds. Is it possible to support as well?
Not sure, but maybe it's optional to add a bunch of additional paths that are used for more sift packages.
Here is an example: https://github.com/sebarthel89/example-kmp-swift-package
The text was updated successfully, but these errors were encountered: