Method: FastlaneCore::ProvisioningProfile.install
- Defined in:
- fastlane_core/lib/fastlane_core/provisioning_profile.rb
.install(path, keychain_path = nil) ⇒ Object
Installs a provisioning profile for Xcode to use
86 87 88 89 90 91 92 93 94 95 96 97 98 99 |
# File 'fastlane_core/lib/fastlane_core/provisioning_profile.rb', line 86 def install(path, keychain_path = nil) UI.("Installing provisioning profile...") destination = File.join(profiles_path, profile_filename(path, keychain_path)) if path != destination # copy to Xcode provisioning profile directory FileUtils.copy(path, destination) unless File.exist?(destination) UI.user_error!("Failed installation of provisioning profile at location: '#{destination}'") end end destination end |