Skip to content

Conversation

@nowsprinting
Copy link
Contributor

Summary

Add osx runtime entry to NativeRuntimeSettings defaults to support macOS Universal Binary (FAT) packages.

Changes

  • Add osx runtime configuration with AnyCPU settings for both runtime and editor
  • Add test case for osx runtime in NativeSettingsTest

Motivation

Some NuGet packages use the osx runtime identifier (without architecture suffix) for Universal Binary libraries that support both x64 and ARM64. For example:

Currently, NuGetForUnity only has osx-x64 and osx-arm64 entries, so packages using the osx runtime identifier are not properly imported.

Test Plan

  • Added test case [TestCase("osx", BuildTarget.StandaloneOSX)] in NativeSettingsTest
  • Existing tests continue to pass

🤖 Generated with Claude Code

Add osx runtime entry to NativeRuntimeSettings defaults to support
macOS Universal Binary (FAT) packages. This allows NuGet packages
with osx runtime identifier to be properly imported.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
nowsprinting added a commit to nowsprinting/UnityNuGet that referenced this pull request Jan 17, 2026
Support osx (without architecture suffix) runtime identifier for native libraries, enabling Universal Binary packages that work on both Intel and Apple Silicon Macs.

Changes:
- Modified NativeLibraries.cs to accept osx runtime identifier without architecture
- Use UnityCpu.AnyCpu for osx Universal Binary native libraries
- Added test case for osx Universal Binary native libraries

Related: GlitchEnzo/NuGetForUnity#744

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@JoC0de JoC0de merged commit 4d4b59f into GlitchEnzo:master Jan 17, 2026
8 checks passed
@nowsprinting nowsprinting deleted the feature/osxfat branch January 18, 2026 00:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants