SwiftDocOrg / GraphViz

A Swift package for working with GraphViz
MIT License
290 stars 34 forks source link

Helper note: may need to code sign dylib dependencies if in macOS app #14

Closed sstadelman closed 3 years ago

sstadelman commented 3 years ago

A cairn for anyone else using in macOS app on Big Sur, with graphviz installed via brew: you may encounter code signing warnings, and an error that dependencies of pango cannot be loaded. ("it could load, so perhaps one of its dependents was not. Try ldd.").

A solution appears to be to manually sign the dependencies. Probably do a better job of scoping to just the affected dirs, than this, but this pair should get you there:

codesign -f -s "Apple Development: MyName (MyTeam)" /usr/local/opt/*/lib/*.dylib
codesign -f -s "Apple Development: MyName (MyTeam)" /usr/local/Cellar/*/*/lib/*.dylib
mattt commented 3 years ago

Thanks so much for sharing this important details, @sstadelman. I just merged #19, which updates the README with this information.