Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Issue when running 2.6.0 AMR64 on M1  (Read 1815 times)

0 Members and 1 Guest are viewing this topic.

CJ_COIMBRA

  • Full Member
  • ***
  • Posts: 112
    • ICQ Messenger - 13077864
    • View Profile
    • http://www.cjcoimbra.com
    • Email
Issue when running 2.6.0 AMR64 on M1
« 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

Quote
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!
CJ

ApteryxK

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: Issue when running 2.6.0 AMR64 on M1
« Reply #1 on: September 19, 2023, 07:39:41 pm »
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
« Last Edit: September 20, 2023, 02:31:33 pm by ApteryxK »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: Issue when running 2.6.0 AMR64 on M1
« Reply #2 on: September 20, 2023, 12:50:57 pm »
The simplest solution is to build SFML yourself, that way the system should accept it even when unsigned.
With the SFML CMake Template, 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...
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

CJ_COIMBRA

  • Full Member
  • ***
  • Posts: 112
    • ICQ Messenger - 13077864
    • View Profile
    • http://www.cjcoimbra.com
    • Email
Re: Issue when running 2.6.0 AMR64 on M1
« Reply #3 on: October 10, 2023, 01:29:49 am »
This GitHub template worked out of the box. Thanks!
CJ

 

anything