Compiler Errors on MacOS Sequoia 15.7.4 - Can't find 'Ionic' or ''Clipper2Lib' in the Pathfinding namespace

  • A* version: [5.4.5]
  • Unity version: [6000.0.68f1]

Hi there, I’m trying to run an existing project on my Mac and I’m unable to get A* running due to what looks like missing assembly references. I can see the Clipper2Lib and Pathfinding.Ionic.Zip.Reduced dll files in Plugins/, but in the AstarPathfindingProject assembly definition asset, the references to those files are missing:

We’ve tried reimporting both dll files without success, deleting and reimporting the Library folder, and switching build platforms to Windows without success. Another dev on this project using windows sees the following assembly references:

For me, they don’t appear in the dropdown list if I try to add them.

Any suggestions? Thanks!

Relevant console errors:

  • Packages/com.arongranberg.astar/Core/Serialization/JsonSerializer.cs(18,19): error CS0234: The type or namespace name ‘Ionic’ does not exist in the namespace ‘Pathfinding’ (are you missing an assembly reference?)
  • Packages/com.arongranberg.astar/Graphs/Navmesh/TileHandler.cs(4,19): error CS0234: The type or namespace name ‘Clipper2Lib’ does not exist in the namespace ‘Pathfinding’ (are you missing an assembly reference?)
  • Packages/com.arongranberg.astar/Core/Serialization/JsonSerializer.cs(526,3): error CS0246: The type or namespace name ‘ZipEntry’ could not be found (are you missing a using directive or an assembly reference?)

You may have another asset using Clipper2Lib. Can you check which asset/plugin you have may also be using the same library? If you don’t see any let me know and I’ll see what I can dig up :+1:

Looks like Unity.render-pipelines and Unity.cinemachine might be using it but that’s not an issue on our Windows machines. Let me know if I can get you more/better info :slight_smile:

Found the solution! I use Fork as my git client, which doesn’t initialize git lfs automatically so the full dlls weren’t getting pulled down.

For anyone else with this issue:

  • Fork requires manual initialization of git lfs

  • dlls will not correctly import without git lfs enabled and will be marked as native by unity

  • Solution is to init git lfs in Fork with Repository > Git lfs > Initialize git lfs, then delete the Library folder in the Unity project and reload.

That’s what worked for me!

1 Like

Thanks for sharing your solution! Clipper2Lib shows up around here enough for me to recognize the name off rip, so hopefully this helps some future users :slight_smile: