Skip to content

Commit fd3ce3e

Browse files
committed
fix: RNTA linking issue
1 parent aa334a4 commit fd3ce3e

File tree

3 files changed

+45
-13
lines changed

3 files changed

+45
-13
lines changed

Apps/BRNPlayground/ios/Podfile

+16-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
require_relative '../node_modules/react-native-test-app/test_app'
2+
require_relative '../node_modules/react-native-permissions/scripts/setup'
23

34
workspace 'BRNPlayground.xcworkspace'
45

5-
use_test_app!
6+
options = {
7+
:bridgeless_enabled => false,
8+
:fabric_enabled => false,
9+
:hermes_enabled => false,
10+
# Fixes linking issue when using CMake > 3.24
11+
:app_build_settings => {
12+
'LIBRARY_SEARCH_PATHS' => '$(inherited) "$(PODS_ROOT)/../../../Modules/@babylonjs/Build/iOS/build"/**',
13+
}
14+
}
15+
16+
# react-native-permissions
17+
setup_permissions(['Camera'])
18+
19+
use_test_app! options
20+

Apps/BRNPlayground/ios/Podfile.lock

+14-12
Original file line numberDiff line numberDiff line change
@@ -854,7 +854,7 @@ PODS:
854854
- React-debug
855855
- react-native-babylon (0.0.1):
856856
- React
857-
- react-native-slider (4.5.0):
857+
- react-native-slider (4.5.2):
858858
- glog
859859
- RCT-Folly (= 2022.05.16.00)
860860
- React-Core
@@ -1021,15 +1021,17 @@ PODS:
10211021
- React-jsi (= 0.73.5)
10221022
- React-logger (= 0.73.5)
10231023
- React-perflogger (= 0.73.5)
1024-
- ReactNativeHost (0.4.4):
1024+
- ReactNativeHost (0.4.9):
1025+
- glog
1026+
- RCT-Folly (= 2022.05.16.00)
10251027
- React-Core
10261028
- React-cxxreact
10271029
- ReactCommon/turbomodule/core
1028-
- ReactTestApp-DevSupport (3.2.15):
1030+
- ReactTestApp-DevSupport (3.7.2):
10291031
- React-Core
10301032
- React-jsi
10311033
- ReactTestApp-Resources (1.0.0-dev)
1032-
- RNPermissions (3.10.1):
1034+
- RNPermissions (4.1.5):
10331035
- React-Core
10341036
- SocketRocket (0.6.1)
10351037
- Yoga (1.14.0)
@@ -1233,7 +1235,7 @@ SPEC CHECKSUMS:
12331235
React-logger: 0331362115f0f5b392bd7ed14636d1a3ea612479
12341236
React-Mapbuffer: 7c35cd53a22d0be04d3f26f7881c7fb7dd230216
12351237
react-native-babylon: bf91c1c58c6074bc30c85d9959b62c340388ad60
1236-
react-native-slider: 09e5a8b7e766d3b5ae24ec15c5c4ec2679ca0f8c
1238+
react-native-slider: 7a39874fc1fcdfee48e448fa72cce0a8f2c7c5d6
12371239
React-nativeconfig: 1166714a4f7ea57a0df5c2cb44fbc70f98d580f9
12381240
React-NativeModulesApple: 461b7a216dffdcfcae46afeba2e0859a78eef71e
12391241
React-perflogger: 0dd9f1725d55f8264b81efadd373fe1d9cca7dc2
@@ -1254,13 +1256,13 @@ SPEC CHECKSUMS:
12541256
React-runtimescheduler: 7b558337d22a47a270b5c99d8016b5ab743b3035
12551257
React-utils: 987a4526a2fc0acdfaf87888adfe0bf9d0452066
12561258
ReactCommon: dcc87812d79ce368cc41b7cf49fb624cf3c22b6b
1257-
ReactNativeHost: 59d4565eee4fb44efb46d3bff7adbaf2cf29fa5f
1258-
ReactTestApp-DevSupport: 8a69118a4beadc5c4426e35d4d38c3dc7357cb3d
1259-
ReactTestApp-Resources: da77347b3f02b5d79ba3fecb3ad328b2f6a7ef4d
1260-
RNPermissions: 4e3714e18afe7141d000beae3755e5b5fb2f5e05
1259+
ReactNativeHost: 8d42a784a88c420acba96197e779d0f8ac467e04
1260+
ReactTestApp-DevSupport: f845db38b4b4ce8d341f8acdba934ee85ed3d7b2
1261+
ReactTestApp-Resources: 857244f3a23f2b3157b364fa06cf3e8866deff9c
1262+
RNPermissions: 5a2dafe37c8e0a3fa1d6e0783a1490b1b7fd92d6
12611263
SocketRocket: f32cd54efbe0f095c4d7594881e52619cfe80b17
1262-
Yoga: a716eea57d0d3430219c0a5a233e1e93ee931eb7
1264+
Yoga: 9e6a04eacbd94f97d94577017e9f23b3ab41cf6c
12631265

1264-
PODFILE CHECKSUM: e687290f438ec43665217ddfa04af01259887347
1266+
PODFILE CHECKSUM: b0e00fa0d52ad3e78f29d768017148381add99f0
12651267

1266-
COCOAPODS: 1.14.2
1268+
COCOAPODS: 1.15.2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
diff --git a/node_modules/react-native-test-app/ios/test_app.rb b/node_modules/react-native-test-app/ios/test_app.rb
2+
index c6662e8..61a0e88 100644
3+
--- a/node_modules/react-native-test-app/ios/test_app.rb
4+
+++ b/node_modules/react-native-test-app/ios/test_app.rb
5+
@@ -235,6 +235,10 @@ def make_project!(xcodeproj, project_root, target_platform, options)
6+
tests_build_settings = {}
7+
uitests_build_settings = {}
8+
9+
+ options[:app_build_settings]&.each do |setting, value|
10+
+ build_settings[setting] ||= value
11+
+ end
12+
+
13+
code_sign_entitlements = platform_config('codeSignEntitlements', project_root, target_platform)
14+
if code_sign_entitlements.is_a? String
15+
package_root = File.dirname(find_file('app.json', project_root))

0 commit comments

Comments
 (0)