Hello, I am making a project in SDL, and with that I am using SDL_Image. I am doing all of this on Xcode.
I've been able to initialize everything just fine, but issues spring up when I try to load an image.
When I give the code a path to look for an image:
Unable to load image! IMG_Error: Couldn't open [Insert image path here]: Operation not permitted
I get that error.
Keep in mind "Unable to load image" is a general error I put in the code should loading said image fail, the specific error which I called with IMG_GetError() is what we really need to know.
I've seen before that this might occur if a program does not have full disk access. Because of this, I've tried giving Xcode full disk access, but this didn't work and I still got the same error.
it might be better to ask this kind of question over at the SDL project. Worth mentioning, on our devices you can use Image I/O to load images in many different file formats into a CGImage and you can use Core Graphics to copy a CGImage into a CGBitmapContext (on my first reading SDL_Image seems very similar to CGImage and SDL_Surface seems very similar to CGBitmapContext, but the CG* constructs are native to our platforms and integrate with other native APIs). Let me know if you'd like to talk about any of that in more detail.