При тестировании нашего проекта на последней версии Xcode 26.0.1 мы столкнулись со следующей ошибкой времени сборки: «Команда PhaseScriptExecution завершилась неудачей с ненулевым кодом завершения». Ниже приведены журналы, которые я вижу на вкладке «Отчеты».
Код: Выделить всё
Showing Recent Issues
+ node /Users/admin/Workspace/mobile-app/node_modules/react-native/scripts/bundle.js bundle --entry-file index.js --platform ios --dev false --reset-cache --bundle-output /Users/admin/Library/Developer/Xcode/DerivedData/App-cimwsmjoqfywufalykdelucelmla/Build/Products/Release-iphonesimulator/main.jsbundle --assets-dest /Users/admin/Library/Developer/Xcode/DerivedData/App-cimwsmjoqfywufalykdelucelmla/Build/Products/Release-iphonesimulator/App.app --config-cmd 'node /Users/admin/Workspace/mobile-app/node_modules/react-native/cli.js config'
(node:50950) UnhandledPromiseRejectionWarning: TypeError: pathPattern.replaceAll is not a function
at /Users/admin/Workspace/mobile-app/node_modules/@react-native/metro-config/dist/index.js:38:39
at Array.map ()
at Object. (/Users/admin/Workspace/mobile-app/node_modules/@react-native/metro-config/dist/index.js:38:6)
at Module._compile (internal/modules/cjs/loader.js:1114:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1143:10)
at Module.load (internal/modules/cjs/loader.js:979:32)
at Function.Module._load (internal/modules/cjs/loader.js:819:12)
at Module.require (internal/modules/cjs/loader.js:1003:19)
at require (internal/modules/cjs/helpers.js:107:18)
at Object. (/Users/admin/Workspace/mobile-app/metro.config.js:1:41)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:50950) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:50950) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
+ [[ false == false ]]
+ cp /Users/admin/Library/Developer/Xcode/DerivedData/App-cimwsmjoqfywufalykdelucelmla/Build/Products/Release-iphonesimulator/main.jsbundle /Users/admin/Library/Developer/Xcode/DerivedData/App-cimwsmjoqfywufalykdelucelmla/Build/Products/Release-iphonesimulator/App.app/
cp: /Users/admin/Library/Developer/Xcode/DerivedData/App-cimwsmjoqfywufalykdelucelmla/Build/Products/Release-iphonesimulator/main.jsbundle: No such file or directory
Command PhaseScriptExecution failed with a nonzero exit code
Вот моя текущая настройка:
Код: Выделить всё
"react": "18.3.1",
"react-native": "0.76.5",
Код: Выделить всё
"@react-native/metro-config": "0.76.5",
Подробнее здесь: https://stackoverflow.com/questions/797 ... -exit-code
Мобильная версия