Mac Catalyst xcframework
In order to support Mac Catalyst you'll need to start producing an xcframework. I've already got it working for CPAProxy: https://github.com/ursachec/CPAProxy/blob/marzipan/scripts/build-cpaproxy-xcframework.sh
The main takeaways are that I first had to create an xcframework of the C static libraries
libcpaproxy.xcframework, and then statically linked that into the main framework
If you want to also support Catalyst you need to build another architecture with flags
-target x86_64-apple-ios-macabi -miphoneos-version-min=13.0.