I am trying to build Xcode project using TeamCity (Xcode 12.4). The command line looks like this:
When I run the command over SSH or locally in the Terminal it runs succefully.
But when it is executed by a CI agent it fails with:
This error occurs on the start before any compilation.
The CI agent works under my administrator user. Working directory is the same. The only difference is (this is my guess) CI agent runs commands in non-interactive way.
I have tried manual signing and automatic signing too. I think I have no mentions of "iOS Development" in the project. I am using the "Apple Development" certificate.
Code Block xcodebuild archive -workspace "some real workspace path" -scheme "some real scheme" -configuration Release
When I run the command over SSH or locally in the Terminal it runs succefully.
But when it is executed by a CI agent it fails with:
Code Block error: No signing certificate "iOS Development" found: No "iOS Development" signing certificate matching team ID "6Z7YRS8ZC4" with a private key was found.
This error occurs on the start before any compilation.
The CI agent works under my administrator user. Working directory is the same. The only difference is (this is my guess) CI agent runs commands in non-interactive way.
I have tried manual signing and automatic signing too. I think I have no mentions of "iOS Development" in the project. I am using the "Apple Development" certificate.