Skip to content

Commit c05e6c4

Browse files
dmytrorykunfacebook-github-bot
authored andcommitted
Remove hermesc build dir for non-Hermes build
Summary: Changelog: [iOS][Fixed] - Remove hermesc build dir for non-Hermes build. Reviewed By: christophpurrer Differential Revision: D41052884 fbshipit-source-id: c9e85ca06cef79fa35e81972181558d44ca93d90
1 parent 7f60bcc commit c05e6c4

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

scripts/cocoapods/jsengine.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,7 @@ def remove_copy_hermes_framework_script_phase(installer, react_native_path)
5959
end
6060
project.save()
6161
end
62+
63+
def remove_hermesc_build_dir(react_native_path)
64+
%x(rm -rf #{react_native_path}/sdks/hermes-engine/build_host_hermesc)
65+
end

scripts/react_native_pods.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ def react_native_post_install(installer, react_native_path = "../node_modules/re
207207
add_copy_hermes_framework_script_phase(installer, react_native_path)
208208
else
209209
remove_copy_hermes_framework_script_phase(installer, react_native_path)
210+
remove_hermesc_build_dir(react_native_path)
210211
end
211212

212213
ReactNativePodsUtils.exclude_i386_architecture_while_using_hermes(installer)

0 commit comments

Comments
 (0)