Sha256: c549eb70c1c5ed99773f1bdd2bbe8b2fea0daa229df1720369d977073aa5e8cf
Contents?: true
Size: 787 Bytes
Versions: 16
Compression:
Stored size: 787 Bytes
Contents
module Fastlane module Actions module SharedValues end class UpdateProjectCodeSigningAction 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 end end end
Version data entries
16 entries across 16 versions & 1 rubygems