Arduino IDE 2.3.4 无法在 MacOS 上运行

我在 MacBook 上从官方网站下载了 Arduino IDE,但它一直在加载,只显示应用程序徽标。

如果有人能帮助我,我将不胜感激

谢谢。

Last login: Sun Mar 16 14:31:56 on ttys000
(base) Zhuanz@sususuMac ~ % "/Applications/Arduino IDE.app/Contents/MacOS/Arduino IDE"
Arduino IDE 2.3.4
Checking for frontend application configuration customizations. Module path: /Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/electron-main.js, destination 'package.json': /Applications/Arduino IDE.app/Contents/Resources/app/package.json
Setting 'theia.frontend.config.appVersion' application configuration value to: "2.3.4" (type of string)
Setting 'theia.frontend.config.cliVersion' application configuration value to: "1.1.1" (type of string)
Setting 'theia.frontend.config.buildDate' application configuration value to: "2024-12-03T09:58:49.900Z" (type of string)
Frontend application configuration after modifications: {"applicationName":"Arduino IDE","defaultTheme":{"light":"arduino-theme","dark":"arduino-theme-dark"},"defaultIconTheme":"none","electron":{"windowOptions":{}},"defaultLocale":"","validatePreferencesSchema":false,"preferences":{"window.title":"${rootName}${activeEditorShort}${appName}","files.autoSave":"afterDelay","editor.minimap.enabled":false,"editor.tabSize":2,"editor.scrollBeyondLastLine":false,"editor.quickSuggestions":{"other":false,"comments":false,"strings":false},"editor.maxTokenizationLineLength":500,"editor.bracketPairColorization.enabled":false,"breadcrumbs.enabled":false,"workbench.tree.renderIndentGuides":"none","explorer.compactFolders":false},"appVersion":"2.3.4","cliVersion":"1.1.1","buildDate":"2024-12-03T09:58:49.900Z"}
Starting backend process. PID: 5007
Using browser-only version of superagent in non-browser environment
Configuration directory URI: 'file:///Users/Zhuanz/.arduinoIDE'
Configuring to accept webviews on '^.+\.webview\..+$' hostname.
2025-03-16T06:48:13.477Z root INFO Backend Object.initialize: 2.4 ms [Finished 0.287 s after backend start]
2025-03-16T06:48:13.479Z root INFO Backend Object.configure: 2.0 ms [Finished 0.287 s after backend start]
2025-03-16T06:48:13.479Z root INFO Backend s.onStart: 0.7 ms [Finished 0.287 s after backend start]
2025-03-16T06:48:13.479Z root INFO Backend s.configure: 0.1 ms [Finished 0.299 s after backend start]
2025-03-16T06:48:13.480Z root INFO Backend d.onStart: 0.1 ms [Finished 0.299 s after backend start]
2025-03-16T06:48:13.480Z root INFO Backend d.configure: 0.1 ms [Finished 0.299 s after backend start]
2025-03-16T06:48:13.480Z root INFO Backend d.initialize: 12.6 ms [Finished 0.299 s after backend start]
2025-03-16T06:48:13.480Z root INFO Backend c.onStart: 0.1 ms [Finished 0.299 s after backend start]
2025-03-16T06:48:13.480Z root INFO Backend a.configure: 1.6 ms [Finished 0.301 s after backend start]
2025-03-16T06:48:13.481Z config INFO >>> Initializing CLI configuration...
2025-03-16T06:48:13.481Z root INFO Backend c.initialize: 0.2 ms [Finished 0.301 s after backend start]
2025-03-16T06:48:13.481Z root INFO Backend x.onStart: 0.4 ms [Finished 0.301 s after backend start]
2025-03-16T06:48:13.481Z config INFO Loading CLI configuration from /Users/Zhuanz/.arduinoIDE/arduino-cli.yaml...
2025-03-16T06:48:13.482Z daemon INFO Starting daemon from /Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/resources/arduino-cli...
2025-03-16T06:48:13.482Z root INFO Backend a.initialize: 0.2 ms [Finished 0.302 s after backend start]
2025-03-16T06:48:13.482Z root INFO Backend w.onStart: 0.5 ms [Finished 0.302 s after backend start]
2025-03-16T06:48:13.482Z root INFO Backend r.configure: 0.7 ms [Finished 0.302 s after backend start]
2025-03-16T06:48:13.482Z discovery-log INFO start
2025-03-16T06:48:13.482Z discovery-log INFO start new deferred
2025-03-16T06:48:13.482Z root INFO Backend d.initialize: 0.2 ms [Finished 0.302 s after backend start]
2025-03-16T06:48:13.482Z root INFO Backend y.onStart: 0.8 ms [Finished 0.303 s after backend start]
2025-03-16T06:48:13.482Z root INFO Backend r.configure: 0.7 ms [Finished 0.303 s after backend start]
2025-03-16T06:48:13.482Z root INFO Backend a.onStart: 0.3 ms [Finished 0.304 s after backend start]
2025-03-16T06:48:13.482Z root INFO Backend h.configure: 0.2 ms [Finished 0.304 s after backend start]
2025-03-16T06:48:13.482Z root INFO Backend s.configure: 0.1 ms [Finished 0.304 s after backend start]
2025-03-16T06:48:13.482Z root INFO Backend l.configure: 0.0 ms [Finished 0.304 s after backend start]
2025-03-16T06:48:13.483Z root INFO Theia app listening on http://127.0.0.1:55190.
2025-03-16T06:48:13.483Z root INFO Finished starting backend application: 1.2 ms [Finished 0.305 s after backend start]
2025-03-16T06:48:13.484Z root WARN The local plugin referenced by local-dir:/Users/Zhuanz/.arduinoIDE/plugins does not exist.
2025-03-16T06:48:13.484Z root WARN The local plugin referenced by local-dir:/Users/Zhuanz/.arduinoIDE/extensions does not exist.
2025-03-16T06:48:13.493Z config INFO Loaded CLI configuration: {"board_manager":{"additional_urls":[]}}
2025-03-16T06:48:13.493Z config INFO Loading fallback CLI configuration to get 'directories.data' and 'directories.user'
2025-03-16T06:48:13.505Z root INFO Resolve plugins list: 23.6 ms [Finished 0.327 s after backend start]
2025-03-16T06:48:13.545Z daemon INFO time="2025-03-16T14:48:13+08:00" level=info msg="arduino-cli version 1.1.1"
time="2025-03-16T14:48:13+08:00" level=info msg="Using config file: /Users/Zhuanz/.arduinoIDE/arduino-cli.yaml"
time="2025-03-16T14:48:13+08:00" level=info msg="Executing `arduino-cli daemon`"
2025-03-16T06:48:13.546Z config INFO Loaded fallback CLI configuration: {"directories":{"user":"/Users/Zhuanz/Documents/Arduino","data":"/Users/Zhuanz/Library/Arduino15"}}
2025-03-16T06:48:13.546Z config INFO Merged CLI configuration with the fallback: {"directories":{"user":"/Users/Zhuanz/Documents/Arduino","data":"/Users/Zhuanz/Library/Arduino15"},"board_manager":{"additional_urls":[]}}
2025-03-16T06:48:13.546Z config INFO Loaded the CLI configuration.
2025-03-16T06:48:13.549Z daemon INFO Daemon is now listening on 127.0.0.1:55191
{"IP":"127.0.0.1","Port":"55191"}
2025-03-16T06:48:13.549Z daemon INFO Daemon is running.
2025-03-16T06:48:13.557Z config INFO Mapped the CLI configuration: {"dataDirUri":"file:///Users/Zhuanz/Library/Arduino15","sketchDirUri":"file:///Users/Zhuanz/Documents/Arduino","additionalUrls":[],"network":"none","locale":"en"}
2025-03-16T06:48:13.557Z config INFO Validating the CLI configuration...
Restoring workspace roots: /Users/Zhuanz/Downloads/1.ARDUINO例程读取DO读取/code/code.ino
isTempSketch: false. Input was /Users/Zhuanz/Downloads/1.ARDUINO例程读取DO读取/code/code.ino
2025-03-16T06:48:13.610Z daemon INFO time="2025-03-16T14:48:13+08:00" level=info msg="Starting download" url="https://downloads.arduino.cc/libraries/library_index.tar.bz2"
2025-03-16T06:48:13.957Z root INFO Deploy plugins list: 23.6 ms [Finished 0.779 s after backend start]
Opening channel for service path '/services/electron-window'.
Opening channel for service path '/services/ide-updater'.
2025-03-16T06:48:14.553Z root WARN Frontend a.configure took longer than the expected maximum 100 milliseconds: 161.4 ms [Finished 0.912 s after frontend start]
2025-03-16T06:48:14.582Z root WARN A command editor.action.toggleStickyScroll is already registered.
[4982:0316/144814.624346:ERROR:accelerator_util.cc(24)] The accelerator string can only contain ASCII characters, invalid string: "Cmd+,"
[4982:0316/144814.624376:ERROR:accelerator_util.cc(24)] The accelerator string can only contain ASCII characters, invalid string: "Ctrl+Alt+,"
2025-03-16T06:48:21.272Z config INFO The CLI config is valid.
2025-03-16T06:48:21.272Z config INFO <<< Initialized the CLI configuration.
[4982:0316/144853.754600:ERROR:accelerator_util.cc(24)] The accelerator string can only contain ASCII characters, invalid string: "Cmd+,"
[4982:0316/144853.754647:ERROR:accelerator_util.cc(24)] The accelerator string can only contain ASCII characters, invalid string: "Ctrl+Alt+,"
[4982:0316/145013.945006:ERROR:accelerator_util.cc(24)] The accelerator string can only contain ASCII characters, invalid string: "Cmd+,"
[4982:0316/145013.945041:ERROR:accelerator_util.cc(24)] The accelerator string can only contain ASCII characters, invalid string: "Ctrl+Alt+,"
2025-03-16T06:51:03.241Z root ERROR Detected an error response during the gRPC core client initialization: code: 3, message: Error downloading index 'https://downloads.arduino.cc/libraries/library_index.tar.bz2': Get "https://downloads.arduino.cc/libraries/library_index.tar.bz2": read tcp 10.253.46.209:55194->104.18.11.21:443: read: operation timed out
2025-03-16T06:51:03.243Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Loading index file: loading json index file /Users/Zhuanz/Library/Arduino15/package_index.json: open /Users/Zhuanz/Library/Arduino15/package_index.json: no such file or directory
2025-03-16T06:51:03.243Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Error loading hardware platform: discovery builtin:serial-discovery not found
2025-03-16T06:51:03.244Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Error loading hardware platform: discovery builtin:mdns-discovery not found
2025-03-16T06:51:03.244Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Loading index file: reading library_index.json: open /Users/Zhuanz/Library/Arduino15/library_index.json: no such file or directory
2025-03-16T06:51:03.258Z root ERROR The primary packages indexes are missing. Running indexes update before initializing the core gRPC client The index of the cores and libraries must be updated before initializing the core gRPC client.
The following problems were detected during the gRPC client initialization:
[platform-index] - code: 9, message: Loading index file: loading json index file /Users/Zhuanz/Library/Arduino15/package_index.json: open /Users/Zhuanz/Library/Arduino15/package_index.json: no such file or directory
[platform-index] - code: 9, message: Error loading hardware platform: discovery builtin:serial-discovery not found
[platform-index] - code: 9, message: Error loading hardware platform: discovery builtin:mdns-discovery not found
[library-index] - code: 9, message: Loading index file: reading library_index.json: open /Users/Zhuanz/Library/Arduino15/library_index.json: no such file or directory

2025-03-16T06:51:03.259Z daemon INFO time="2025-03-16T14:51:03+08:00" level=info msg="Loading hardware from: /Users/Zhuanz/Library/Arduino15/packages"
time="2025-03-16T14:51:03+08:00" level=info msg="Loading libraries index file" index=/Users/Zhuanz/Library/Arduino15/library_index.json
time="2025-03-16T14:51:03+08:00" level=info msg="Adding libraries dir" dir=/Users/Zhuanz/Library/Arduino15/libraries isSingleLibrary=false location=ide
time="2025-03-16T14:51:03+08:00" level=info msg="Adding libraries dir" dir=/Users/Zhuanz/Documents/Arduino/libraries isSingleLibrary=false location=user
2025-03-16T06:51:03.259Z daemon INFO time="2025-03-16T14:51:03+08:00" level=info msg="Updating index" url="https://downloads.arduino.cc/packages/package_index.tar.bz2"
2025-03-16T06:51:03.260Z daemon INFO time="2025-03-16T14:51:03+08:00" level=info msg="Starting download" url="https://downloads.arduino.cc/packages/package_index.tar.bz2"
2025-03-16T06:51:03.260Z daemon INFO time="2025-03-16T14:51:03+08:00" level=info msg="Starting download" url="https://downloads.arduino.cc/libraries/library_index.tar.bz2"
2025-03-16T06:51:03.262Z root INFO core-client-provider [library-index] Downloading index: library_index.tar.bz2

2025-03-16T06:51:03.262Z root INFO core-client-provider [platform-index] Downloading index: package_index.tar.bz2

[4982:0316/145108.777114:ERROR:accelerator_util.cc(24)] The accelerator string can only contain ASCII characters, invalid string: "Cmd+,"
[4982:0316/145108.777177:ERROR:accelerator_util.cc(24)] The accelerator string can only contain ASCII characters, invalid string: "Ctrl+Alt+,"
2025-03-16T06:53:23.156Z root ERROR Failed to update platform, library indexes. Error: 13 INTERNAL: Error downloading index 'https://downloads.arduino.cc/libraries/library_index.tar.bz2': Get "https://downloads.arduino.cc/libraries/library_index.tar.bz2": read tcp 10.253.46.209:55995->104.18.11.21:443: read: operation timed out
    at t.callErrorFromStatus (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:921584)
    at Object.onReceiveStatus (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:949201)
    at Object.onReceiveStatus (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:942225)
    at /Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:1028347
    at process.processTicksAndRejections (node:internal/process/task_queues:77:11)
for call at
    at s.makeServerStreamRequest (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:948968)
    at s.updateLibrariesIndex (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:1013244)
    at /Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:778426
    at /Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:778619
    at new Promise (<anonymous>)
    at v.doUpdateIndex (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:778598)
    at v.updateLibraryIndex (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:778398)
    at v.updateIndex (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:777672)
    at v.initInstanceWithFallback (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:775904)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
2025-03-16T06:53:23.159Z daemon INFO time="2025-03-16T14:53:23+08:00" level=info msg="Starting download" url="https://downloads.arduino.cc/libraries/library_index.tar.bz2"
2025-03-16T06:58:38.278Z root ERROR Detected an error response during the gRPC core client initialization: code: 3, message: Error downloading index 'https://downloads.arduino.cc/libraries/library_index.tar.bz2': Get "https://downloads.arduino.cc/libraries/library_index.tar.bz2": read tcp 10.253.46.209:57159->104.18.11.21:443: read: connection reset by peer
2025-03-16T06:58:38.278Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Loading index file: loading json index file /Users/Zhuanz/Library/Arduino15/package_index.json: open /Users/Zhuanz/Library/Arduino15/package_index.json: no such file or directory
2025-03-16T06:58:38.278Z daemon INFO time="2025-03-16T14:58:38+08:00" level=info msg="Loading hardware from: /Users/Zhuanz/Library/Arduino15/packages"
2025-03-16T06:58:38.278Z daemon INFO time="2025-03-16T14:58:38+08:00" level=info msg="Loading libraries index file" index=/Users/Zhuanz/Library/Arduino15/library_index.json
2025-03-16T06:58:38.278Z daemon INFO time="2025-03-16T14:58:38+08:00" level=info msg="Adding libraries dir" dir=/Users/Zhuanz/Library/Arduino15/libraries isSingleLibrary=false location=ide
time="2025-03-16T14:58:38+08:00" level=info msg="Adding libraries dir" dir=/Users/Zhuanz/Documents/Arduino/libraries isSingleLibrary=false location=user
2025-03-16T06:58:38.279Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Error loading hardware platform: discovery builtin:serial-discovery not found
2025-03-16T06:58:38.279Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Error loading hardware platform: discovery builtin:mdns-discovery not found
2025-03-16T06:58:38.279Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Loading index file: reading library_index.json: open /Users/Zhuanz/Library/Arduino15/library_index.json: no such file or directory
2025-03-16T06:58:38.281Z root ERROR Uncaught Exception:  Error: The index of the cores and libraries must be updated before initializing the core gRPC client.
The following problems were detected during the gRPC client initialization:
[platform-index] - code: 9, message: Loading index file: loading json index file /Users/Zhuanz/Library/Arduino15/package_index.json: open /Users/Zhuanz/Library/Arduino15/package_index.json: no such file or directory
[platform-index] - code: 9, message: Error loading hardware platform: discovery builtin:serial-discovery not found
[platform-index] - code: 9, message: Error loading hardware platform: discovery builtin:mdns-discovery not found
[library-index] - code: 9, message: Loading index file: reading library_index.json: open /Users/Zhuanz/Library/Arduino15/library_index.json: no such file or directory

2025-03-16T06:58:38.281Z root ERROR Error: The index of the cores and libraries must be updated before initializing the core gRPC client.
The following problems were detected during the gRPC client initialization:
[platform-index] - code: 9, message: Loading index file: loading json index file /Users/Zhuanz/Library/Arduino15/package_index.json: open /Users/Zhuanz/Library/Arduino15/package_index.json: no such file or directory
[platform-index] - code: 9, message: Error loading hardware platform: discovery builtin:serial-discovery not found
[platform-index] - code: 9, message: Error loading hardware platform: discovery builtin:mdns-discovery not found
[library-index] - code: 9, message: Loading index file: reading library_index.json: open /Users/Zhuanz/Library/Arduino15/library_index.json: no such file or directory

    at /Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:777415
    at v.evaluateErrorStatus (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:777431)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async a.<anonymous> (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:777101)
[4982:0316/150555.813191:ERROR:accelerator_util.cc(24)] The accelerator string can only contain ASCII characters, invalid string: "Cmd+,"
[4982:0316/150555.813232:ERROR:accelerator_util.cc(24)] The accelerator string can only contain ASCII characters, invalid string: "Ctrl+Alt+,"
[4982:0316/150859.118930:ERROR:accelerator_util.cc(24)] The accelerator string can only contain ASCII characters, invalid string: "Cmd+,"
[4982:0316/150859.118982:ERROR:accelerator_util.cc(24)] The accelerator string can only contain ASCII characters, invalid string: "Ctrl+Alt+,"

Google translate:
您已经在 Arduino IDE 2.3.4 无法在 MacOS 上运行 中找到了答案。因此无需再次用您的母语发帖。