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

Closed
arcln opened this issue Nov 15, 2020 · 4 comments
Closed
Labels
FrozenDueToAge mobile Android, iOS, and x/mobile NeedsFix The path to resolution is known, but the work has not been done.
Milestone

Comments

@arcln
Copy link

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 Android, iOS, and x/mobile label Nov 15, 2020
@gopherbot gopherbot added this to the Unreleased milestone Nov 15, 2020
@cagedmantis cagedmantis added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Dec 7, 2020
@cagedmantis
Copy link
Contributor

/cc @hyangah

@imWildCat
Copy link

@cagedmantis @hyangah Hi, any suggestion for running this test locally?

@changkun
Copy link
Member

changkun commented Aug 31, 2021

This should be fixed in CL 346151. We may close it directly.

(Sorry for not referring to it directly in the CL.)

cc @dmitshur @hajimehoshi @cagedmantis

@dmitshur dmitshur added NeedsFix The path to resolution is known, but the work has not been done. and removed NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. labels Aug 31, 2021
@dmitshur
Copy link
Contributor

Thanks for fixing this @changkun. Closing.

@golang golang locked and limited conversation to collaborators Aug 31, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge mobile Android, iOS, and x/mobile NeedsFix The path to resolution is known, but the work has not been done.
Projects
None yet
Development

No branches or pull requests

6 participants