-
Notifications
You must be signed in to change notification settings - Fork 779
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
cmd/gomobile: improve support for macOS and Catalyst #70
Conversation
Working to fix bug noted here: golang/go#36856 cc @hajimehoshi |
This PR (HEAD: c7287ff) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/mobile/+/334689 to see it. Tip: You can toggle comments from me using the |
Message from Hajime Hoshi: Patch Set 1: Run-TryBot+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/334689. |
Message from Go Bot: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/334689. |
Message from Go Bot: Patch Set 1: TryBot-Result-1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/334689. |
Message from Hajime Hoshi: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/334689. |
Message from Randy Reddig: Patch Set 1: (3 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/334689. |
Message from Randy Reddig: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/334689. |
This PR (HEAD: 9444da2) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/mobile/+/334689 to see it. Tip: You can toggle comments from me using the |
Message from Hajime Hoshi: Patch Set 2: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/334689. |
Message from Randy Reddig: Patch Set 2: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/334689. |
Message from Hajime Hoshi: Patch Set 2: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/334689. |
Message from Randy Reddig: Patch Set 2: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/334689. |
This PR (HEAD: 8b6abc2) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/mobile/+/334689 to see it. Tip: You can toggle comments from me using the |
Message from Hajime Hoshi: Patch Set 3: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/334689. |
This PR (HEAD: 5527f9f) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/mobile/+/334689 to see it. Tip: You can toggle comments from me using the |
Message from Randy Reddig: Patch Set 4: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/334689. |
This PR (HEAD: 77eab9e) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/mobile/+/334689 to see it. Tip: You can toggle comments from me using the |
This PR (HEAD: 708f5c6) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/mobile/+/334689 to see it. Tip: You can toggle comments from me using the |
This PR (HEAD: 59bb063) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/mobile/+/334689 to see it. Tip: You can toggle comments from me using the |
Message from Randy Reddig: Patch Set 8: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/334689. |
This PR (HEAD: 2f07876) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/mobile/+/334689 to see it. Tip: You can toggle comments from me using the |
All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the ℹ️ Googlers: Go here for more info. |
All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the ℹ️ Googlers: Go here for more info. |
1 similar comment
All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the ℹ️ Googlers: Go here for more info. |
Message from Randy Reddig: Patch Set 26: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/334689. |
Message from Hyang-Ah Hana Kim: Patch Set 26: Run-TryBot+1 Code-Review+2 Trust+1 (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/334689. |
Message from Go Bot: Patch Set 26: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/334689. |
Message from Go Bot: Patch Set 26: TryBot-Result+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/334689. |
Message from Randy Reddig: Patch Set 26: (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/334689. |
Message from Hajime Hoshi: Patch Set 26: Trust+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/334689. |
This PR (HEAD: 4ca2ca5) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/mobile/+/334689 to see it. Tip: You can toggle comments from me using the |
This is the minimal change to enable default support for Ivy on macOS via Mac Catalyst.
This PR (HEAD: b08c472) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/mobile/+/334689 to see it. Tip: You can toggle comments from me using the |
Message from Randy Reddig: Patch Set 27: (3 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/334689. |
Message from Hajime Hoshi: Patch Set 28: Run-TryBot+1 Trust+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/334689. |
Message from Go Bot: Patch Set 28: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/334689. |
Message from Hyang-Ah Hana Kim: Patch Set 28: Code-Review+2 Trust+1 (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/334689. |
Message from Go Bot: Patch Set 28: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/334689. |
Message from Go Bot: Patch Set 28: TryBot-Result+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/334689. |
Message from Randy Reddig: Patch Set 28: (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/334689. |
This PR (HEAD: 01ab28e) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/mobile/+/334689 to see it. Tip: You can toggle comments from me using the |
Message from Randy Reddig: Patch Set 28: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/334689. |
This is is a follow-up from my previous PR (#65). It makes gomobile aware of GOOS=ios and adds support for specifying specific Apple platforms, instead of overloading the "ios" platform. Supported platforms: ios, iossimulator, macos, and maccatalyst These can now be specified the -target argument to gomobile, e.g.: gomobile build -target=ios,iossimulator,macos,maccatalyst It preserves the current behavior of -target=ios, which will build for ios and iossimulator on supported architectures (arm64 and amd64). It adds platform-specific build tags so Go code can discriminate between different Apple platforms like maccatalyst (UIKit on macOS). This PR also fixes a number of broken tests. TODO: cgo has a bug where c-archive builds targeting Catalyst will fail unless -tags=ios is supplied. See https://golang.org/issues/47228 Fixes https://golang.org/issues/47212 Updates https://golang.org/issues/47228 Change-Id: Ib1a2f5302c5edd0704c13ffbe8f4061211f50d4e GitHub-Last-Rev: 01ab28e GitHub-Pull-Request: #70 Reviewed-on: https://go-review.googlesource.com/c/mobile/+/334689 Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com> Trust: Hyang-Ah Hana Kim <hyangah@gmail.com> Trust: Hajime Hoshi <hajimehoshi@gmail.com>
This PR is being closed because golang.org/cl/334689 has been merged. |
This breaks out the Swift Package Manager example from golang/mobile#71 into a separate repo. See https://golang.org/cl/350150 for additional info. Depends on https://golang.org/cl/334689 (golang/mobile#70).
This is is a follow-up from my previous PR (#65). It makes gomobile
aware of GOOS=ios and adds support for specifying specific Apple
platforms, instead of overloading the "ios" platform.
Supported platforms: ios, iossimulator, macos, and maccatalyst
These can now be specified the -target argument to gomobile, e.g.:
gomobile build -target=ios,iossimulator,macos,maccatalyst
It preserves the current behavior of -target=ios, which will build for
ios and iossimulator on supported architectures (arm64 and amd64).
It adds platform-specific build tags so Go code can discriminate between
different Apple platforms like maccatalyst (UIKit on macOS).
This PR also fixes a number of broken tests.
TODO: cgo has a bug where c-archive builds targeting Catalyst will fail
unless -tags=ios is supplied. See https://golang.org/issues/47228
Fixes https://golang.org/issues/47212
Updates https://golang.org/issues/47228