New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
x/mobile: use GOOS=ios and remove the build tag ios usages #47238
Comments
Sure, I think it makes sense. Would you want the current iOS tests to pass as well? It would probably need some additional updates, and ideally macOS CI so it doesn't continue to bit-rot. |
cc @eliasnaur |
Now that Go 1.17 is released (and thus 1.15 has become unsupported), there shouldn't be a reason not to do this. Also see discussion in #47952. |
Change https://golang.org/cl/346150 mentions this issue: |
Change https://golang.org/cl/346151 mentions this issue: |
Apple Development Program was introduced in WWDC2015. It is 2021 today, and there should have no possibility to use iPhone Developer certificate for code signing. This CL replaces "iPhone Developer" by "Apple Development" so that cmd/gomobile can use the correct certificate to sign the building application. Otherwise, gomobile throws an error gomobile: failed to pull the signing certificate to determine your team ID: exit status 44 Updates golang/go#47238 Change-Id: Ia48c03ff7cda39a95159e0f77e7ba7042776f9ef Reviewed-on: https://go-review.googlesource.com/c/mobile/+/346151 Reviewed-by: Hajime Hoshi <hajimehoshi@gmail.com> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org> Run-TryBot: Hajime Hoshi <hajimehoshi@gmail.com> TryBot-Result: Go Bot <gobot@golang.org> Trust: Hajime Hoshi <hajimehoshi@gmail.com> Trust: Dmitri Shuralyov <dmitshur@golang.org>
This is a proposal of refactoring. I propose to replace the current build tag
ios
usages with specifying GOOS=ios. This change means that Go 1.16 or newer will be required for gomobile. So, I'm fine if we have to wait more (e.g., Go 1.17 is released)Background: GOOS=ios was introduced at Go 1.16. Before this, gomobile used a build tag
ios
for iOS projects. In Go 1.16 and newer, standard libraries have*_ios.go
files, and apparently they also specify// +build ios
explicitly at the same time. Then, we don't have an urgent issue around this.@hyangah, @ydnar, What do you think?
The text was updated successfully, but these errors were encountered: