fastlane/lib/fastlane/actions/get_version_number.rb in fastlane-2.199.0 vs fastlane/lib/fastlane/actions/get_version_number.rb in fastlane-2.200.0
- old
+ new
@@ -136,9 +136,10 @@
return '$(MARKETING_VERSION)' if plist_file.nil?
plist = Xcodeproj::Plist.read_from_path(plist_file)
UI.user_error!("Unable to read plist: #{plist_file}") unless plist
+ return '${MARKETING_VERSION}' if plist["CFBundleShortVersionString"].nil?
plist["CFBundleShortVersionString"]
end
#####################################################
# @!group Documentation