Please fill out the following information to help in answering your question, and also see tips for posting code snippets. If you don’t provide this information it will take more time to help with your problem!
Hi, I’m trying to build/run a boilerplate Geant4 app but I’m getting a “library load disallowed by system policy” error trying to load libG4Tree.dylib.
Can someone please confirm that if my cmake script is set up properly, that I should see geant4 libs and headers in my generated xcode project?
(Right now I only see my placeholder .cc file and the CMakeList.txt file)
How did you install Geant4 on your system? Did you pull in a pre-built version from Geant4, HomeBrew or somewhere elese? Or did you download and build from the source code?
Apple rigidly enforces their walled garden, making Macs much more difficult for developers to use You may need to go through each of the built libraries, and use “Open” on them individually within Finder, in order to “unflag” them as being safe to be loaded by XCode.
Since this isn’t really a Geant4 thing, you might consider checking the Apple Support forums (or just Google) to see how the situation is addressed more generically.
thanks for replying! I downloaded the precompiled binaries from the CERN download page. I didn’t realize that opening them in finder would unblock them, I’ll do that now. Thanks again!
You may have to do more than that with the latest MacOS – every iteration, Apple makes it more and more difficult to install or use anything you don’t buy from them directly