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: ios, No matching provisioning profiles found #16967

Closed
joeblew99 opened this issue Sep 2, 2016 · 11 comments
Closed

x/mobile: ios, No matching provisioning profiles found #16967

joeblew99 opened this issue Sep 2, 2016 · 11 comments

Comments

@joeblew99
Copy link

Please answer these questions before submitting your issue. Thanks!

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

1.7

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

GOARCH="amd64"
GOBIN="/Users/apple/workspace/go/bin"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/apple/workspace/go"
GORACE=""
GOROOT="/usr/local/go"
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/wp/ff6sz9qs6g71jnm12nj2kbyw0000gp/T/go-build159594453=/tmp/go-build -gno-record-gcc-switches -fno-common"
CXX="clang++"
CGO_ENABLED="1"

What did you do?

building this: https://github.com/golang/mobile/tree/master/example/network

What did you expect to see?

On android i get the green / blue screen as i expect.
On IOS i expected the same.

What did you see instead?

x-MacBook-Pro:network apple$ gomobile build --target=android
x-MacBook-Pro:network apple$ gomobile build --target=ios
gomobile: xcrun xcodebuild -configuration Release -project /var/folders/wp/ff6sz9qs6g71jnm12nj2kbyw0000gp/T/gomobile-work-486467550/main.xcodeproj failed: exit status 65
=== BUILD TARGET main OF PROJECT main WITH CONFIGURATION Release ===

Check dependencies
Code Sign error: No matching provisioning profiles found: No provisioning profiles with a valid signing identity (i.e. certificate and private key pair) matching the bundle identifier “org.golang.todo.network” were found.

** BUILD FAILED **


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

@quentinmit quentinmit modified the milestone: Unreleased Sep 6, 2016
@Frederic-Zhou
Copy link

Frederic-Zhou commented Sep 21, 2016

go version:
1.7
go env:

GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/zeta/workspace/go"
GORACE=""
GOROOT="/usr/local/go"
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/7v/mfkwfd0s2gv68b087kpx3dpc0000gn/T/go-build664342466=/tmp/go-build -gno-record-gcc-switches -fno-common"
CXX="clang++"
CGO_ENABLED="1"

building: https://github.com/golang/mobile/tree/master/example/basic

gomobile build -target=ios

gomobile: xcrun xcodebuild -configuration Release -project /var/folders/7v/mfkwfd0s2gv68b087kpx3dpc0000gn/T/gomobile-work-901146193/main.xcodeproj failed: exit status 65
=== BUILD TARGET main OF PROJECT main WITH CONFIGURATION Release ===

Check dependencies
Code Sign error: No matching provisioning profiles found: No provisioning profiles matching an applicable signing identity were found.

** BUILD FAILED **


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

Xcode : 7.3
MacOS:10.11

@joeblew99
Copy link
Author

i never worked it out..

I can build other things for IOS, just not with gomobile

@pawelkowalak
Copy link

This is a duplicate of #12660, check there for workarounds.

@joeblew99
Copy link
Author

joeblew99 commented Oct 10, 2016

hey @vIRu
Thats does sound exactly like what i experience too. Thanks for letting me know.

The problem is that its not really fixed. The fix is to hardcode a namespace into the gomobile tool and then recompile. Thats really a temp hack..

@eliasnaur
Could someone on the gomobile team think about fixing this obvious tooling bug ?
What might be best is a command line flag for compiling for ios ? This would then get ride of the hardcoded constant in the common code as shown at the #12660

@eliasnaur
Copy link
Contributor

I agree that it seems like an obvious tooling bug, but unfortunately iOS provisioning and signing is not obvious to me. I'll gladly review any CL that attempts a fix.

@joeblew99
Copy link
Author

@shurcooL did you ever get past this ??

@dmitshur
Copy link
Contributor

No, I haven't built for mobile recently. My latest status was #12660 (comment).

@joeblew99
Copy link
Author

joeblew99 commented Oct 18, 2016

in summary, for now I guess i will also just have to maintain my own fork and hack it too.

@shurcooL
thanks for update.

@eliasnaur
i doubt i have the skills to fix this. IOS signed etc is also newish to me.

@egonelbre
Copy link
Contributor

I'm looking into fixing this.

I think the first solution should be to allow specifying the BundleID (and Android package ID) manually and direct people to create an application in XCode with the specified identifier. This would make gomobile easier to use now, with little effort. PS: Currently when I tried to use an existing profile then xcodebuild also required to specify DEVELOPMENT_TEAM (that can be detected from the provisioning profile).

Then as a next step there are few ideas:

  1. Try to figure out how to create provisioning profile automatically (command-line tools or write the code). Unfortunately, I haven't yet found a nice way to do it. We can create BundleID with this https://play.golang.org/p/ZiOkpaU3HP... but this could still be problematic when you want to build application that is already registered and you don't have the signing key.
  2. Use wildcard AppID for multiple apps (https://developer.apple.com/library/content/qa/qa1713/_index.html) -- this would avoid the need to create manually multiple profiles. There probably are restrictions when doing it in this way.
  3. Combine XCode and gomobile. When selecting a new project there are templates "Empty" and "External-Build-System"... maybe we can use XCode to trigger "gomobile" with the correct parameters. Or create a custom template for gomobile.

Any thoughts?

@egonelbre
Copy link
Contributor

PS: it seems that #12660 is pretty much the same issue? Should the discussion be moved there and this closed as a duplicate?

@joeblew99
Copy link
Author

@egonelbre Thanks for picking this up.
yes #12660 is the same. i will close this, so it can be worked on at #12660

@golang golang locked and limited conversation to collaborators Apr 15, 2018
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

8 participants