How do I fix linkages for a system-module package following a brew update?

So I have a system-module package defined for Bullet Physics, and the local installation of bullet is managed by home-brew.

My Package.swift file looks like this:

let package = Package(
    name: "Cbullet",
    pkgConfig: "bullet",
    providers: [
		.brew(["bullet"])
	]
)

My module.modulemap looks like this:

module Cbullet [system] {
  umbrella header "shim.h"
  link "bullet"
  link framework "BulletDynamics"
  link framework "BulletCollision"
  export *
}

And my shim.h looks like this:

#include <BulletCollision/btBulletCollisionCommon.h>;
#include <BulletDynamics/btBulletDynamicsCommon.h>;

So after upgrading from bullet 2.86 to bullet 2.88, I now receive this error when trying to build the swift package which references this system-module package:

dyld: Library not loaded: /usr/local/opt/bullet/lib/libBulletSoftBody.2.86.dylib

I would assume this is because the path to the bullet library has been cached somewhere, but how would I go about resolving this issue? I have already tried a swift package update but this was not effective.

Terms of Service

Privacy Policy

Cookie Policy