I've seen a ton of tutorials of accessing MySQL for IOS apps using PHP, but that is not what I want to do. I have some C programs where i use the MySQL API to access a local MySQL database that work fine, but I want to port them into an app using Cocoa so I can have can build a GUI around them.
I'm using Xcode 10, Swift 4.2. My first attempt was using Cocoapods (mysqlswiftnative, mysqldriverswift), but I get lots of errors when I compile a "Hello World" app that worked fine before adding the pods. They no longer seem to be supported in Github as I've seen similar type errors, but nobody has responded for months. My search of MySQL forums has not turned up anything, either.
I guess I could just create some object files in C which contain things I want to do, but that sounds like a lot of extra work. Surely there has to be some way to pass SQL statements into MySQL from Swift and access the results much the same way it works in C without having to go the PHP route IOS apps use.
Any suggestions would be helpful.
Thanks,
Tim.