I am working on a CI/CD for an iOS project, i use fastlane
& Gitlab CI
, this is my lane in the fastlane
which work on the local machine when i run the command:
bundle exec `fastlane` build:
lane :build do
update_code_signing_settings(use_automatic_signing: true, path: "XXXXXXXXXXX.xcodeproj")
build_app(
scheme: "XXXXXXXXXXXXX",
clean: true,
silent: true,
#skip_codesigning: true,
skip_package_dependencies_resolution: true,
#cloned_source_packages_path: "./dependencies",
output_directory: "./build",
output_name: "XXXXXXXXXXXXXXXX.ipa",
configuration: "Release",
#codesigning_identity: "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
#export_team_id: "XXXXXXXXXX",
#xcargs: "PROVISIONING_PROFILE_SPECIFIER=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
)
end
when i run the build job in the gitlab ci:
stage: build
script:
- cd $WORKING_DIR
- bundle exec fastlane ios build
it return this error : path.xcodeproj: error: No signing certificate “iOS Development” found: No “iOS Development” signing certificate matching team ID “XXXXXXXXXX” with a private key was found. (in target ‘XXXXXXXXXXXXXX’ from project ‘XXXXXXXX’)