x/mobile: failed to pull the signing certificate to determine your team ID #42615
Labels
FrozenDueToAge
mobile
Android, iOS, and x/mobile
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
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?
$ 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 thegomobile build
command, that takes a string and passes it tosecurity -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?The text was updated successfully, but these errors were encountered: