From ff755a3fc183aaddb507bbbcef486117072f3f35 Mon Sep 17 00:00:00 2001 From: Alive Date: Thu, 10 Apr 2025 09:26:40 +0800 Subject: [PATCH] Display error detail when auto-link command failed --- packages/react-native/scripts/cocoapods/autolinking.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/react-native/scripts/cocoapods/autolinking.rb b/packages/react-native/scripts/cocoapods/autolinking.rb index b2e5600bc5d3..bee8313e4d93 100644 --- a/packages/react-native/scripts/cocoapods/autolinking.rb +++ b/packages/react-native/scripts/cocoapods/autolinking.rb @@ -29,6 +29,7 @@ def list_native_modules!(config_command) if not status.success? Pod::UI.warn "The command: '#{config_command.join(" ").bold.yellow}' returned a status code of #{status.exitstatus.to_s.bold.red}", [ + json, "In order to autolink using Cocoapods, this framework uses @react-native-community/cli to discover React Native native modules", "Please either add it: yarn add -D @react-native-community/cli or consult your framework's documentation." ]