Framework binaries with multiple platforms are not supported anymore.
gomobile bind should generate a universal xcframework
What did you see instead?
In /Users/x/gcloud/src/example/bind/ios/Hello.framework/Hello(000005.o), building for iOS Simulator, but linking in object file (/Users/x/gcloud/src/example/bind/ios/Hello.framework/Hello(000005.o)) built for iOS, for architecture arm64.
We are supposed to use an xcframework instead
Hello.framework/Versions/A/Hello: Mach-O universal binary with 2 architectures: [x86_64:current ar archive random library] [arm64]
Hello.framework/Versions/A/Hello (for architecture x86_64): current ar archive random library
Hello.framework/Versions/A/Hello (for architecture arm64): current ar archive random library
The text was updated successfully, but these errors were encountered:
Having same issue too. This will be relevant for all projects that want to be on xcode 12+. There is neccessary to have xcframeworks with iOS and iOS simulator architecture or it will be very problematic for unit tests, building project etc..