fastlane/lib/fastlane/actions/get_version_number.rb in fastlane-2.89.0.beta.20180402050042 vs fastlane/lib/fastlane/actions/get_version_number.rb in fastlane-2.89.0

- old
+ new

@@ -36,10 +36,13 @@ # Prompt targets if no name unless target_name # Gets non-test targets - non_test_targets = targets.reject(&:test_target_type?) + non_test_targets = targets.reject do |t| + # Not all targets respond to `test_target_type?` + t.respond_to?(:test_target_type?) && t.test_target_type? + end # Returns if only one non-test target if non_test_targets.count == 1 return targets.first end