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 upload app to the appstore when using SDK generated by gomobile #16288

Closed
dcu opened this issue Jul 7, 2016 · 11 comments
Closed

Comments

@dcu
Copy link

dcu commented Jul 7, 2016

This issue is related to #15657

When trying to archive https://github.com/AdrianaPineda/iOSGOMobileSampleApp to upload it to the app store we are getting errors related to missing keys in the Info.plist file.

The following screenshot shows the errors we're getting:

gomobile-archive-fails

To reproduce the issue follow the instructions in the repository, archive and upload to the appstore. You should get an error in the middle of the process.

@dcu dcu changed the title x/mobile: Failed to archive project using a SDK generated by gomobile x/mobile: Failed to upload app using a SDK generated by gomobile Jul 7, 2016
@dcu dcu changed the title x/mobile: Failed to upload app using a SDK generated by gomobile x/mobile: Failed to upload app to the appstore when using SDK generated by gomobile Jul 7, 2016
@dcu
Copy link
Author

dcu commented Jul 11, 2016

@crawshaw @eliasnaur hi, any chance to look at this? I know you are busy with the 1.7 release but I'd be nice if you could take a look at this since is blocking our release.

Thanks in advance

@eliasnaur
Copy link
Contributor

Is this a problem with all gomobile (bind?) apps or just the ones that use "super" frameworks as described in #15657 ? In other words, can you reproduce this issue with the gomobile examples?

@dcu
Copy link
Author

dcu commented Jul 12, 2016

yes this is for bind and frameworks, gomobile apps (and examples) work fine.

@eliasnaur
Copy link
Contributor

So just to be perfectly clear, the gomobile bind example "golang.org/x/mobile/example/bind/ios/bind.xcodeproj" works and can be archived and uploaded without errors? In that case, what makes adding a gomobile bind framework to an application different from adding it to another framework? In other words, why are Info.plist suddenly needed and why is it a problem that x86_64 is included?

@dcu
Copy link
Author

dcu commented Jul 12, 2016

no, wait, I know that the examples of apps work, we haven't tried the bind example. We will test it and report results later.

@dcu
Copy link
Author

dcu commented Jul 12, 2016

@eliasnaur we tested the bind example and it works (except for some issues with the icons but we don't believe that's gonna be a problem).
So yes the problem happens when you have a framework embedded.

@eliasnaur
Copy link
Contributor

Thank you for testing. I don't have time myself in the near future to dig into what is necessary from the gomobile side to make this use case work. If you or someone else are up for the challenge, a good first step is comparing a working sub-framework with a framework generated by gomobile bind and work out what additional work gomobile needs to do.
The Info.plist errors seem easy, but I'm still puzzled by why the x86_64 architecture is a problem. x86_64 is not supported by iOS hardware, but is needed for the emulator. In other words: how do other sub-frameworks work on the emulator?

@AdrianaPineda
Copy link

@eliasnaur I'm going to look at this with @dcu
About the unsupported arch x86_64, I've seen this with other frameworks when I try to upload to the app store. I can remove the arch from the framework with a script (when generating the archive) with no problem.

@crawshaw
Copy link
Member

Thanks @AdrianaPineda! I'm sorry for my absence on this, it has been busy around here, and I'm out on vacation until the end of July. But @eliasnaur can review any CLs you have.

@dcu
Copy link
Author

dcu commented Jul 13, 2016

As an update, we are trying a different approach to generate our umbrella framework. We will let you know if it works

@dcu
Copy link
Author

dcu commented Jul 27, 2016

after generating the umbrella framework in a different way the issue is gone. Thanks @eliasnaur your input was very helpful

@dcu dcu closed this as completed Jul 27, 2016
@golang golang locked and limited conversation to collaborators Jul 27, 2017
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