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

Open
fastfading opened this Issue May 4, 2017 · 4 comments

Comments

Projects
None yet
4 participants
@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)?

macos
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$!
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";

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

gomobile build -target=ios golang.org/x/mobile/example/flappy
flappy.app --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/flappy.app] 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

@fastfading

This comment has been minimized.

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
DEVELOPMENT_TEAM is added
Provision profile exist and downloaded
build success. run on ios device ok.
But upload fail

@fastfading

This comment has been minimized.

fastfading commented May 17, 2017

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

@bradfitz bradfitz added the mobile label Jul 20, 2017

@eliasnaur

This comment has been minimized.

Contributor

eliasnaur commented Mar 16, 2018

Is this a duplicate of #19904?

@fastfading

This comment has been minimized.

fastfading commented Mar 19, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment