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 shell in 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
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
Description
When entering
devbox shellon macOS, the following warning is displayed:This is a cosmetic warning that doesn't affect functionality, but it can be confusing for users and clutters terminal output.
Steps to Reproduce
devbox shellin any devbox projectEnvironment
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
FamilyDisplayNamekey 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
Workarounds
Suggested Resolution
This will likely be resolved once the upstream nixpkgs issue is fixed. Devbox could potentially: