update_project_provisioning

Update projects code signing settings from your provisioning profile

You should check out the code signing guide before using this action.
This action retrieves a provisioning profile UUID from a provisioning profile (.mobileprovision) to set up the Xcode projects' code signing settings in *.xcodeproj/project.pbxproj.
The :target_filter value can be used to only update code signing for the specified targets.
The :build_configuration value can be used to only update code signing for the specified build configurations of the targets passing through the :target_filter.
Example usage is the WatchKit Extension or WatchKit App, where you need separate provisioning profiles.
Example: update_project_provisioning(xcodeproj: "..", target_filter: ".*WatchKit App.*").

update_project_provisioning
Supported platforms ios, mac
Author @tobiasstrebitzer, @czechboy0

1 Example

update_project_provisioning(
  xcodeproj: "Project.xcodeproj",
  profile: "./watch_app_store.mobileprovision", # optional if you use sigh
  target_filter: ".*WatchKit Extension.*", # matches name or type of a target
  build_configuration: "Release",
  code_signing_identity: "iPhone Development" # optionally specify the codesigning identity
)

Parameters

Key Description Default
xcodeproj Path to your Xcode project
profile Path to provisioning profile (.mobileprovision) *
target_filter A filter for the target name. Use a standard regex
build_configuration_filter Legacy option, use 'target_filter' instead
build_configuration A filter for the build configuration name. Use a standard regex. Applied to all configurations if not specified
certificate Path to apple root certificate /tmp/AppleIncRootCertificate.cer
code_signing_identity Code sign identity for build configuration

* = default value is dependent on the user's system


To show the documentation in your terminal, run

fastlane action update_project_provisioning

View source code


Back to actions