Sorry for the duplicate post. Every time I see someone post links I think Apple must have rescinded it nebulous moderation policy. And then I wind up having to make duplicate posts. I have no idea when you originally made your post. Nor do I have any idea when my reply will surface from moderation purgatory. Here is a hacked version:
You have asked a number of related, but not identical questions.
If you just want to get GDAL working on iOS, your best bet would be to stick to Objective-C++ and then you can integrate with GDAL with no issues. Getting GDAL built can be a challenge. Don't forget that some GDAL modules, most importantly GEOS and Spatialite are GPL and legally incompatible with the App Store.
If you really, really want to get it working with Swift, I do have some scripts that use the doxygen XML output to build Objective-C++ wrappers that would, eventually, be Swift compatible. However, this project is currently on hiatus due to an unexpected bout of sanity.
If you just want to run gdalinfo on your Mac, you can do that easy enough. You may be able to install GDAL via homebrew or something.
I recently updated my own GDAL build scripts (at [REDACTED] - try github.com/etresoft/OS-GIS ). Both of those examples you referenced no longer work. The second one even uses a really ancient version of GDAL too. The version I have is almost up-to-date. It runs with about 99% successful test coverage on Linux and macOS. The scripts are designed to build for iOS too, but I haven't tried that in a couple of years.