SFML - Setup

  • jryl123
    Likes 0

    Problem Description

    Hello! I’ve watched the tutorial to setup SFML on Xcode and me and one other guy which I met at the official SFML Discord are having troubles installing the libraries in the right path.

    In the Forum they told me, that they would recommend to use the static libraries with cmake. I tried to do this, but I get stuck. When I watched your tutorial XCode say’s that the build was successful, but on the terminal I get the following Error message:

    dyld[5792]: Library not loaded: /opt/homebrew/opt/sfml/lib/libsfml-graphics.2.6.dylib

      Referenced from: <7A565729-82C2-357D-90A2-842296DE6C54> /Users/jeremiassoll/Library/Developer/Xcode/DerivedData/SFML-Project-ekihrgytyfhzxbcnusfgtxiceorb/Build/Products/Debug/SFML-Project

      Reason: tried: '/Users/jeremiassoll/Library/Developer/Xcode/DerivedData/SFML-Project-ekihrgytyfhzxbcnusfgtxiceorb/Build/Products/Debug/libsfml-graphics.2.6.dylib' (no such file), '/usr/lib/system/introspection/libsfml-graphics.2.6.dylib' (no such file, not in dyld cache), '/opt/homebrew/opt/sfml/lib/libsfml-graphics.2.6.dylib' (code signature in <8F2770DB-D045-307C-9E7D-FC2AD6624897> '/opt/homebrew/Cellar/sfml/2.6.1/lib/libsfml-graphics.2.6.1.dylib' not valid for use in process: mapping process and mapped file (non-platform) have different Team IDs), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/opt/sfml/lib/libsfml-graphics.2.6.dylib' (no such file), '/opt/homebrew/opt/sfml/lib/libsfml-graphics.2.6.dylib' (code signature in <8F2770DB-D045-307C-9E7D-FC2AD6624897> '/opt/homebrew/Cellar/sfml/2.6.1/lib/libsfml-graphics.2.6.1.dylib' not valid for use in process: mapping process and mapped file (non-platform) have different Team IDs), '/Users/jeremiassoll/Library/Developer/Xcode/DerivedData/SFML-Project-ekihrgytyfhzxbcnusfgtxiceorb/Build/Products/Debug/libsfml-graphics.2.6.1.dylib' (no such file), '/usr/lib/system/introspection/libsfml-graphics.2.6.1.dylib' (no such file, not in dyld cache), '/opt/homebrew/Cellar/sfml/2.6.1/lib/libsfml-graphics.2.6.1.dylib' (code signature in <8F2770DB-D045-307C-9E7D-FC2AD6624897> '/opt/homebrew/Cellar/sfml/2.6.1/lib/libsfml-graphics.2.6.1.dylib' not valid for use in process: mapping process and mapped file (non-platform) have different Team IDs), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/Cellar/sfml/2.6.1/lib/libsfml-graphics.2.6.1.dylib' (no such file), '/opt/homebrew/Cellar/sfml/2.6.1/lib/libsfml-graphics.2.6.1.dylib' (code signature in <8F2770DB-D045-307C-9E7D-FC2AD6624897> '/opt/homebrew/Cellar/sfml/2.6.1/lib/libsfml-graphics.2.6.1.dylib' not valid for use in process: mapping process and mapped file (non-platform) have different Team IDs)

     

    I don’t know if I can read this error right, but it says firstly, that there are libraries missing. However, in the last sentence it tellst me that the library have a different Team ID. Is it possible, that the Mac system don’t trust the SFML file and that I have a safety issue?

    Would be nice, if there is help in this direction, because I really want to start projects with SFML and I think linking with xcode will to the best. Also I want to develop games with a lot of physic stuff (I’m a physics student) That would be so awesome. 

    Thank you anyways for the help and have a nice week!

    Cheers!

Login to reply