There is an odd error when npx react-native run-ios for React Native 0.70.1/Xcode 14/Monterey M1:
The following build commands failed:
SwiftEmitModule normal arm64 Emitting\ module\ for\ YogaKit (in target 'YogaKit' from project 'Pods')
However build in Xcode 14 went successfully without any error. Tried to exclude arm64 in Build Setting for DEBUG (currently is i386) and it didn't fix. Also add the following block in pod file and didn't fix as well:
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
# some older pods don't support some architectures, anything over iOS 11 resolves that
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0'
end
end