Flutter iOS 存档错误:错误(Xcode):在 Runner 内循环;建筑可能会产生不可靠的结果

Dat*_*anh 8 ios flutter xcode15

`错误(Xcode):在 Runner 内循环;构建可能会产生不可靠的结果。\n循环详细信息:\n\xe2\x86\x92 目标“Runner”:ExtractAppIntentsMetadata\n\xe2\x97\x8b 目标“Runner”具有来自“/Users/datnguyen/WorkSpaces/project_template/”的复制命令flutter_getx_template/build/ios/Debug-develop-iphonesimulator/ImageNotification.appex' 到 '/Users/datnguyen/WorkSpaces/project_template/flutter_getx_template/build/ios/Debug-develop-iphonesimulator/Runner.app/PlugIns/ImageNotification.appex'\ n\xe2\x97\x8b 该命令取决于目标“Runner”中的命令:脚本阶段 \xe2\x80\x9cThin Binary\xe2\x80\x9d\n\xe2\x97\x8b 目标“Runner”具有带输出的处理命令'/Users/datnguyen/WorkSpaces/project_template/flutter_getx_template/build/ios/Debug-develop-iphonesimulator/Runner.app/Info.plist'\n\xe2\x97\x8b 目标“Runner”具有来自“/Users/”的复制命令datnguyen/WorkSpaces/project_template/flutter_getx_template/build/ios/Debug-develop-iphonesimulator/ImageNotification.appex' 到 '/Users/datnguyen/WorkSpaces/project_template/flutter_getx_template/build/ios/Debug-develop-iphonesimulator/Runner.app/PlugIns /ImageNotification.appex'

\n

原始依赖循环跟踪:

\n

目标:->

\n

节点:->

\n

命令:->

\n

节点:/Users/datnguyen/Library/Developer/Xcode/DerivedData/Runner-bhtoumdqsgiaregnjytyoapucbjm/Build/Intermediates.noindex/Runner.build/Debug-develop-iphonesimulator/Runner.build/Objects-normal/arm64/ExtractedAppShortcutsMetadata.stringsdata ->

\n

命令: P0:target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49-:调试-develop:ExtractAppIntentsMetadata ->

\n

节点:->

\n

命令: P0:::Gate target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49--fused-phase7--cp--embed-pods-frameworks ->

\n

节点:/Users/datnguyen/Library/Developer/Xcode/DerivedData/Runner-bhtoumdqsgiaregnjytyoapucbjm/Build/Intermediates.noindex/Runner.build/Debug-develop-iphonesimulator/Runner.build/InputFileList-1739A84D50484D6E4E41EDFB-Pods-Runner-frameworks-Debug -develop-input-files-744cbbea3dded29901e6b34dae91a16a-resolved.xcfilelist ->

\n

命令: P2:target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49-:调试-develop:WriteAuxiliaryFile /Users/datnguyen/Library/Developer/Xcode/DerivedData/Runner-bhtoumdqsgiaregnjytyoap ucbjm/Build/Intermediates.noindex/Runner.build/Debug-develop-iphonesimulator/Runner .build/InputFileList-1739A84D50484D6E4E41EDFB-Pods-Runner-frameworks-Debug-develop-input-files-744cbbea3dded29901e6b34dae91a16a-resolved.xcfilelist ->

\n

节点:->

\n

命令: P0:::Gate target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49--fused-phase6-copy-files ->

\n

节点: <复制/Users/datnguyen/WorkSpaces/project_template/flutter_getx_template/build/ios/Debug-develop-iphonesimulator/Runner.app/PlugIns/ImageNotification.appex> ->

\n

循环点 ->

\n

命令: P0:target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49-:调试-develop:复制/Users/datnguyen/WorkSpaces/project_template/flutter_getx_template/build/ios/Debug-develop-iphonesimulator/Runner.app/PlugIn s/ImageNotification.appex /Users/datnguyen /WorkSpaces/project_template/flutter_getx_template/build/ios/Debug-develop-iphonesimulator/ImageNotification.appex ->

\n

节点:->

\n

命令: P0:::Gate target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49--fused-phase5-thin-binary ->

\n

节点:->

\n

命令: P2:target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49-:调试-develop:PhaseScriptExecution精简二进制文件/Users/datnguyen/Library/Developer/Xcode/DerivedData/Runner-bhtoumdqsgiaregnjytyoap ucbjm/Build/Intermediates.noindex/Runner.build/Debug-develop-iphonesimulator /Runner.build/Script-3B06AD1E1E4923F5004D2608.sh ->

\n

节点:/Users/datnguyen/WorkSpaces/project_template/flutter_getx_template/build/ios/Debug-develop-iphonesimulator/Runner.app/Info.plist/ ->

\n

目录树签名:~ ->

\n

目录内容:/Users/datnguyen/WorkSpaces/project_template/flutter_getx_template/build/ios/Debug-develop-iphonesimulator/Runner.app/Info.plist ->

\n

节点:/Users/datnguyen/WorkSpaces/project_template/flutter_getx_template/build/ios/Debug-develop-iphonesimulator/Runner.app/Info.plist ->

\n

命令: P0:target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49-:调试-develop:ProcessInfoPlistFile /Users/datnguyen/WorkSpaces/project_template/flutter_getx_template/build/ios/Debug-develop-iphonesimulator/Runner.app/Info .plist /Users/datnguyen/WorkSpaces /project_template/flutter_getx_template/ios/Runner/Info.plist ->

\n

节点:/Users/datnguyen/WorkSpaces/project_template/flutter_getx_template/build/ios/Debug-develop-iphonesimulator/Runner.app/PlugIns/ImageNotification.appex ->

\n

命令: P0:target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49-:调试-develop:复制/Users/datnguyen/WorkSpaces/project_template/flutter_getx_template/build/ios/Debug-develop-iphonesimulator/Runner.app/PlugIn s/ImageNotification.appex /Users/datnguyen /WorkSpaces/project_template/flutter_getx_template/build/ios/Debug-develop-iphonesimulator/ImageNotification.appex

\n

`

\n

您好,\n我遇到了 XCode 15 和 Flutter 3.13.6 的问题。\n我第一次运行它时没有发生任何事情,但是当我打开 XCode 和通知服务扩展时,它无法再运行,事件已显示\nXcode build done. 22.7s Failed to build iOS app

\n

lew*_*man 28

在 中Xcode>Targets>Runner>Build Phases,我按照此处的Embed Framework说明将、[CP] Embed Pods Frameworks、 和Embed Foundation Extensions 拖到“运行脚本”之前。

这是之后的样子 在此输入图像描述

  • 谢谢兄弟,经过 4 个小时的工作,你的解决方案终于帮助了我。 (2认同)
  • 在尝试了其他几种方法之后,这张截图终于救了我! (2认同)

Rah*_*rma 4

就我而言,如果您在构建阶段中将“嵌入基础扩展”移至“复制捆绑资源”正下方,似乎就可以解决。