From 87a5b0f8093dedcfea8ccad2ba5d37c4eda1e5e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Malo=20L=C3=A9on?= Date: Wed, 26 Apr 2023 17:04:24 +0200 Subject: [PATCH] fix: fix unexpected end-of-input error (#2) --- .../lib/fastlane/plugin/ios_cd/helper/ios_cd_helper.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/fastlane-plugin-ios_cd/lib/fastlane/plugin/ios_cd/helper/ios_cd_helper.rb b/plugins/fastlane-plugin-ios_cd/lib/fastlane/plugin/ios_cd/helper/ios_cd_helper.rb index c5ee24d..4ac0a7e 100644 --- a/plugins/fastlane-plugin-ios_cd/lib/fastlane/plugin/ios_cd/helper/ios_cd_helper.rb +++ b/plugins/fastlane-plugin-ios_cd/lib/fastlane/plugin/ios_cd/helper/ios_cd_helper.rb @@ -58,14 +58,15 @@ module Fastlane # Parse credential file def parseIosCredentials(ios_directory) - if File.exists?("#{ios_directory}/ios_crendentials.json") + if File.exist?("#{ios_directory}/ios_crendentials.json") # Read file and decrypt it file = File.read("#{ios_directory}/ios_crendentials.json") JSON.parse(file) - else + else UI.error("❌ Ios credentials doesn't exist") puts("json file doesn't exist") + end end end end