I have downloaded SDL2.frameworks from https://www.libsdl.org and installed it into /Libraries/Frameworks/. Then I have pointed xcode a path of frameworks and headers in ‘Build Settings’, in ‘General’ ‘Frameworks and Libraries’ pointed at framework file libSDL2-2.0.0.dylib . The I type #include <SDL2/SDL.h> and try to build the project. It shows 150+ warnings, but if I try to Run the program it says that Library not loaded. Why? what is the problem? I’m using Big Sur OS
Question posted in Xcode
Whether you're new to Xcode or an experienced developer, our archive has everything you need to know about this integrated development environment (IDE). From basic functionalities to advanced features, our archive covers a wide range of Xcode-related questions and answers. Browse our archive now and find solutions to your Xcode questions, and take your app development skills to the next level
Whether you're new to Xcode or an experienced developer, our archive has everything you need to know about this integrated development environment (IDE). From basic functionalities to advanced features, our archive covers a wide range of Xcode-related questions and answers. Browse our archive now and find solutions to your Xcode questions, and take your app development skills to the next level
2
Answers
I have figured it out.
brew install sdl2
cmd+shift+g
type /usr/local/include/usr/local/Cellar/sdl2/2.0.14_1/lib)
Disable Library Validations
in Signing & CapabilitiesAfter these steps code started to work for me
You need to
codesign
the Framework.(The command by the Lazy Foo may be not right).Don’t forget to sign the another hidapi.framework within the
./Versions/A/Frameworks
.