From fe894d9ae6a88f08ad80963cc574cc5a53579d80 Mon Sep 17 00:00:00 2001 From: Florian Buerger Date: Tue, 29 May 2018 11:19:34 -0700 Subject: [PATCH] Fallback to `CFBundleName` if `CFBundleDisplayName` is nil `CFBundleDisplayName` is not set in the default iOS project template. See https://github.com/joshdholtz/fastlane-plugin-s3/issues/62 --- lib/fastlane/plugin/aws_s3/actions/aws_s3_action.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/fastlane/plugin/aws_s3/actions/aws_s3_action.rb b/lib/fastlane/plugin/aws_s3/actions/aws_s3_action.rb index 32c47a3..59a595c 100644 --- a/lib/fastlane/plugin/aws_s3/actions/aws_s3_action.rb +++ b/lib/fastlane/plugin/aws_s3/actions/aws_s3_action.rb @@ -164,7 +164,11 @@ def self.upload_ipa(s3_client, params, s3_region, s3_access_key, s3_secret_acces build_num = info['CFBundleVersion'] bundle_id = info['CFBundleIdentifier'] bundle_version = info['CFBundleShortVersionString'] - title = CGI.escapeHTML(info['CFBundleDisplayName']) + display_name = info['CFBundleDisplayName'] + if display_name.nil? + display_name = info['CFBundleName'] + end + title = CGI.escapeHTML(display_name) full_version = "#{bundle_version}.#{build_num}" # Creating plist and html names