简体   繁体   English

Xcode 构建失败并且重复需要命令行开发工具安装

[英]Xcode build fails and repetitive requires command line developer tools install

I have updated Xcode to Version 13.4.1 (13F100), Then tried to run a flutter project我已将 Xcode 更新到版本 13.4.1 (13F100),然后尝试运行 flutter 项目

Launching lib/main.dart on iPhone SE (3rd generation) in debug mode...
Xcode build done.                                            2.9s
Failed to build iOS app
Error output from Xcode build:
↳
    2022-06-11 12:51:51.546 xcodebuild[45221:416597] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
    2022-06-11 12:51:51.547 xcodebuild[45221:416597] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
    2022-06-11 12:51:51.625 xcodebuild[45221:416597] [MT] DVTPlugInExtensionFaulting: Failed to fire fault for extension (null): (null)
    2022-06-11 12:51:51.628 xcodebuild[45221:416597] [MT] DVTPlugInExtensionFaulting: Failed to fire fault for extension (null): (null)
    ** BUILD FAILED **
Xcode's output:
↳
    Writing result bundle at path:
        /var/folders/l6/zr2yb4p1787b1cbhjdn2ltvr0000gn/T/flutter_tools.tQVcwl/flutter_ios_build_temp_dirmZJ1FK/temporary_xcresult_bundle
    note: Using new build system
    note: Planning
    note: Build preparation complete
    note: Building targets in dependency order
    error: failed to read asset tags: The command `(cd /Volumes/Code/Git/svg/ios && /usr/bin/actool --print-asset-tag-combinations --output-format xml1 /Volumes/Code/Git/svg/ios/Runner/Assets.xcassets)` exited with status 72. The command's standard error was:
    actool: error: Failed to locate 'actool'.
    xcode-select: Failed to locate 'actool', requesting installation of command line developer tools.
     (in target 'Runner' from project 'Runner')
    Result bundle written to path:
        /var/folders/l6/zr2yb4p1787b1cbhjdn2ltvr0000gn/T/flutter_tools.tQVcwl/flutter_ios_build_temp_dirmZJ1FK/temporary_xcresult_bundle
Error (Xcode): failed to read asset tags: The command `(cd /Volumes/Code/Git/svg/ios && /usr/bin/actool --print-asset-tag-combinations --output-format xml1 /Volumes/Code/Git/svg/ios/Runner/Assets.xcassets)` exited with status 72. The command's standard error was:

actool: error: Failed to locate 'actool'.
xcode-select: Failed to locate 'actool', requesting installation of command line developer tools.
Could not build the application for the simulator.
Error launching application on iPhone SE (3rd generation).
Exited

with an alert带有警报

The "actool" command requires the command line developer tools. “actool”命令需要命令行开发工具。 Would you like to install the tools now?您想现在安装这些工具吗?

在此处输入图像描述 And if I run it from Xcode it gives me this error:如果我从 Xcode 运行它,它会给我这个错误:

Showing All Messages
failed to read asset tags: The command `(cd /Volumes/Code/Git/svg/ios && /usr/bin/actool --print-asset-tag-combinations --output-format xml1 /Volumes/Code/Git/svg/ios/Runner/Assets.xcassets)` exited with status 72. The command's standard error was:

actool: error: Failed to locate 'actool'.
xcode-select: Failed to locate 'actool', requesting installation of command line developer tools.

This repetitively occurs even if I press the "Install" button.即使我按下“安装”按钮,这种情况也会重复发生。

Same issue here, but with git instead of actool .同样的问题在这里,但使用 git 而不是actool Another coworker just also got this but with clang ... what is going on over at apple?另一位同事也得到了这个,但是clang ......苹果发生了什么?

What just fixed mine was actually opening up xcode and having it run its installer there instead of allowing the automatic pop-up to continue to "install" and then ask again in a few minutes.我刚刚修复的实际上是打开 xcode 并让它在那里运行安装程序,而不是让自动弹出窗口继续“安装”,然后在几分钟后再次询问。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM