IOS 在 "Bundle React Native code and images" 部分无限期地构建堆栈
IOS build stack indefinitely on section "Bundle React Native code and images"
我们已将 React-Native 项目从 RN55 更新到 RN59,从那时起,我无法使用 FastLane gym 构建 IOS。
我可以从 XCode 构建和 运行 应用程序,但是 运行 使用 FastLane 从 CI 宁它似乎堆叠在 "Bundle React Native code and images" 部分 [=42] 之后=]
我尝试了以下但没有成功:
添加变量如下
导出NODE_OPTIONS="--max-old-space-size=4096"
删除node_modules,清除纱线缓存,运行ning scripts/ios-install-third-party.sh 并在 glog-0.3.5
[=37 上配置=]
已删除 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
我们已将 React-Native 项目从 RN55 更新到 RN59,从那时起,我无法使用 FastLane gym 构建 IOS。 我可以从 XCode 构建和 运行 应用程序,但是 运行 使用 FastLane 从 CI 宁它似乎堆叠在 "Bundle React Native code and images" 部分 [=42] 之后=]
我尝试了以下但没有成功:
添加变量如下
导出NODE_OPTIONS="--max-old-space-size=4096"
删除node_modules,清除纱线缓存,运行ning scripts/ios-install-third-party.sh 并在 glog-0.3.5
[=37 上配置=]已删除 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