Open smartgolang opened 2 years ago
cc @hyangah
@smartgolang I believe this needs to be run with -iosversion=14
at a minimum
run this ok: gomobile bind -v -a -target=ios,iossimulator,maccatalyst,macos -iosversion=15
I tried again with your suggestion but now I get the following cgo: C compiler "2022-09-19" not found: exec: "2022-09-19": executable file not found in $PATH
If I use only CGO, not go-mobile, I also encounter this problem in the title. Does anyone know how to fix it please?
use -target x86_64-apple-ios14.0-macabi
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?Mac OS Monterey 12.4
go env
OutputWhat did you do?
gomobile bind -target=ios,iossimulator,macos,maccatalyst -o My.xcframework .
What did you expect to see?
a library for Mac Catalyst
What did you see instead?
runtime/cgo
clang: error: invalid version number in '-target arm64-apple-ios13.0-macabi'