expo 运行:ios 从新项目失败

问题描述 投票:0回答:1

我正在使用

npx create-expo-app@latest
创建一个全新的博览会项目,但是,在
npx expo run:ios
之后运行
npx expo prebuild -p ios
时,构建失败。

我正在使用;

  • “世博会”:“〜51.0.35”,
  • “反应本机”:“0.74.5”,
  • MacOS 红杉 15.0
  • Xcode 16.0

xcodebuild.log 返回近 3000 行,因此我附上了日志中的脚注。

日志中是否有我应该特别查找的内容?

注意:运行脚本构建阶段“捆绑 React Native 代码和图像” 将在每次构建期间运行,因为运行脚本的选项 阶段“基于依赖性分析”未选中。 (在目标 项目“decidoapp”中的“decidoapp”)注意:运行脚本构建阶段 “[Expo] 配置项目”将在每次构建期间运行,因为 运行脚本阶段“基于依赖性分析”的选项是 未经检查。 (在项目“decidoapp”的目标“decidoapp”中)警告: 运行脚本构建阶段'[CP-User] 为预构建生成 app.config Constants.manifest' 将在每次构建期间运行,因为它不会 指定任何输出。要解决此问题,请添加输出 依赖于脚本阶段,或将其配置为在每个阶段运行 通过取消选中脚本中的“基于依赖性分析”来构建 阶段。 (在项目“Pods”的目标“EXConstants”中)警告:运行 脚本构建阶段 '[CP-User] [Hermes] 将 Hermes 替换为右侧 配置,如果需要'将在每次构建期间运行,因为它 不指定任何输出。要解决此问题,请添加输出 依赖于脚本阶段,或将其配置为在每个阶段运行 通过取消选中脚本中的“基于依赖性分析”来构建 阶段。 (在项目“Pods”的目标“hermes-engine”中)

xcode react-native expo xcode16
1个回答
0
投票

我面临着与你同样的问题,在我的 m3 芯片 MacBook 上升级到 Xcode 16 和 Sequoia 后,我不再能够构建我的项目。我做了很多事情来解决这个问题,但没有任何效果。

但是相同的设置适用于我朋友的 MacBook,唯一的区别是他的 MacBook 有 m1 芯片而不是 m3。

我需要紧急帮助!通过电报联系我,讨论有关该问题的更多信息:https://t.me/ahmetoznar

这是我在构建时遇到的错误:

 warning: Run script build phase '[CP-User] [Hermes] Replace Hermes for the right configuration, if needed' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'hermes-engine' from project 'Pods')
note: Run script build phase 'Bundle React Native code and images' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'myapp' from project 'myapp')
note: Run script build phase '[Expo] Configure project' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'myapp' from project 'myapp')
warning: Run script build phase '[CP-User] [RN]Check rncore' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'React-Fabric' from project 'Pods')
warning: Run script build phase '[CP-User] Generate app.config for prebuilt Constants.manifest' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'EXConstants' from project 'Pods')


--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:iOS Simulator, id:71DE56AB-FBF1-49D9-8EF1-16B10C1FF2D6, OS:18.0, name:iPhone 11 }
{ platform:iOS Simulator, id:71DE56AB-FBF1-49D9-8EF1-16B10C1FF2D6, OS:18.0, name:iPhone 11 }
** BUILD FAILED **


The following build commands failed:
        PhaseScriptExecution [CP-User]\ Generate\ Specs /Users/ahmet_argon/Library/Developer/Xcode/DerivedData/myapp-emsufujfbgeaqgfvunvuggmstnyj/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/React-Codegen.build/Script-46EB2E0001AE40.sh (in target 'React-Codegen' from project 'Pods')
        Building workspace myapp with scheme myapp and configuration Debug
(2 failures)
Build logs written to /Users/ahmet_argon/Documents/Babella 🍼/test-app/my-app/.expo/xcodebuild.log
© www.soinside.com 2019 - 2024. All rights reserved.