sigh/lib/sigh/runner.rb in fastlane-2.163.0 vs sigh/lib/sigh/runner.rb in fastlane-2.164.0

- old
+ new

@@ -137,11 +137,11 @@ # Makes sure we have the certificate installed on the local machine raw_certs.each do |current_cert| # Skip certificates that failed to download next unless current_cert[:downloaded] file = Tempfile.new('cert') - file.write(current_cert[:downloaded]) + file.write(current_cert[:downloaded].force_encoding('UTF-8')) file.close if FastlaneCore::CertChecker.installed?(file.path) installed = true else UI.message("Certificate for Provisioning Profile '#{current_profile.name}' not available locally: #{current_cert[:cert].id}, skipping this one...") @@ -313,10 +313,10 @@ if Helper.mac? unless Sigh.config[:skip_certificate_verification] certificates = certificates.find_all do |c| file = Tempfile.new('cert') raw_data = Base64.decode64(c.certificate_content) - file.write(raw_data) + file.write(raw_data.force_encoding("UTF-8")) file.close FastlaneCore::CertChecker.installed?(file.path) end end