Enable hermes engine for ios: React native on Mac M1

0
199


After enabling hermes engine in podfile throws error while building app

"Undefined symbols for architecture x86_64: "vtable for facebook::react::HermesExecutorFactory"

Hermes version : 0.9.0

RN : 0.66.1

podfile

 platform :ios, '11.0'
 target 'OneSignalNotificationServiceExtension' do
 pod 'react-native-onesignal', :path => '../node_modules/react-native-onesignal'
end

target '****' do
# Pods for ****
config = use_native_modules!
use_react_native!(path: config['reactNativePath'])

use_react_native!(
:path => config[:reactNativePath],
# to enable hermes on iOS, change `false` to `true` and then install pods
:hermes_enabled => true

)