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

Version Path
fastlane-0.6.1 lib/fastlane/actions/update_project_code_signing.rb
fastlane-0.6.0 lib/fastlane/actions/update_project_code_signing.rb
fastlane-0.5.0 lib/fastlane/actions/update_project_code_signing.rb
fastlane-0.4.2 lib/fastlane/actions/update_project_code_signing.rb
fastlane-0.4.1 lib/fastlane/actions/update_project_code_signing.rb
fastlane-0.4.0 lib/fastlane/actions/update_project_code_signing.rb
fastlane-0.3.0 lib/fastlane/actions/update_project_code_signing.rb
fastlane-0.2.1 lib/fastlane/actions/update_project_code_signing.rb
fastlane-0.2.0 lib/fastlane/actions/update_project_code_signing.rb
fastlane-0.1.19 lib/fastlane/actions/update_project_code_signing.rb
fastlane-0.1.18 lib/fastlane/actions/update_project_code_signing.rb
fastlane-0.1.17 lib/fastlane/actions/update_project_code_signing.rb
fastlane-0.1.16 lib/fastlane/actions/update_project_code_signing.rb
fastlane-0.1.15 lib/fastlane/actions/update_project_code_signing.rb
fastlane-0.1.14 lib/fastlane/actions/update_project_code_signing.rb
fastlane-0.1.13 lib/fastlane/actions/update_project_code_signing.rb