Warning: unhandled Platform key FamilyDisplayName on macOS

未关闭
#2,754 2 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
43/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
go
领域
cli

调研方向

Start by tracing how devbox shell changes PATH and how the repository handles warnings from Nix's xcrun; the issue names no relevant files or tests. Compare the behavior with upstream nixpkgs#376958 and determine whether the project should suppress the warning, document it, or wait for an upstream fix. Done means the chosen response is implemented or the upstream dependency is updated, with the cosmetic warning addressed.

由索引模型根据 Issue 内容生成。

描述

p3 processed unrelated

Description

When entering devbox shell on macOS, the following warning is displayed:

warning: unhandled Platform key FamilyDisplayName

This is a cosmetic warning that doesn't affect functionality, but it can be confusing for users and clutters terminal output.

Steps to Reproduce

  1. On macOS (tested on newer versions with recent Xcode)
  2. Run devbox shell in any devbox project
  3. Observe the warning message

Environment

  • macOS (newer versions with updated Xcode)
  • Devbox (various versions)

Root Cause Analysis

The warning originates from xcbuild's xcrun in Nix when it parses modern Xcode Platform plist files. On newer macOS versions, Apple added a FamilyDisplayName key to Platform plists that the Nix-provided xcrun doesn't recognize.

When entering devbox shell, the PATH is modified to include Nix's xcrun (from xcbuild) instead of Apple's /usr/bin/xcrun. The Nix version hasn't been updated to handle newer Xcode plist keys, causing this warning.

Related Issues

  • NixOS/nixpkgs#376958 - Upstream nixpkgs issue tracking this xcbuild problem
  • IlanCosman/tide#611 - Documents the same warning in nix-shell environments
  • jetify-com/devbox#2566 - Related xcrun issues in devbox on macOS

Workarounds

  1. Ignore it - The warning is cosmetic and doesn't affect functionality
  2. Wait for upstream fix - Once nixpkgs updates xcbuild to handle newer Xcode plist keys, this should resolve

Suggested Resolution

This will likely be resolved once the upstream nixpkgs issue is fixed. Devbox could potentially:

  1. Suppress this specific warning from stderr
  2. Document this as a known issue for macOS users
  3. Track the upstream fix and update the nixpkgs pin when available
主要语言
Go
星标
12.4k
派生
358
平均合并
17 小时 12 分钟
30 天内合并 PR
31

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

jetify-com/devbox 的其他 Issue

查看 jetify-com/devbox 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。