In Catalyst debug builds on my Intel Mac, my iOS share extension is being compiled for arm64. I made sure ONLY_ACTIVE_ARCH is YES. Only way to make it build I found so far is setting ONLY_ACTIVE_ARCH to NO everywhere.