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

x/mobile: failed to pull the signing certificate to determine your team ID #42615

Open
arcln opened this issue Nov 15, 2020 · 0 comments
Open

x/mobile: failed to pull the signing certificate to determine your team ID #42615

arcln opened this issue Nov 15, 2020 · 0 comments
Labels
Milestone

Comments

@arcln
Copy link

@arcln arcln commented Nov 15, 2020

What version of Go are you using (go version)?

$ go version
go version go1.15.4 darwin/amd64
gomobile master (973feb43)

Does this issue reproduce with the latest release?

Yes

What operating system and processor architecture are you using (go env)?

go env Output
$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/arthur/Library/Caches/go-build"
GOENV="/Users/arthur/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/usr/local/go/path/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/usr/local/go/path"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/arthur/Code/Misc/mobile/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/sp/h4_s8zf552v7rdr_gfp3bbdw0000gn/T/go-build678027763=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?

$ gomobile build -target=ios -bundleid=com.example.test golang.org/x/mobile/example/basic

What did you expect to see?

The app should be successfully built.

What did you see instead?

gomobile: failed to pull the signing certificate to determine your team ID: exit status 44

This is due to build_iosapp.go:159 that has hardcoded "iPhone Developer" for the certificate name. I don't have an Apple developer account so I don't have any "iPhone Developer" certificate in my keychain. However I do have an "Apple Developer" certificate that is able to sign the app for development. I should be able to use it.

I fixed this by adding a -codesign flag to the gomobile build command, that takes a string and passes it to security -c instead of the hard-coded "iPhone Developer". I also added a special value "none" to completely bypass code signing. Should I submit thoose changes?

@gopherbot gopherbot added the mobile label Nov 15, 2020
@gopherbot gopherbot added this to the Unreleased milestone Nov 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.