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/cmd/gomobile: unclear error when codesigning fails #11488

Closed
joeshaw opened this issue Jun 30, 2015 · 3 comments
Closed

x/mobile/cmd/gomobile: unclear error when codesigning fails #11488

joeshaw opened this issue Jun 30, 2015 · 3 comments

Comments

@joeshaw
Copy link
Contributor

joeshaw commented Jun 30, 2015

x/mobile rev golang/mobile@3522bcc, go tip: go version devel +117ddcb Tue Jun 30 17:59:02 2015 +0000 darwin/amd64

Running gomobild build -target=ios golang.org/x/mobile/example/basic failed for me:

** BUILD FAILED **


The following build commands failed:
    Check dependencies
(1 failure)
gomobile: exit status 65

Unfortunately that error output doesn't indicate the root cause of the build failure.

Running with -x shows that the command that failed was xcrun xcodebuild -configuration Release -project /var/folders/69/cstplpp51jz6f9_5m_m__3gh0000gq/T/xcodeproject167976650/main.xcodeproj. When I ran that by hand, the error message was a little more clear:

=== BUILD TARGET main OF PROJECT main WITH CONFIGURATION Release ===

Check dependencies
Code Sign error: No matching provisioning profiles found: No provisioning profiles matching the bundle identifier “org.golang.todo.main” were found.
CodeSign error: code signing is required for product type 'Application' in SDK 'iOS 8.3'

** BUILD FAILED **


The following build commands failed:
    Check dependencies
(1 failure)

It would be good if the output from gomobile build included the full output from xcrun xcodebuild.

@joeshaw
Copy link
Contributor Author

joeshaw commented Jun 30, 2015

The top half of that message (up to ** BUILD FAILED **) is sent to stdout, the rest to stderr. Only stderr is recorded and reported by goIOSBuild()

@rakyll rakyll self-assigned this Jul 1, 2015
@rakyll rakyll changed the title x/mobile/cmd/gomobile: Unclear error when codesigning fails x/mobile/cmd/gomobile: unclear error when codesigning fails Jul 1, 2015
@rakyll rakyll added this to the Go1.5Maybe milestone Jul 1, 2015
@gopherbot
Copy link

CL https://golang.org/cl/12002 mentions this issue.

@joeshaw
Copy link
Contributor Author

joeshaw commented Jul 12, 2015

Thank you!

@golang golang locked and limited conversation to collaborators Jul 11, 2016
imWildCat pushed a commit to imWildCat/go-mobile that referenced this issue Apr 10, 2021
Fixes golang/go#11488.

Change-Id: I1ff2ca25dd1013d603d6f60d1e8f6e5c58c5b0ee
Reviewed-on: https://go-review.googlesource.com/12002
Reviewed-by: David Crawshaw <crawshaw@golang.org>
imWildCat pushed a commit to imWildCat/go-mobile that referenced this issue Apr 11, 2021
Fixes golang/go#11488.

Change-Id: I1ff2ca25dd1013d603d6f60d1e8f6e5c58c5b0ee
Reviewed-on: https://go-review.googlesource.com/12002
Reviewed-by: David Crawshaw <crawshaw@golang.org>
@rsc rsc unassigned rakyll Jun 23, 2022
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