lib/sigh/runner.rb in sigh-1.10.3 vs lib/sigh/runner.rb in sigh-1.10.4

- old
+ new

@@ -63,11 +63,19 @@ end # Fetches a profile matching the user's search requirements def fetch_profiles UI.message "Fetching profiles..." - results = profile_type.find_by_bundle_id(Sigh.config[:app_identifier]).find_all(&:valid?) + results = profile_type.find_by_bundle_id(Sigh.config[:app_identifier]) + results = results.find_all do |current_profile| + if current_profile.valid? + true + else + UI.message("Provisioning Profile '#{current_profile.name}' is not valid, skipping this one...") + false + end + end # Take the provisioning profile name into account if Sigh.config[:provisioning_name].to_s.length > 0 filtered = results.select { |p| p.name.strip == Sigh.config[:provisioning_name].strip } if Sigh.config[:ignore_profiles_with_different_name] @@ -87,10 +95,10 @@ file.write(cert.download_raw) file.close if FastlaneCore::CertChecker.installed?(file.path) installed = true else - UI.important("Certificate for Provisioning Profile '#{a.name}' not available locally: #{cert.id}") + UI.important("Certificate for Provisioning Profile '#{a.name}' not available locally: #{cert.id}, skipping this one...") end end installed end end