gpt4 book ai didi

IOS 在 "Bundle React Native code and images"部分无限期地构建堆栈

转载 作者:行者123 更新时间:2023-11-29 11:27:05 25 4
gpt4 key购买 nike

我们已将我们的 React-Native 项目从 RN55 更新到 RN59,从那时起,我无法使用 FastLane gym 构建 IOS。我可以从 XCode 构建和运行应用程序,但是使用 FastLane 从 CI 运行它似乎在“转换缓存已重置”之后堆叠在“Bundle React Native 代码和图像”部分。

我尝试了以下方法但没有成功:

  1. 如下添加变量

    导出 NODE_OPTIONS="--max-old-space-size=4096"

  2. 移除 node_modules,清除 yarn 缓存,运行 scripts/ios-install-third-party.sh 并在 glog-0.3.5 上配置

  3. 删除 watchman 缓存并清除 $TMPDIR 文件夹以用于 react、haste 和 metro

执行以下命令:

xcodebuild 
-workspace ./ios/myApp.xcworkspace
-scheme myapp
-destination 'generic/platform=iOS'
-archivePath /Users/Shared/myApp/app/output/myapp\ 2019-08-27\ 18.13.05.xcarchive
-derivedDataPath '/Users/Shared/myApp/app/derivedData'
-UseModernBuildSystem=0
clean archive

在 Xcode 上,我在“Bundle React Native code and images”上有以下脚本 - 也尝试过不使用 NODE_OPTIONS

export NODE_BINARY=node
export NODE_OPTIONS="--max_old_space_size=4096"
../node_modules/react-native/scripts/react-native-xcode.sh

NodeJS version: 10.16.0

xCode version 10.1

Mojave 10.14.4

我没有收到任何错误,但从未生成 ipa。

最佳答案

经过几天的搜索,我在这里找到了解决方案:

https://github.com/getsentry/sentry-react-native/issues/422

我添加了

在“捆绑 React Native 代码和图像”的脚本末尾

编辑:将代码的最后一部分粘贴到此处,即我修改的部分:

if ["${CONFIGURATION}" != "Debug" ]; then
../node_modules/@sentry/cli/bin/sentry-cli react-native xcode \
../node_modules/react-native/scripts/react-native-xcode.sh < /dev/null
else
../node_modules/react-native/scripts/react-native-xcode.sh < /dev/null
fi

关于IOS 在 "Bundle React Native code and images"部分无限期地构建堆栈,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57675808/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com