Sha256: 233e684e14f8a7fbe39e571b61024b31647aeb47dee3c80c4ac3ea2f51d9088e
Contents?: true
Size: 1.83 KB
Versions: 6
Compression:
Stored size: 1.83 KB
Contents
module Fastlane module Actions module SharedValues end class UpdateProjectCodeSigningAction < Action def self.run(params) path = params[:path] 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.exist?(path) Helper.log.info("Updating provisioning profile UDID (#{params[:udid]}) for the given project '#{path}'") p = File.read(path) File.write(path, p.gsub(/PROVISIONING_PROFILE = ".*";/, "PROVISIONING_PROFILE = \"#{params[:udid]}\";")) Helper.log.info("Successfully updated project settings to use UDID '#{params[: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.available_options [ FastlaneCore::ConfigItem.new(key: :path, env_name: "FL_PROJECT_SIGNING_PROJECT_PATH", description: "Path to your Xcode project", verify_block: proc do |value| raise "Path is invalid".red unless File.exist?(value) end), FastlaneCore::ConfigItem.new(key: :udid, env_name: "FL_PROJECT_SIGNING_UDID", description: "The UDID of the provisioning profile you want to use", default_value: ENV["SIGH_UDID"]) ] end def self.author "KrauseFx" end def self.is_supported?(platform) platform == :ios end end end end
Version data entries
6 entries across 6 versions & 1 rubygems