walkbean / vsys-sdk-go

The golang library for V Systems Blockchain
MIT License
5 stars 5 forks source link

gomobile error #1

Open dylanpoe opened 4 years ago

dylanpoe commented 4 years ago

Hello, vBean ! I come across this error my golang is 1.12.7 my mac is image How can i fix this error? ➜ bind git:(master) gomobile bind -target=ios github.com/walkbean/vsys-sdk-go/vsys gomobile: darwin-arm: /usr/local/Cellar/go/1.12.7/libexec/bin/go build -tags ios -buildmode=c-archive -o /var/folders/0s/r9y8prn97fgc9_zkymk3zz0h0000gn/T/gomobile-work-157100574/vsys-arm.a gobind failed: exit status 2

gobind

In file included from Vsys_darwin.m:9: /var/folders/0s/r9y8prn97fgc9_zkymk3zz0h0000gn/T/gomobile-work-157100574/src/gobind/Vsys.objc.h:218:42: error: init methods must return a type related to the receiver type /var/folders/0s/r9y8prn97fgc9_zkymk3zz0h0000gn/T/gomobile-work-157100574/src/gobind/Vsys.objc.h:237:23: error: unknown type name 'byte'; did you mean 'Byte'? /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/usr/include/MacTypes.h:687:41: note: 'Byte' declared here Vsys_darwin.m:917:1: error: init methods must return a type related to the receiver type Vsys_darwin.m:1030:4: error: expected a type Vsys_darwin.m:1037:18: error: expected a type Vsys_darwin.m:1033:2: error: unknown type name 'byte'; did you mean 'Byte'? /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/usr/include/MacTypes.h:687:41: note: 'Byte' declared here Vsys_darwin.m:1033:14: error: use of undeclared identifier 'byte' Vsys_darwin.m:1034:9: error: implicit conversion of 'Byte' (aka 'unsigned char') to 'id' is disallowed with ARC Vsys_darwin.m:1034:9: error: incompatible integer to pointer conversion returning 'Byte' (aka 'unsigned char') from a function with result type 'id' [-Werror,-Wint-conversion] Vsys_darwin.m:1030:1: error: conflicting return type in implementation of 'type': 'Byte' (aka 'unsigned char') vs 'id' [-Werror,-Wmismatched-return-types] /var/folders/0s/r9y8prn97fgc9_zkymk3zz0h0000gn/T/gomobile-work-157100574/src/gobind/Vsys.objc.h:237:28: note: previous definition is here Vsys_darwin.m:1037:23: error: conflicting parameter types in implementation of 'setType:': 'Byte' (aka 'unsigned char') vs '__strong id' [-Werror,-Wmismatched-parameter-types] /var/folders/0s/r9y8prn97fgc9_zkymk3zz0h0000gn/T/gomobile-work-157100574/src/gobind/Vsys.objc.h:237:28: note: previous definition is here

walkbean commented 4 years ago

@dylanpoe Hi, there. This sdk does not support generating ios framework directly through gomobile. I may add it in a follow-up release, thank you for your attention.