Sha256: b5445f28c8738d2e76caa12f19abeff59457c7348af1b176ce88b06e7cfb5cfa
Contents?: true
Size: 1.1 KB
Versions: 1
Compression:
Stored size: 1.1 KB
Contents
module Fastlane module Actions module SharedValues end class UpdateProjectCodeSigningAction < Action def self.run(params) path = params.first path = File.join(path, "project.pbxproj") raise "Could not find path to project config '#{path}'. Pass the path to your project (not workspace)!".red unless File.exists?(path) udid = (params[1] rescue nil) udid ||= ENV["SIGH_UDID"] Helper.log.info("Updating provisioning profile UDID (#{udid}) for the given project '#{path}'") p = File.read(path) File.write(path, p.gsub(/PROVISIONING_PROFILE = ".*";/, "PROVISIONING_PROFILE = \"#{udid}\";")) Helper.log.info("Successfully updated project settings to use UDID '#{udid}'".green) end def self.description "Updated code signing settings from 'Automatic' to a specific profile" end def self.details "This feature is not yet 100% finished" end def self.author "KrauseFx" end def self.is_supported?(platform) platform == :ios end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fastlane-0.11.0 | lib/fastlane/actions/update_project_code_signing.rb |