Skip to content
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

Mac OS operation not permitted #22999

Closed
solancer opened this issue Dec 5, 2017 · 1 comment
Closed

Mac OS operation not permitted #22999

solancer opened this issue Dec 5, 2017 · 1 comment

Comments

@solancer
Copy link

solancer commented Dec 5, 2017

I'm trying to ship a golang binary inside a mac app. It is ideally just a http server with some basic functions on folders and files.

The binary seems to work just fine when I run it from a terminal but when I try calling it from my mac app programmatically it gives an error "operation not permitted" and quits.

Even after code-signing with a valid identity file I get the same error.

go build -ldflags -s .
codesign -s "Developer ID Application: *** *tesco" binaryFile

My Golang ENV:
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/srinivas/go"
GORACE=""
GOROOT="/usr/local/go"
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/3n/vpg5bnks45n75n
d91qh7sy3c0000gn/T/go-build925744934=/tmp/go-build -gno-record-gcc-switches -fno-common"
CXX="clang++"
CGO_ENABLED="1"
PKG_CONFIG="pkg-config"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"

@bradfitz
Copy link
Contributor

bradfitz commented Dec 5, 2017

There is not enough information here to help, or even determine if there's a bug.

I'd recommend you bring this to a forum (see https://golang.org/wiki/Questions). If a bug is identified we can reopen this or open a new bug.

@bradfitz bradfitz closed this as completed Dec 5, 2017
@golang golang locked and limited conversation to collaborators Dec 5, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants