V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
zhangslob669
V2EX  ›  MacBook Air

M1 MBA 无法下载 xcode 命令行工具

  •  
  •   zhangslob669 · 2021-06-09 17:13:31 +08:00 · 2897 次点击
    这是一个创建于 1263 天前的主题,其中的信息可能已经有所发展或是发生改变。

    新电脑到了,需要配置环境,最基本的要安装 git,在命令行输入 git,提示入选

    xcode-select: note: no developer tools were found at '/Applications/Xcode.app', requesting install. Choose an option in the dialog to download the command line developer tools.
    

    然后弹窗入选界面,只要点 安装,就直接卡死,无响应。

    26z2gU.png

    求问有什么办法吗,已经严重影响工作了

    3 条回复    2021-06-14 11:38:32 +08:00
    zhangslob669
        1
    zhangslob669  
    OP
       2021-06-09 17:14:43 +08:00
    报告:

    ```
    Date/Time: 2021-06-09 17:14:02.605 +0800
    End time: 2021-06-09 17:14:10.412 +0800
    OS Version: macOS 11.2.3 (Build 20D91)
    Architecture: arm64e
    Report Version: 32

    Data Source: Stackshots
    Shared Cache: 30E6CA21-D5E6-36F7-8CF2-AABA2D292564 slid base address 0x187878000, slide 0x7878000
    Shared Cache: 1C99695B-39A1-3CF1-BCD1-AB8BF015FD98 slid base address 0x7fff20038000, slide 0x38000

    Command: Install Command Line Developer Tools
    Path: /System/Library/CoreServices/Install Command Line Developer Tools.app/Contents/MacOS/Install Command Line Developer Tools
    Identifier: com.apple.dt.CommandLineTools.installondemand
    Version: ??? (2384)
    Build Version: 632
    Project Name: xcode_select
    Source Version: 2384000000000000
    Parent: launchd [1]
    PID: 7019
    Time Since Fork: 6s

    Event: hang
    Duration: 7.81s
    Duration Sampled: 4.20s (process was unresponsive for 4 seconds before sampling)
    Steps: 42 (100ms sampling interval)
    Report threshold: 2.5s

    Hardware model: MacBookAir10,1
    Active cpus: 8

    Time Awake Since Boot: 2126s
    Time Since Wake: n/a (machine hasn't slept)


    --------------------------------------------------
    Timeline format: stacks are sorted chronologically
    Use -i and -heavy to re-report with count sorting
    --------------------------------------------------


    Heaviest stack for the main thread of the target process:
    42 start + 4 (libdyld.dylib + 94004) [0x187b7df34]
    42 NSApplicationMain + 1064 (AppKit + 14340) [0x18a3f6804]
    42 -[NSApplication run] + 640 (AppKit + 204936) [0x18a425088]
    42 -[NSApplication _handleEvent:] + 76 (AppKit + 4797548) [0x18a88646c]
    42 -[NSApplication(NSEvent) sendEvent:] + 2512 (AppKit + 1850204) [0x18a5b6b5c]
    42 -[NSWindow(NSEventRouting) sendEvent:] + 352 (AppKit + 1854900) [0x18a5b7db4]
    42 -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 2444 (AppKit + 1857964) [0x18a5b89ac]
    42 -[NSWindow(NSEventRouting) _handleMouseDownEvent:isDelayedEvent:] + 4384 (AppKit + 2447068) [0x18a6486dc]
    42 -[NSControl mouseDown:] + 652 (AppKit + 2454336) [0x18a64a340]
    42 -[NSButtonCell trackMouse:inRect:ofView:untilMouseUp:] + 740 (AppKit + 2457788) [0x18a64b0bc]
    42 -[NSCell trackMouse:inRect:ofView:untilMouseUp:] + 160 (AppKit + 2458184) [0x18a64b248]
    42 NSControlTrackMouse + 1700 (AppKit + 2459928) [0x18a64b918]
    42 -[NSButtonCell _sendActionFrom:] + 104 (AppKit + 2472156) [0x18a64e8dc]
    42 -[NSCell _sendActionFrom:] + 196 (AppKit + 2472368) [0x18a64e9b0]
    42 __26-[NSCell _sendActionFrom:]_block_invoke + 152 (AppKit + 2472640) [0x18a64eac0]
    42 -[NSControl sendAction:to:] + 96 (AppKit + 2472888) [0x18a64ebb8]
    42 -[NSApplication(NSResponder) sendAction:to:from:] + 448 (AppKit + 2473396) [0x18a64edb4]
    42 ??? (Install Command Line Developer Tools + 20328) [0x1007b4f68]
    42 ??? (Install Command Line Developer Tools + 18300) [0x1007b477c]
    42 -[NSAttributedString(NSAttributedStringUIFoundationAdditions) initWithURL:options:documentAttributes:error:] + 244 (UIFoundation + 1529144) [0x18b2c7538]
    42 _NSReadAttributedStringFromURLOrData + 4528 (UIFoundation + 456392) [0x18b1c16c8]
    42 -[NSRTFReader attributedString] + 88 (UIFoundation + 471460) [0x18b1c51a4]
    42 controlClass + 11588 (UIFoundation + 483916) [0x18b1c824c]
    42 processFont + 652 (UIFoundation + 501808) [0x18b1cc830]
    42 processFontName + 108 (UIFoundation + 503120) [0x18b1ccd50]
    42 +[NSFont _fontWithName:size:] + 40 (UIFoundation + 503304) [0x18b1cce08]
    42 __NSFontFactoryWithName + 152 (UIFoundation + 29428) [0x18b1592f4]
    42 +[__NSFontTypefaceInfo typefaceInfoForPostscriptName:options:] + 296 (UIFoundation + 17760) [0x18b156560]
    42 CTFontDescriptorCreateMatchingFontDescriptor + 48 (CoreText + 12916) [0x189197274]
    42 TDescriptor::CreateMatchingDescriptor(__CFSet const*, double, unsigned long) const + 228 (CoreText + 13188) [0x189197384]
    42 TDescriptor::CreateMatchingDescriptorInternal(__CFSet const*, unsigned long) const + 1556 (CoreText + 15832) [0x189197dd8]
    42 TDescriptorSource::CopyFontDescriptorPerPostScriptName(__CFString const*, unsigned long, unsigned long, __CFString const*, __CFNumber const*, CTFontLegibilityWeight, __CFBoolean const*) const + 540 (CoreText + 812164) [0x18925a484]
    42 TDescriptorSource::CopyXTypeFontWithName(__CFString const*, unsigned long, unsigned long) + 100 (CoreText + 818520) [0x18925bd58]
    42 XTCopyFontWithName + 400 (libFontRegistry.dylib + 16156) [0x18e194f1c]
    42 TDownloadableFontManager::Download() + 140 (libFontRegistry.dylib + 76772) [0x18e1a3be4]
    42 DownloadFontsForProperties + 160 (libFontRegistryUI.dylib + 5272) [0x11bfd5498]
    42 _dispatch_lane_barrier_sync_invoke_and_complete + 60 (libdispatch.dylib + 76440) [0x1879c3a98]
    42 _dispatch_client_callout + 20 (libdispatch.dylib + 17440) [0x1879b5420]
    42 __DownloadFontsForProperties_block_invoke + 200 (libFontRegistryUI.dylib + 5536) [0x11bfd55a0]
    42 CFMessagePortSendRequest + 932 (CoreFoundation + 984424) [0x187cc9568]
    42 CFRunLoopRunSpecific + 600 (CoreFoundation + 530240) [0x187c5a740]
    42 __CFRunLoopRun + 1216 (CoreFoundation + 533356) [0x187c5b36c]
    42 __CFRunLoopServiceMachPort + 380 (CoreFoundation + 540312) [0x187c5ce98]
    42 mach_msg + 76 (libsystem_kernel.dylib + 4248) [0x187b29098]
    42 mach_msg_trap + 8 (libsystem_kernel.dylib + 3304) [0x187b28ce8]
    *42 ??? (kernel.release.t8101 + 202148) [0xfffffe0007c315a4]


    Process: Install Command Line Developer Tools [7019]
    UUID: AF474EE2-6CB8-31DE-A5F4-F08AE663A3E1
    Shared Cache: 30E6CA21-D5E6-36F7-8CF2-AABA2D292564 slid base address 0x187878000, slide 0x7878000
    Build Version: 2384
    Path: /System/Library/CoreServices/Install Command Line Developer Tools.app/Contents/MacOS/Install Command Line Developer Tools
    Architecture: arm64e
    Parent: launchd [1]
    UID: 501
    Sudden Term: Tracked (allows idle exit)
    Footprint: 23.53 MB
    Time Since Fork: 6s
    Num samples: 42 (1-42)
    CPU Time: 0.015s (25.3M cycles, 26.6M instructions, 0.95c/i)
    Note: Unresponsive for 4 seconds before sampling
    Note: 5 idle work queue threads omitted

    ```
    yagamisam
        2
    yagamisam  
       2021-06-09 17:44:11 +08:00
    https://developer.apple.com/download/all/
    试试去官网下载安装?
    wvwking
        3
    wvwking  
       2021-06-14 11:38:32 +08:00
    xcode-select --install
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2317 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 45ms · UTC 16:11 · PVG 00:11 · LAX 08:11 · JFK 11:11
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.