Thanks for the suggestion, I tried a few things using
https://github.com/thearn/simple-cython-example as a example project and found that I probably had an issue with my xcode and xcode command line tools. After reinstalling each I was able to build with the system level clang. Although I was not able to build my own project, I had the same issues still there confusingly even though my project isn't that complicated.
That was when I started looking a bit more at my project, I had a few extra compile args I carried over from another script (like -ansi, oops) without paying attention to them, that were important for the project when I was compiling the shared library. Removing them allowed my project to build using the system level clang, but I still am having issues with the conda environment at the linking stage (see below). Ideally I'd be able to use the conda environment to keep things isolate and compatible as I start to incorporate numpy into my cython code.
I think that my problem may be with the compilers that are available on conda-forge and from anaconda or perhaps the way I am making the environment or perhaps some other system environment leak. I made a new conda environment using `conda create --name cythondev python=3.10 anaconda` and then separately worked out that I needed to install the c-compilers project for conda forge or clang_osx-64 for main anaconda channel.
Either way the conda c compiler seems to be picking up some of the xcode environment as I get this error:
"ld: unsupported tapi file type '!tapi-tbd' in YAML file '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib/libSystem.tbd' for architecture x86_64"
It looks like the macosx sdk used is somehow wrong?