尝试归档我的 RN 项目但出现此错误。目前使用 RN 0.65.1 和 React 17.0.2。尝试libReact-hermes.a
在 xcode 中添加“Link Binary With Libraries”,但错误仍然存在。
ld: library not found for -lReact-hermes
require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
platform :ios, '11.0'
target 'MyAppp' do
config = use_native_modules!
use_react_native!(
:path => config[:reactNativePath],
:hermes_enabled => true
)
use_flipper!()
end