x/mobile: comments in the generated objective-C header depend on which file the function is in #46581
Labels
mobile
Android, iOS, and x/mobile
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
I am using golang.org/x/mobile v0.0.0-20210220033013-bdb1ca9a1e08
I believe its the latest release.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
When I make an iOS framework to link into my mobile app using this command:
I get a framework that links and works as expected. However, the comments in the generated objective-C header are only included if I make sure all the public functions for the package are in the same file. If I put some public functions in a different file but the same golang package, the functions will be included in the generated header but not the associated comments.
Note that go doc, etc..., all work fine and show the public functions with their comments.
What did you expect to see?
It should not matter which file the public golang function is in or how many files in the package contain public functions. The comments for each function should always be included in the generated header if the function is public and has comments that go doc can see and associate with the function.
What did you see instead?
Some comments are missing if functions are in two or more files.
The text was updated successfully, but these errors were encountered: