gym/lib/gym/detect_values.rb in fastlane-2.62.0.beta.20171011010003 vs gym/lib/gym/detect_values.rb in fastlane-2.62.0.beta.20171014010003
- old
+ new
@@ -63,12 +63,14 @@
# each target of your app
def self.detect_selected_provisioning_profiles
Gym.config[:export_options] ||= {}
hash_to_use = (Gym.config[:export_options][:provisioningProfiles] || {}).dup || {} # dup so we can show the original values in `verbose` mode
- mapping_object = CodeSigningMapping.new(project: Gym.project)
- hash_to_use = mapping_object.merge_profile_mapping(primary_mapping: hash_to_use,
+ unless Gym.config[:skip_profile_detection]
+ mapping_object = CodeSigningMapping.new(project: Gym.project)
+ hash_to_use = mapping_object.merge_profile_mapping(primary_mapping: hash_to_use,
export_method: Gym.config[:export_method])
+ end
return if hash_to_use.count == 0 # We don't want to set a mapping if we don't have one
Gym.config[:export_options][:provisioningProfiles] = hash_to_use
UI.message("Detected provisioning profile mapping: #{hash_to_use}")
rescue => ex