I am working on integrating some C-sharp code into a Swift application by using Mono. This is working fine but I want to make that integration optional. So, I changed the Mono.framework linking in Xcode to be optional and confirmed that's the result in the linker command line.
Now, my question is how can I check if the Mono.framework is actually available for use? I have only seen examples that check for Objective-C classes but none that deals with standard C function availability.
As far I can tell, I don't see anything special in the Mono headers that would help me and attempting to check if a function is available directly, such as mono_jit_init doesn't work because it is just checking the stub address.
Now, my question is how can I check if the Mono.framework is actually available for use? I have only seen examples that check for Objective-C classes but none that deals with standard C function availability.
As far I can tell, I don't see anything special in the Mono headers that would help me and attempting to check if a function is available directly, such as mono_jit_init doesn't work because it is just checking the stub address.