Expo SDK 51 iOS开发构建失败:Jest Worker进程终止报错
环境信息
- Expo SDK 51
- NativeWind 版本:^4.1.23
- 执行的构建命令:
npx eas build --profile development-simulator --platform ios
eas.json 配置
{ "cli": { "version": ">= 9.2.0" }, "build": { "development": { "developmentClient": true, "distribution": "internal" }, "development-simulator": { "developmentClient": true, "distribution": "internal", "ios": { "simulator": true } }, "preview": { "distribution": "internal" }, "production": {} }, "submit": { "production": {} } }
报错信息
yarn run v1.22.21
$ /Users/expo/workingdir/build/frontend/node_modules/.bin/expo export:embed --eager --platform ios --dev false
Starting Metro Bundler
tailwindcss(ios) rebuilding...
done
|
<--- Last few GCs --- [2058:0x130008000] 51620 ms: Mark-sweep (reduce) 2030.9 (2084.3) -> 2030.9 (2084.3) MB, 1920.8 / 0.0 ms (average mu = 0.147, current mu = 0.102) allocation failure; GC in old space requested |
iOS Bundling failed 89196ms node_modules/expo-router/entry.js (3958 modules)
global.css: A jest worker process (pid=2058) was terminated by another process: signal=SIGTERM, exitCode=null. Operating system logs may contain more information on why this occurred.
SyntaxError: global.css: A jest worker process (pid=2058) was terminated by another process: signal=SIGTERM, exitCode=null. Operating system logs may contain more information on why this occurred.
Error: A jest worker process (pid=2058) was terminated by another process: signal=SIGTERM, exitCode=null. Operating system logs may contain more information on why this occurred.
at ChildProcessWorker._onExit (/Users/expo/workingdir/build/frontend/node_modules/jest-worker/build/workers/ChildProcessWorker.js:370:23)
at ChildProcess.emit (node:events:517:28)
error Command failed with exit code 1.
已尝试的操作
修改global.css的导入路径(当前为import "../global.css";),但问题未解决,寻求帮助。
内容的提问来源于stack exchange,提问作者Jakub Perďoch

