mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Merge pull request #42229 from facebook/cipolleschi/fix-_jump_fcontex-071
[RN][iOS] Fix symbol not found _jump_fcontext with use_frameworks!
This commit is contained in:
@@ -160,7 +160,7 @@ class ReactNativePodsUtils
|
||||
|
||||
# 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_0(:xcodebuild_manager => xcodebuild_manager)
|
||||
self.add_value_to_setting_if_missing(config, other_ld_flags_key, xcode15_compatibility_flags)
|
||||
else
|
||||
self.remove_value_from_setting_if_present(config, other_ld_flags_key, xcode15_compatibility_flags)
|
||||
@@ -299,7 +299,7 @@ class ReactNativePodsUtils
|
||||
end
|
||||
end
|
||||
|
||||
def self.is_using_xcode15_or_greter(xcodebuild_manager: Xcodebuild)
|
||||
def self.is_using_xcode15_0(xcodebuild_manager: Xcodebuild)
|
||||
xcodebuild_version = xcodebuild_manager.version
|
||||
|
||||
# The output of xcodebuild -version is something like
|
||||
@@ -310,7 +310,8 @@ class ReactNativePodsUtils
|
||||
regex = /(\d+)\.(\d+)(?:\.(\d+))?/
|
||||
if match_data = xcodebuild_version.match(regex)
|
||||
major = match_data[1].to_i
|
||||
return major >= 15
|
||||
minor = match_data[2].to_i
|
||||
return major == 15 && minor == 0
|
||||
end
|
||||
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user