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