Skip to content

Commit

Permalink
Fallback to CFBundleName if CFBundleDisplayName is nil
Browse files Browse the repository at this point in the history
`CFBundleDisplayName` is not set in the default iOS project template.

See fastlane-community#62
  • Loading branch information
florianbuerger committed May 29, 2018
1 parent 1daf063 commit fe894d9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/fastlane/plugin/aws_s3/actions/aws_s3_action.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fe894d9

Please sign in to comment.