Repository navigation
Conversation
tauri-cli 2.11 rejects unknown fields, and this file auto-merges on macOS, so any cargo/ tauri command on Mac fails to parse config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
在 Mac 上跑 cargo check / tauri dev / tauri build 会直接挂,报错:
查了下原因:Tauri 在 macOS 下会自动把 tauri.macos.conf.json 跟主配置合并起来解析,而新版 tauri-cli(我本地 2.11.2)对配置文件的校验变严了,不认识 _comment 这种手写字段,直接拒绝解析。所以现在只要在 Mac 上编译就会被这个注释卡住。
这个 _comment 本来就是一段手写的说明文字,对构建没有任何作用,删掉就行,里面的说明(跟主配置的差异点)本来 CI 命令里也能看出来。
本地验证过:
改动就这一个文件,删 12 行。