Skip to content

Commit 41cad35

Browse files
sota000facebook-github-bot
authored andcommitted
Fix the default template when RCT_NEW_ARCH_ENABLE=1 (facebook#32775)
Summary: Pull Request resolved: facebook#32775 Changelog: [Internal] Fix build issues for the new app template with the new architecture enabled Reviewed By: philIip Differential Revision: D33157325 fbshipit-source-id: ee63f38fbfc088ca193dfa1b48f4b6611257b787
1 parent 8367fc3 commit 41cad35

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

React-Core.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Pod::Spec.new do |s|
4747
s.compiler_flags = folly_compiler_flags + ' ' + boost_compiler_flags
4848
s.header_dir = "React"
4949
s.framework = "JavaScriptCore"
50-
s.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)/ReactCommon\" \"$(PODS_ROOT)/boost\" \"$(PODS_ROOT)/DoubleConversion\" \"$(PODS_ROOT)/RCT-Folly\" \"${PODS_ROOT}/Headers/Public/React-hermes\" \"${PODS_ROOT}/Headers/Public/hermes-engine\" \"${PODS_ROOT}/Headers/Public/FlipperKit\" \"$(PODS_ROOT)/Headers/Public/ReactCommon\"", "DEFINES_MODULE" => "YES" }
50+
s.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)/ReactCommon\" \"$(PODS_ROOT)/boost\" \"$(PODS_ROOT)/DoubleConversion\" \"$(PODS_ROOT)/RCT-Folly\" \"${PODS_ROOT}/Headers/Public/React-hermes\" \"${PODS_ROOT}/Headers/Public/hermes-engine\" \"${PODS_ROOT}/Headers/Public/FlipperKit\" \"$(PODS_ROOT)/Headers/Public/ReactCommon\" \"$(PODS_ROOT)/Headers/Public/React-RCTFabric\"", "DEFINES_MODULE" => "YES" }
5151
s.user_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/Headers/Private/React-Core\""}
5252
s.default_subspec = "Default"
5353

React/AppSetup/RCTAppSetupUtils.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,12 @@ RCT_EXTERN_C_BEGIN
3333
void RCTAppSetupPrepareApp(UIApplication *application);
3434
UIView *RCTAppSetupDefaultRootView(RCTBridge *bridge, NSString *moduleName, NSDictionary *initialProperties);
3535

36+
RCT_EXTERN_C_END
37+
3638
#if RCT_NEW_ARCH_ENABLED
37-
id<RCTTurboModule> RCTAppSetupDefaultModuleFromClass(Class moduleClass);
38-
std::unique_ptr<facebook::react::JSExecutorFactory> RCTAppSetupDefaultJsexecutorFactory(
39+
RCT_EXTERN id<RCTTurboModule> RCTAppSetupDefaultModuleFromClass(Class moduleClass);
40+
41+
std::unique_ptr<facebook::react::JSExecutorFactory> RCTAppSetupDefaultJsExecutorFactory(
3942
RCTBridge *bridge,
4043
RCTTurboModuleManager *turboModuleManager);
4144
#endif
42-
43-
RCT_EXTERN_C_END

0 commit comments

Comments
 (0)