1. App.js ์ถ๊ฐ
{
"expo": {
"jsEngine": "hermes"
}
}
์์
{
"expo": {
"name": "client",
"slug": "client",
**"jsEngine" : "hermes", <-- ์ถ๊ฐ**
"version": "1.0.0",
"orientation": "portrait",
"icon": "./assets/icon.png",
"splash": {
"image": "./assets/splash.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"updates": {
"fallbackToCacheTimeout": 0
},
"assetBundlePatterns": [
"**/*"
],
"ios": {
"bundleIdentifier": "com.rabbit.testApp",
"supportsTablet": true,
"buildNumber": "1.0.0"
},
"android": {
"package": "com.rabbit.testApp",
"versionCode": 1 ,
"adaptiveIcon": {
"foregroundImage": "./assets/adaptive-icon.png",
"backgroundColor": "#FFFFFF"
}
},
"web": {
"favicon": "./assets/favicon.png"
}
}
}
2. Command Insert
* ํด๋น ํ๋ก์ ํธ์ ์ง์
ํ ์๋ ๋ช
๋ น์ด ์คํ
$ npm install -g eas-cli
$ npm install -g eas-cli-local-build-plugin
๐ฎโ๐จย M1 Mac
iOS์ฉ Hermes๋ฅผ ์ฌ์ฉํ ๋ ์๋ฎฌ๋ ์ดํฐ์ฉ์ผ๋ก ๋น๋ํ ๋ ๋ค์ ์ค๋ฅ๊ฐ ๋ฐ์ํ ์ ์์ต๋๋ค.
--- a/ios/Podfile
+++ b/ios/Podfile
@@ -25,6 +25,22 @@ target 'HelloWorld' do
post_install do |installer|
react_native_post_install(installer)
+ # Workaround simulator build error for hermes with react-native 0.64 on mac m1 devices
+ arm_value = `/usr/sbin/sysctl -n hw.optional.arm64 2>&1`.to_i
+ has_hermes = has_pod(installer, 'hermes-engine')
+ if arm_value == 1 && has_hermes
+ projects = installer.aggregate_targets
+ .map{ |t| t.user_project }
+ .uniq{ |p| p.path }
+ .push(installer.pods_project)
+ projects.each do |project|
+ project.build_configurations.each do |config|
+ config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] + ' arm64'
+ end
+ project.save()
+ end
+ end
+
# Workaround `Cycle inside FBReactNativeSpec` error for react-native 0.64
# Reference: https://github.com/software-mansion/react-native-screens/issues/842#issuecomment-812543933
installer.pods_project.targets.each do |target|
// ํด๊ฒฐ ๋ฐฉ๋ฒ
Pod๋ฅผ ๋ค์ ์ค์นํ๊ณ Xcode ๋น๋ ์บ์๋ฅผ ์ ๋ฆฌํฉ๋๋ค.
$ npx pod-install
$ xcodebuild clean -workspace ios/{projectName}.xcworkspace -scheme {projectName}
Android build Test Result


