I started using fastLane and match for codesigning on jenkins. match is able to successfully create the certificates and provisioning profile. The build_app
step however fails since the pbxproj
file is setting the CODE_SIGN_STYLE to Automatic. I want to achieve the build without modifying the pbxproj
file since the devs use automatic signing.
FastFile
lane :upload_debug_test_flight do
setup_jenkins
match
build_app(scheme: "MyWork Dev", clean: true, export_method: "app-store")
upload_to_testflight(.....)
end
Match file:
git_url("git@github.mywork/cert_repo.git")
storage_mode("git")
type("appstore")
api_key_path("./test.json")
app_identifier(["com.mywork.mywork-test"])
username("developer@mywork.com")
In our project.pbxproj we have
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
PROVISIONING_PROFILE_SPECIFIER= ''
Also tried the following, but still gym/build_app is not picking the match env variables:
build_app(
skip_profile_detection: true,
export_method: "app-store",
export_options:{
signingStyle: "manual",
provisioningProfiles:{
"com.mywork.mywork-test": "match AppStore com.mywork.mywork-test"
}
}
)