首页 > 解决方案 > 升级后 React Native IOS 构建问题

问题描述

将本机版本升级到 66.3 后,我遇到了以下错误。

未分类的组命令 PhaseScriptExecution 失败,退出代码为非零

在此处输入图像描述

Showing All Messages
  processRequest = (req, res, next) => {


Showing All Messages
SyntaxError: Unexpected token =

    at new Script (vm.js:74:7)

    at createScript (vm.js:246:10)

    at Object.runInThisContext (vm.js:298:10)

    at Module._compile (internal/modules/cjs/loader.js:670:28)

    at Object.Module._extensions..js (internal/modules/cjs/loader.js:713:10)

    at Module.load (internal/modules/cjs/loader.js:612:32)

    at tryModuleLoad (internal/modules/cjs/loader.js:551:12)

    at Function.Module._load (internal/modules/cjs/loader.js:543:3)

    at Module.require (internal/modules/cjs/loader.js:650:17)

    at require (internal/modules/cjs/helpers.js:20:18)

标签: iosswiftxcodereact-native

解决方案


推荐阅读