If you want to put an app on the App Store, Apple requires you to build and sign it with Xcode, and Xcode only runs on macOS. That's true no matter what you built the app with — Swift, React Native, Capacitor, Flutter, whatever. At some point, something running on a Mac has to sign the thing.
Source: [Dev.to](https://dev.to/maclessdev/how-to-build-and-ship-an-ios-app-without-a-mac-17o5)