Sha256: 82137029b57886f4966f6348fbd3eb9b2efbcbca7bf9a04c3e45eabc1634e471
Contents?: true
Size: 1.02 KB
Versions: 5
Compression:
Stored size: 1.02 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 end end end
Version data entries
5 entries across 5 versions & 1 rubygems