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
It will generate an iOS framework. Then I submitted an iOS APP built with this framework to Apple Store for review. Got rejected because of using private API _ptrace.
I use nm to scan this package, found mypackage generated by gomobile contains _ptrace
Mypackage:go.o: U _ptrace
Mypackage:go.o: 0000000000080d00 t _syscall.libc_ptrace_trampoline
Mypackage:go.o: 0000000000ad4a40 s _syscall.libc_ptrace_trampoline.args_stackmap
Perhaps this issue is caused by go, not x/mobile.
If exec.Command("ls").Run() is contained in my package or dependencies, _ptrace can be found in the binary. I am not sure if this is the only reason.
import "os/exec"
// ...
exec.Command("ls").Run()
What did you expect to see?
No _ptrace in the iOS binary generated by gomobile, so our APP can pass AppleStore's checking.
What did you see instead?
_ptrace can be found in the iOS binary generated by gomobile
The text was updated successfully, but these errors were encountered:
@cherrymui Thanks for your reply.
I did install Go 1.16 beta. Once the binary got rejected by Apple, I removed Go 1.16 beta, and dir: ~/go/bin ~/go/pkg.
Then I installed Go 1.15.6 again, built gomobile/gobind with Go 1.15.6. I tried several times, but still got this issue.
Follow CL 279481 which did the same for package syscall.
For golang/go#43302.
Change-Id: I9fa7bec5712cf43fd7485225d4c21665c151defc
Reviewed-on: https://go-review.googlesource.com/c/sys/+/279393
Trust: Tobias Klauser <tobias.klauser@gmail.com>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
It will generate an iOS framework. Then I submitted an iOS APP built with this framework to Apple Store for review. Got rejected because of using private API _ptrace.
I use
nm
to scan this package, found mypackage generated by gomobile contains_ptrace
Perhaps this issue is caused by go, not x/mobile.
If
exec.Command("ls").Run()
is contained in my package or dependencies,_ptrace
can be found in the binary. I am not sure if this is the only reason.What did you expect to see?
No
_ptrace
in the iOS binary generated by gomobile, so our APP can pass AppleStore's checking.What did you see instead?
_ptrace
can be found in the iOS binary generated by gomobileThe text was updated successfully, but these errors were encountered: