Unknown GOARCH: "" appears in gomobile bind-target=ios

I want to package an ios sdk, instruction with gomobile bind instruction. There is always a unknown GOARCH: "" error in the execution of the sdk, instruction. The error is as follows:

clipboard.png

AndroidmacGOARCH,

clipboard.png

Feb.28,2021

are you sure that shell is bash , not zsh or something like that?


has been solved. When gomobile packages ios sdk, local xcode, must be installed. When packaging Android, android sdk and ndk must be installed

Menu