Skip to content

Commit 4672e01

Browse files
authored
Warn on "pod install" with the new architecture disabled (#300)
1 parent bdc172e commit 4672e01

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.changeset/wicked-tables-deny.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"react-native-node-api": patch
3+
---
4+
5+
Warn on "pod install" with the new architecture disabled

packages/host/react-native-node-api.podspec

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ unless defined?(@xcframeworks_copied)
1717
@xcframeworks_copied = true
1818
end
1919

20+
if ENV['RCT_NEW_ARCH_ENABLED'] == '0'
21+
Pod::UI.warn "React Native Node-API doesn't support the legacy architecture (but RCT_NEW_ARCH_ENABLED == '0')"
22+
end
23+
2024
Pod::Spec.new do |s|
2125
s.name = package["name"]
2226
s.version = package["version"]

0 commit comments

Comments
 (0)