SFML community forums
Help => General => Topic started by: CJ_COIMBRA on July 15, 2023, 05:07:08 pm
-
Hey there,
I am trying to setup the 2.6.0 on a M1 Mac without success. It seems something to do with code signing but I couldn't figure out by myself nor I've found something similar issue posted
dyld[866]: Library not loaded: '@rpath/sfml-system.framework/Versions/2.6.0/sfml-system'
Referenced from: '/Users/christiancoimbra/Library/Developer/Xcode/DerivedData/newtest-deplphssbhjczzexgekbdspatrtm/Build/Products/Release/newtest.app/Contents/MacOS/newtest'
Reason: tried: '/Users/christiancoimbra/Library/Developer/Xcode/DerivedData/newtest-deplphssbhjczzexgekbdspatrtm/Build/Products/Release/sfml-system.framework/Versions/2.6.0/sfml-system' (no such file), '/Users/christiancoimbra/Library/Developer/Xcode/DerivedData/newtest-deplphssbhjczzexgekbdspatrtm/Build/Products/Release/newtest.app/Contents/MacOS/../Frameworks/sfml-system.framework/Versions/2.6.0/sfml-system' (no such file), '/Users/christiancoimbra/Library/Developer/Xcode/DerivedData/newtest-deplphssbhjczzexgekbdspatrtm/Build/Products/Release/newtest.app/Contents/MacOS/../Frameworks/sfml-system.framework/Versions/2.6.0/sfml-system' (no such file), '/Library/Frameworks/sfml-system.framework/Versions/2.6.0/sfml-system' (code signature in <B09BD99C-3881-3CF3-B1E9-4BA58575AF22> '/Library/Frameworks/sfml-system.framework/Versions/2.6.0/sfml-system' not valid for use in process: library load disallowed by system policy), '/System/Library/Frameworks/sfml-system.framework/Versions/2.6.0/sfml-system' (no such file)
I've followed some posts around the "disallowed by system policy" without any success so far. Any help is appreciated thanks!
-
I am having the exact same problem, did anyone find a solution ?
I have tried to authorise applications from all sources in settings, privacy, allow applications from sources.
I searched the internet for an answer but couldn't find anything, it seems to be specific to M1 where the permission regarding access to the folder Framework doesn't seem to be allowed on some level.
Thank you
I also get a pop up saying “sfml-system.framework” is damaged and can’t be opened.
Edit : I had exploiter's way of doing through this tutorial https://www.youtube.com/watch?v=0ddiZRGkPkY
-
The simplest solution is to build SFML yourself, that way the system should accept it even when unsigned.
With the SFML CMake Template (https://github.com/SFML/cmake-sfml-project), you get the downloading and building of SFML for free.
Other than that, you could try to use dylibs, which I think cause less issues than the frameworks.
I guess in the future, we'll have to try and get them signed somehow...
-
This GitHub template worked out of the box. Thanks!