From 8c779cd630830149c4d33d386ccd3a9a84517d37 Mon Sep 17 00:00:00 2001 From: Cookiezby Date: Tue, 26 Sep 2023 06:57:52 -0700 Subject: [PATCH] fix: typo at utils.rb (#39572) Summary: Fix typo in `packages/react/native/scripts/cocoapods/utils.rb` ## Changelog: [iOS] [Fixed] - Fix the typo for the method `is_using_xcode15_or_greater` Pull Request resolved: https://github.com/facebook/react-native/pull/39572 Reviewed By: dmytrorykun Differential Revision: D49594275 Pulled By: cortinico fbshipit-source-id: 8637fc9b10cfad3742b038ed9402585fe2af56b7 --- packages/react-native/scripts/cocoapods/utils.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react-native/scripts/cocoapods/utils.rb b/packages/react-native/scripts/cocoapods/utils.rb index f101d8410b9b13..d034f40ac4c38d 100644 --- a/packages/react-native/scripts/cocoapods/utils.rb +++ b/packages/react-native/scripts/cocoapods/utils.rb @@ -162,7 +162,7 @@ def self.apply_xcode_15_patch(installer, xcodebuild_manager: Xcodebuild) project.build_configurations.each do |config| # fix for weak linking self.safe_init(config, other_ld_flags_key) - if self.is_using_xcode15_or_greter(:xcodebuild_manager => xcodebuild_manager) + if self.is_using_xcode15_or_greater(:xcodebuild_manager => xcodebuild_manager) self.add_value_to_setting_if_missing(config, other_ld_flags_key, xcode15_compatibility_flags) else self.remove_value_to_setting_if_present(config, other_ld_flags_key, xcode15_compatibility_flags) @@ -358,7 +358,7 @@ def self.remove_value_to_setting_if_present(config, setting_name, value) end end - def self.is_using_xcode15_or_greter(xcodebuild_manager: Xcodebuild) + def self.is_using_xcode15_or_greater(xcodebuild_manager: Xcodebuild) xcodebuild_version = xcodebuild_manager.version # The output of xcodebuild -version is something like