You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gomobile: darwin-armv7: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -I . -g -O2 -o gobind-bindtest-arm.o -c GoBindtest.m -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.4.sdk -arch armv7 failed: exit status 1
GoBindtest.m:69:17: error: unexpected interface name 'NSString': expected expression
errorDesc = NSString(@"%!@(string=error)", %!s(MISSING));
^
GoBindtest.m:69:48: error: expected expression
errorDesc = NSString(@"%!@(string=error)", %!s(MISSING));
^
GoBindtest.m:69:50: warning: implicit declaration of function 's' is invalid in C99 [-Wimplicit-function-declaration]
errorDesc = NSString(@"%!@(string=error)", %!s(MISSING));
^
GoBindtest.m:69:52: error: use of undeclared identifier 'MISSING'
errorDesc = NSString(@"%!@(string=error)", %!s(MISSING));
^
GoBindtest.m:71:25: error: expected expression
go_seq_writeUTF8(out, %!s(MISSING)Desc);
^
GoBindtest.m:71:29: error: use of undeclared identifier 'MISSING'
go_seq_writeUTF8(out, %!s(MISSING)Desc);
^
1 warning and 5 errors generated.
The iOS target works, for the test package, when the return value is changed from error to some other supported type; or when the test package consists of a Go function that returns error. The failing case appears to be an interface method returning error.
The generated code in question appears to come from genobjc.gohere and here.
The text was updated successfully, but these errors were encountered:
With gomobile version +979ebce, go 1.5, darwin/amd64 build host,
gomobile bind
fails for-target ios
with the following test package:Android target builds successfully:
gomobile bind bindtest
.iOS target build fails:
gomobile bind -target ios bindtest
:The iOS target works, for the test package, when the return value is changed from
error
to some other supported type; or when the test package consists of a Go function that returnserror
. The failing case appears to be an interface method returningerror
.The generated code in question appears to come from
genobjc.go
here and here.The text was updated successfully, but these errors were encountered: