我的应用程序被逐出了世博,所以每次发布时我都要做世博发布,所以每次发布时,这个方法都能完美地工作50次以上,但是当我尝试用xcode进行存档或在android中生成发布版本时,突然间,出现了以下错误
在Xcode中:
Showing All Messages
https://assets/3c851d60ad5ef3f2fe43ebd263490d78
https://assets/1a0e3525dd5df87e77057204129a5e6e
https://assets/2379ae894c2c9f63b852a9f3676c2763
https://assets/5cdf883b18a5651a29a4d1ef276d2457
https://assets/74d124a3caeac2bea111f3ca2f2dd34a
[20:37:23] Error: getaddrinfo ENOTFOUND assets
[20:37:23] Before making a release build, make sure you have run 'expo publish' at least once. Learn more. (https://expo.fyi/release-builds-with-expo-updates)在Android中:
> Task :app:bundleReleaseExpoUpdatesAssets
https://assets/3c851d60ad5ef3f2fe43ebd263490d78
https://assets/1a0e3525dd5df87e77057204129a5e6e
https://assets/2379ae894c2c9f63b852a9f3676c2763
https://assets/5cdf883b18a5651a29a4d1ef276d2457
https://assets/74d124a3caeac2bea111f3ca2f2dd34a
[21:22:20] Error: getaddrinfo ENOTFOUND assets
[21:22:20] Before making a release build, make sure you have run 'expo publish' at least once. Learn more. 即使我的世博发布已经完成,如果我试图构建存档或apk,我也会得到错误
我尝试过清除看守,删除节点模块,重新安装吊舱,清除cache.etc没有任何帮助
发布于 2022-02-10 07:31:44
是否使用pdf中的说明来尝试此解决方案?,但没有为我工作。花了几天时间寻找解决方案,但对我来说没有什么效果,所以我深入研究了这个问题。
我的项目是使用世博会SDK36。
对我起作用的是下面的解决方案。
要求
npm install expo-cli --save-dev。每当我们使用Xcode Archive或Android assembleRelease命令进行构建时,这些命令都会执行expo bundle-assets命令。我们将在下面的步骤中替换世博并使用本地expo-cli。
iOS特异溶液

expo bundle-assets --platform ios --dest "$dest"替换为npx expo-cli bundle-assets --platform ios --dest "$dest"npx expo-cli publish --clearAndroid专用解决方案(适用于MacOS/Linux)
run-exp.sh的文件。run-exp.sh中添加这些行#!/usr/bin/env bash
value=$(cat ~/.expo/PATH)
PATH="$PATH:$value" npx expo-cli "$@"android/app/expo.gradlecommandLine("./node_modules/expokit/detach-scripts/run-exp.sh", "bundle-assets", expoRoot, "--platform", "android", "--dest", assetsDir)使用
commandLine("./run-exp.sh", "bundle-assets", expoRoot, "--platform", "android", "--dest", assetsDir)npx expo-cli publish --clearAndroid专用解决方案(适用于Windows)
run-exp.bat的文件。run-exp.bat中添加这些行SET /P STOREDPATH=<"%USERPROFILE%\.expo\PATH"
SET PATH="\"%PATH%;%STOREDPATH%\""
npx expo-cli %*android/app/expo.gradlecommandLine("cmd", "/c", ".\\node_modules\\expokit\\detach-scripts\\run-exp.bat", "bundle-assets", expoRoot, "--platform", "android", "--dest", assetsDir)使用
commandLine("cmd", "/c", ".\\run-exp.bat", "bundle-assets", expoRoot, "--platform", "android", "--dest", assetsDir)npx expo-cli publish --clearhttps://stackoverflow.com/questions/70814903
复制相似问题