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: gomobile build ios app can not be upload to itunes connect #20241

fastfading opened this issue May 4, 2017 · 4 comments

x/mobile: gomobile build ios app can not be upload to itunes connect #20241

fastfading opened this issue May 4, 2017 · 4 comments


Copy link

@fastfading fastfading commented May 4, 2017

Please answer these questions before submitting your issue. Thanks!

What version of Go are you using (go version)?

go 1.8
gomobile version +0f31740 Wed Apr 19 17:20:05 2017 +0000 (android,ios); androidSDK=

What operating system and processor architecture are you using (go env)?

xcode 8.1

What did you do?

build example flappy and upload it to itunesconnect
edit below and go install gomobile
--- a/cmd/gomobile/build_iosapp.go
+++ b/cmd/gomobile/build_iosapp.go
@@ -31,7 +31,8 @@ func goIOSBuild(pkg *build.Package) (map[string]bool, error) {
infoplist := new(bytes.Buffer)
if err := infoplistTmpl.Execute(infoplist, infoplistTmplData{
// TODO: better bundle id.

  •           BundleID: "org.golang.todo." + productName,
  •           BundleID: "org.xxxx.mug",
              Name:     strings.Title(path.Base(pkg.ImportPath)),
      }); err != nil {
              return nil, err

@@ -366,6 +367,7 @@ const projPbxproj = `// !$UTF8$!
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";

  •   DEVELOPMENT_TEAM = xxxxxxxxx;//
       DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";

gomobile build -target=ios --itunes--> flappy.ipa
xcode Application Loader Upload.

What did you expect to see?

go build app upload success

What did you see instead?

Application Loader Reports
ERROR ITMS-90161: "Invalid Provisioning Profile. The provisioning profile included in the bundle org.xxxx.mug [Payload/] is invalid. [Missing code-signing certificate]. A Distribution Provisioning profile should be used when submitting apps to the App Store. For more information, visit the iOS Developer Portal."

Bundle id is correct. Provision profile exist.

@gopherbot gopherbot added this to the Unreleased milestone May 4, 2017
Copy link

@fastfading fastfading commented May 4, 2017

there is problem with code format , the change code is cmd/gomobile/build_iosapp.go
bundle id is changed and
Provision profile exist and downloaded
build success. run on ios device ok.
But upload fail

Copy link

@fastfading fastfading commented May 17, 2017

this is a code sign issue , I try to resign it
xcrun -sdk iphoneos PackageApplication -v -o flappy.ipa --sign "iPhone Distribution: xx"
but still it don't work
it reports the same ERROR ITMS-90161

Copy link

@eliasnaur eliasnaur commented Mar 16, 2018

Is this a duplicate of #19904?

Copy link

@fastfading fastfading commented Mar 19, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants