This is more an Xcode/iOS question than an SDL question, but somebody here may know the answer. In my app I do some ‘late binding’ of SDL functions, that is I call ‘dlsym’ (SDL_LoadFunction
would probably work just as well) to discover their addresses at run-time rather than statically linking to them.
This works fine on most platforms, presumably because (whether downloaded as a pre-built binary or compiled from source) SDL2 exists in the form of a shared .dll or .so file which exports everything. But on iOS the only SDL functions recognised by ‘dlsym’ are those that are linked at build time; the rest are apparently not exported.
Can I make some change to my Xcode/iOS build process which will cause all SDL functions to be exported and thus available for late binding at run time?