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

runtime/cgo: exc_server is not public API for the iOS ports #10646

Closed
minux opened this issue Apr 30, 2015 · 7 comments
Closed

runtime/cgo: exc_server is not public API for the iOS ports #10646

minux opened this issue Apr 30, 2015 · 7 comments

Comments

@minux
Copy link
Member

minux commented Apr 30, 2015

I received a complaint that Go app failed app store check.
(see https://bitbucket.org/minux/goios/issue/7/cannot-build-for-arm64)

Error: iTunes Store operation failed. Your app contains non-public API usage. This app references non-public symbols ... exc_server.

Instead of forcing the user to use the lldb build tag, we should make the builder
use another build tag.

/cc @crawshaw

@minux minux added this to the Go1.5 milestone Apr 30, 2015
@crawshaw crawshaw self-assigned this Apr 30, 2015
@crawshaw
Copy link
Member

Thanks, I didn't realize it was not public.

As it only matters when running via lldb, and lldb is usually a test, I suggest we only enable it by default when building tests.

@gopherbot
Copy link

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

@scosman
Copy link

scosman commented May 1, 2015

Thanks @minux & @crawshaw !

@crawshaw
Copy link
Member

crawshaw commented May 1, 2015

@scosman if you are building an app with Go, I would enjoy trying it out. If it's public, please send a note when you launch it.

@scosman
Copy link

scosman commented May 1, 2015

@crawshaw evaluating it for now. @jamesshoebox is the expert, he'll probably release our test app.

@jamesbikes
Copy link

It works! Here's a demo app I threw together: https://github.com/jamesshoebox/GoIOSDemo

@crawshaw
Copy link
Member

crawshaw commented May 1, 2015

I realize this is not the right forum for this discussion, but as I don't have your email addresses:

If you are looking into adding Go to an iOS app, you may want to consider the new -buildmode=c-archive that is in tip. You create a package main with an empty func main() {}, then cgo //export any functions you want to call from Objective-C. Then: go build -buildmode=c-archive yourpkg to produce a .a file you can drop into Xcode.

There will be more documentation about this as we get gobind working for iOS.

@golang golang locked and limited conversation to collaborators Jun 25, 2016
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

5 participants