Skip to content

Builds are not architecture universal #6

@tetraminus

Description

@tetraminus

MacOS 26.3
BaseLib 0.0.4

When running the released builds on macOS, the game fails to load the BaseLib DLL:

[INFO] Loading assembly DLL BaseLib.dll
[ERROR] Error loading mod BaseLib.pck: System.IO.FileLoadException: Could not load file or assembly '/Users/jamesboyko/Library/Application Support/Steam/steamapps/common/Slay the Spire 2/SlayTheSpire2.app/Contents/MacOS/mods/BaseLib.dll'. The assembly architecture is not compatible with the current process architecture.
File name: '/Users/jamesboyko/Library/Application Support/Steam/steamapps/common/Slay the Spire 2/SlayTheSpire2.app/Contents/MacOS/mods/BaseLib.dll'
   at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyPath(String assemblyPath)

This is fixed by building against the sts2.dll in data_sts2_macos_arm64, but there may be a way to decouple it from different architectures at all.

Top, built on my machine: msil
Bottom, from latest github release: x86
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions