【问题标题】:React Native/Xcode Release with Typescript not working使用 Typescript 的 React Native/Xcode Release 不起作用
【发布时间】:2017-10-02 14:16:06
【问题描述】:

我正在尝试将我的 RN/Typescript 项目的发布版本构建到 iOS。我已将“Bundle React Native 代码和图像”更新为以下内容:

    export NODE_BINARY=node
../node_modules/react-native/scripts/react-native-xcode.sh /artifacts/index.ios.js

但我仍然在 Xcode 上收到以下错误,尽管 index.ios.js 似乎确实存在。

预期路径 /artifacts/index.ios.js 相对于其中一个 项目根

希望得到一些帮助...

【问题讨论】:

    标签: typescript react-native release


    【解决方案1】:

    删除artifacts之前的第一个/解决了这个问题:

    export NODE_BINARY=node
    ../node_modules/react-native/scripts/react-native-xcode.sh artifacts/index.ios.js
    

    【讨论】:

      猜你喜欢
      • 2021-04-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-12-10
      • 1970-01-01
      • 1970-01-01
      • 2018-09-19
      相关资源
      最近更新 更多