From f869703047fc04bfb7bb4759845769419cc19e96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kr=C3=A6n=20Hansen?= Date: Sun, 2 Nov 2025 11:25:42 +0100 Subject: [PATCH] Warn on "pod install" with the new architecture disabled --- .changeset/wicked-tables-deny.md | 5 +++++ packages/host/react-native-node-api.podspec | 4 ++++ 2 files changed, 9 insertions(+) create mode 100644 .changeset/wicked-tables-deny.md diff --git a/.changeset/wicked-tables-deny.md b/.changeset/wicked-tables-deny.md new file mode 100644 index 00000000..a1db092b --- /dev/null +++ b/.changeset/wicked-tables-deny.md @@ -0,0 +1,5 @@ +--- +"react-native-node-api": patch +--- + +Warn on "pod install" with the new architecture disabled diff --git a/packages/host/react-native-node-api.podspec b/packages/host/react-native-node-api.podspec index 5066e82d..74107aab 100644 --- a/packages/host/react-native-node-api.podspec +++ b/packages/host/react-native-node-api.podspec @@ -17,6 +17,10 @@ unless defined?(@xcframeworks_copied) @xcframeworks_copied = true end +if ENV['RCT_NEW_ARCH_ENABLED'] == '0' + Pod::UI.warn "React Native Node-API doesn't support the legacy architecture (but RCT_NEW_ARCH_ENABLED == '0')" +end + Pod::Spec.new do |s| s.name = package["name"] s.version = package["version"]