Is it possible to generate .xcframework file with gomobile?

I built the .framework file with gomobile with the following command:

gomobile bind -target ios -o ../frameworks/MyFramework.framework

After that I tried to build .xcframework file with this command

xcodebuild -create-xcframework -framework "MyFramework.framework"
-output "MyFramework.xcframework"

But it shows error:

error: binaries with multiple platforms are not supported
'/Users/nicco/myFramework/MyFramework.framework/MyFramework'

So looks like the problem is in gomobile framework generation process.

So I see 2 solutions:

   1. To generate .xcframework file with gomobile.
   2. Change the .framework build process for being able to convert 
   .framework generated file to .xcframework

How to do it?

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/e4f66b11-8f60-4256-8b48-4639beec8180n%40googlegroups.com.

Reply via email to