-
Notifications
You must be signed in to change notification settings - Fork 288
Open
Description
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
- On macOS (tested on newer versions with recent Xcode)
- Run
devbox shellin any devbox project - 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
- xcbuild.xcrun: issues in fallback handling NixOS/nixpkgs#376958 - Upstream nixpkgs issue tracking this xcbuild problem
- macOS nix-shell: Tide prompt spams “unhandled Platform key FamilyDisplayName” when PATH resolves to xcbuild xcrun IlanCosman/tide#611 - Documents the same warning in nix-shell environments
- git broken inside all devbox projects with a 'xcrun: error: missing DEVELOPER_DIR path' #2566 - Related xcrun issues in devbox on macOS
Workarounds
- Ignore it - The warning is cosmetic and doesn't affect functionality
- 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:
- Suppress this specific warning from stderr
- Document this as a known issue for macOS users
- Track the upstream fix and update the nixpkgs pin when available
saiabishek1 and yoshiok
Metadata
Metadata
Assignees
Labels
No labels