fastlane: Match could not find App ID

New Issue Checklist

Issue Description

I’m trying to generate certificates for my app using match but match doesn’t able to find App ID (see output below). I have tried to register App ID manually and using produce command. Both times match failed to find App ID

Complete output when running fastlane, including the stack trace and command used

bundle exec fastlane match appstore

±----------------------±---------------+ | Summary for match 2.69.3 | ±----------------------±---------------+ | type | appstore | | git_branch | master | | keychain_name | login.keychain | | readonly | false | | verbose | false | | force | false | | skip_confirmation | false | | shallow_clone | false | | clone_branch_directly | false | | force_for_new_devices | false | | skip_docs | false | | platform | ios | ±----------------------±---------------+

[13:00:00]: To not be asked about this value, you can specify it using ‘git_url’ [13:00:00]: URL to the git repo containing all the certificates: git@github.com:myapp/ios-certificates.git [13:00:11]: Cloning remote git repo… [13:00:11]: If cloning the repo takes too long, you can use the clone_branch_directly option in match. [13:00:18]: 🔓 Successfully decrypted certificates repo [13:00:18]: To not be asked about this value, you can specify it using ‘username’ [13:00:18]: Your Apple ID Username: [13:00:37]: Verifying that the certificate and profile are still valid on the Dev Portal… [13:00:44]: To not be asked about this value, you can specify it using ‘app_identifier’ [13:00:44]: The bundle identifier(s) of your app (comma-separated): com.bsl.bsl [13:00:50]: [13:00:50]: ========================================== [13:00:50]: Could not find App ID with bundle identifier ‘[“com.bsl.bsl”]’ [13:00:50]: You can easily generate a new App ID on the Developer Portal using ‘produce’: [13:00:50]: [13:00:50]: fastlane produce -u myuser@com.br -a [“com.bsl.bsl”] --skip_itc [13:00:50]: [13:00:50]: You will be asked for any missing information, like the full name of your app [13:00:50]: If the app should also be created on iTunes Connect, remove the --skip_itc from the command above [13:00:50]: ========================================== [13:00:50]: [13:00:50]: An app with that bundle ID needs to exist in order to create a provisioning profile for it [13:00:50]: ================================================================ [13:00:51]: Available apps:

  • br.com.xkeysti.BSL (BSL)
  • com.bsl.bsl (BSL EAD)
  • bsl.tmp (bsl-tmp)
  • br.com.xkeysti.CEBRAC (Xcode iOS App ID br com xkeysti CEBRAC)
    • (Xcode iOS Wildcard App ID) [13:00:51]: Make sure to run fastlane match with the same user and team every time.

[!] Couldn’t find bundle identifier ‘[“com.bsl.bsl”]’ for the user ‘myuser@.com.br’]

Environment

✅ fastlane environment ✅

Stack

Key Value
OS 10.13.1
Ruby 2.2.2
Bundler? true
Git git version 2.8.1
Installation Source ~/.rvm/gems/ruby-2.3.0/bin/fastlane
Host Mac OS X 10.13.1 (17B1003)
Ruby Lib Dir ~/.rbenv/versions/2.2.2/lib
OpenSSL Version OpenSSL 1.0.2e 3 Dec 2015
Is contained false
Is homebrew false
Is installed via Fabric.app false
Xcode Path /Applications/Xcode.app/Contents/Developer/
Xcode Version 9.0

System Locale

Variable Value
LANG en_US.UTF-8
LC_ALL en_US.UTF-8
LANGUAGE

fastlane gems

Gem Version Update-Status
fastlane 2.69.3 ✅ Up-To-Date

Loaded fastlane plugins:

No plugins Loaded

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 2
  • Comments: 21 (8 by maintainers)

Commits related to this issue

Most upvoted comments

This will be live with the next releas

I had the same issue, my bundle id was generated the same way and oust;t be found on the developer bundle.

Try to add app_identifier to the match command: fastlane match --app_identifier com.****

It worked for us

Awesome, thank you @danstepanov

@KrauseFx

➜  mobile-application git:(develop) fastlane match
Ignoring bcrypt-3.1.11 because its extensions are not built.  Try: gem pristine bcrypt --version 3.1.11
Ignoring bindex-0.5.0 because its extensions are not built.  Try: gem pristine bindex --version 0.5.0
Ignoring byebug-9.0.6 because its extensions are not built.  Try: gem pristine byebug --version 9.0.6
Ignoring ffi-1.9.18 because its extensions are not built.  Try: gem pristine ffi --version 1.9.18
Ignoring nio4r-2.0.0 because its extensions are not built.  Try: gem pristine nio4r --version 2.0.0
Ignoring nokogiri-1.7.1 because its extensions are not built.  Try: gem pristine nokogiri --version 1.7.1
Ignoring pg-0.20.0 because its extensions are not built.  Try: gem pristine pg --version 0.20.0
Ignoring puma-3.8.2 because its extensions are not built.  Try: gem pristine puma --version 3.8.2
Ignoring sqlite3-1.3.13 because its extensions are not built.  Try: gem pristine sqlite3 --version 1.3.13
Ignoring websocket-driver-0.6.5 because its extensions are not built.  Try: gem pristine websocket-driver --version 0.6.5
[18:22:20]: Get started using a Gemfile for fastlane https://docs.fastlane.tools/getting-started/ios/setup/#use-a-gemfile

+-----------------------+------------------------+
|            Summary for match 2.68.2            |
+-----------------------+------------------------+
| git_branch            | master                 |
| type                  | development            |
| username              | danhstepanov@gmail.com |
| keychain_name         | login.keychain         |
| readonly              | false                  |
| verbose               | false                  |
| force                 | false                  |
| skip_confirmation     | false                  |
| shallow_clone         | false                  |
| clone_branch_directly | false                  |
| force_for_new_devices | false                  |
| skip_docs             | false                  |
| platform              | ios                    |
+-----------------------+------------------------+

[18:22:23]: To not be asked about this value, you can specify it using 'git_url'
[18:22:23]: URL to the git repo containing all the certificates: [MY_CERTIFICATES_GITHUB_REPO_URL]
[18:22:38]: Cloning remote git repo...
[18:22:38]: If cloning the repo takes too long, you can use the `clone_branch_directly` option in match.
[18:22:39]: 🔓  Successfully decrypted certificates repo
[18:22:39]: Verifying that the certificate and profile are still valid on the Dev Portal...
Multiple teams found on the Developer Portal, please enter the number of the team you want to use:
1) TEAMID1 "Team 1" (Company/Organization)
2) TEAMID2 "Team 2" (Company/Organization)
3) MYID "Daniel Stepanov" (Individual)
4) TEAMID3 "Team 3" (In-House)
5) TEAMID4 "Team 4 (Company/Organization)
3
[18:22:47]: To not be asked about this value, you can specify it using 'app_identifier'
[18:22:47]: The bundle identifier(s) of your app (comma-separated): [I_TYPE_IN_MY_APP_BUNDLE_ID_HERE]

Having the same issue on v 2.71.0 - dropping to v 2.68.2 worked though

Version of Fastlane 2.68.2 works fine.

I’ve added additional logs to app.rb to method def find(bundle_id, mac: false) and have found that bundle_id contains additional symbols.

  app.bundle_id  is "com.bsl.bsl"
  parameter bundle_id is "[\"com.bsl.bsl\"]"