Skip to content

ios certificates are not working #2

@yvanvds

Description

@yvanvds

Hey, thanks for this. I followed your tutorial, using github and travis-ci. But my iOS build is stuck at sync_code_signing. I've disabled the suppress_output wrapper in Fastfile to get some more output, but can't really paste it all in here because there's a lot of sensitive text in there.

First step is loading the Matchfile, which is successful. Detected values are ok. Next the remote git repo is cloned and i get the message 'Successfully decrypted certificates repo. Sounds good.

Now there's an error:

[13:17:03]: Installing certificate...
security: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.
[13:17:04]: There are no local code signing identities found.

My first thought that this was the problem, but I'm not sure. Because next it lists my Installed Certificate with all details and below that the Installed Provisioning Profile. Then I get a message:

All required keys, certificates and provisioning profiles are installed 🙌
[13:17:04]: Setting Provisioning Profile type to 'app-store'
[13:17:04]: Certificates and profiles installed
[13:17:04]: -----------------------------------------
[13:17:04]: --- Step: update_project_provisioning ---
[13:17:04]: -----------------------------------------
[13:17:04]: You’re updating provisioning profiles directly in your project, but have you considered easier ways to do code signing?
[13:17:04]: https://docs.fastlane.tools/codesigning/GettingStarted/
[13:17:04]: Downloading root certificate from (https://www.apple.com/appleca/AppleIncRootCertificate.cer) to path '/tmp/AppleIncRootCertificate.cer'
[13:17:04]: Error setting value '' for option 'profile'
+------------------------------------+---------------------------------------------------------+
| Lane Context |
+------------------------------------+---------------------------------------------------------+
| ORIGINAL_DEFAULT_KEYCHAIN | "/Users/travis/Library/Keychains/login.keychain-db" |
| DEFAULT_PLATFORM | ios |
| PLATFORM_NAME | ios |
| LANE_NAME | ios beta |
| SIGH_PROFILE_TYPE | app-store |
| MATCH_PROVISIONING_PROFILE_MAPPING | {"com.mute.klankenbos"=>"match AppStore com.mute.klankenbos"} |
+------------------------------------+---------------------------------------------------------+
[13:17:04]: Path to provisioning profile is invalid

So there's two errors here, right before and right after the Lane Context listing. And that's when the build stops, so I guess they're the real problem here. But since loading the certificates and profiles worked, I'm not sure where I should look now.

Any ideas? The fastlane match configuration succeeded without any problems earlier. I do realise that this is probably not an issue with your project, but I did follow all instructions in your manual. So it might be that something was left out. (Or maybe I simply forgot one of the steps, of course.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions