Skip to content

Commit

Permalink
fix: typo at utils.rb (facebook#39572)
Browse files Browse the repository at this point in the history
Summary:
Fix typo in `packages/react/native/scripts/cocoapods/utils.rb`

## Changelog:

<!-- Help reviewers and the release process by writing your own changelog entry.

Pick one each for the category and type tags:

For more details, see:
https://reactnative.dev/contributing/changelogs-in-pull-requests
-->

[iOS] [Fixed] - Fix the typo for the method `is_using_xcode15_or_greater`

Pull Request resolved: facebook#39572

Reviewed By: dmytrorykun

Differential Revision: D49594275

Pulled By: cortinico

fbshipit-source-id: 8637fc9b10cfad3742b038ed9402585fe2af56b7
  • Loading branch information
Cookiezby authored and facebook-github-bot committed Sep 26, 2023
1 parent 63ca55b commit 8c779cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react-native/scripts/cocoapods/utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 8c779cd

Please sign in to comment.