Skip to content

Commit 2cf1350

Browse files
authored
fix(apple): use core's autolinking script (#2309)
1 parent 9a0d1e1 commit 2cf1350

File tree

2 files changed

+16
-8
lines changed

2 files changed

+16
-8
lines changed

example/ios/Podfile.lock

+10-5
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ PODS:
1313
- fmt (= 9.1.0)
1414
- glog
1515
- RCT-Folly/Default (= 2024.01.01.00)
16+
- RCT-Folly/Default (2024.01.01.00):
17+
- boost
18+
- DoubleConversion
19+
- fmt (= 9.1.0)
20+
- glog
1621
- RCT-Folly/Fabric (2024.01.01.00):
1722
- boost
1823
- DoubleConversion
@@ -1706,13 +1711,13 @@ EXTERNAL SOURCES:
17061711
:path: "../../node_modules/react-native/ReactCommon/yoga"
17071712

17081713
SPEC CHECKSUMS:
1709-
boost: 1dca942403ed9342f98334bf4c3621f011aa7946
1710-
DoubleConversion: f16ae600a246532c4020132d54af21d0ddb2a385
1714+
boost: 4cb898d0bf20404aab1850c656dcea009429d6c1
1715+
DoubleConversion: 76ab83afb40bddeeee456813d9c04f67f78771b5
17111716
Example-Tests: fd3881e0cd75134e3f658c9dbb1788c0c578a504
17121717
FBLazyVector: 430e10366de01d1e3d57374500b1b150fe482e6d
1713-
fmt: 10c6e61f4be25dc963c36bd73fc7b1705fe975be
1714-
glog: 08b301085f15bcbb6ff8632a8ebaf239aae04e6a
1715-
RCT-Folly: bf5c0376ffe4dd2cf438dcf86db385df9fdce648
1718+
fmt: 4c2741a687cc09f0634a2e2c72a838b99f1ff120
1719+
glog: 69ef571f3de08433d766d614c73a9838a06bf7eb
1720+
RCT-Folly: 4464f4d875961fce86008d45f4ecf6cef6de0740
17161721
RCTDeprecation: 726d24248aeab6d7180dac71a936bbca6a994ed1
17171722
RCTRequired: a94e7febda6db0345d207e854323c37e3a31d93b
17181723
RCTTypeSafety: 28e24a6e44f5cbf912c66dde6ab7e07d1059a205

ios/test_app.rb

+6-3
Original file line numberDiff line numberDiff line change
@@ -360,9 +360,12 @@ def use_test_app_internal!(target_platform, options)
360360
install! 'cocoapods', :deterministic_uuids => false
361361
end
362362

363-
require_relative(autolink_script_path(project_root,
364-
target_platform,
365-
project_target[:react_native_version]))
363+
# As of 0.75, we should use `use_native_modules!` from `react-native` instead
364+
if project_target[:react_native_version] < v(0, 75, 0)
365+
require_relative(autolink_script_path(project_root,
366+
target_platform,
367+
project_target[:react_native_version]))
368+
end
366369

367370
begin
368371
platform :ios, platforms[:ios] if target_platform == :ios

0 commit comments

Comments
 (0)