You don’t really; a cross compilation with a compiler that can generate the ARM instructions for Apple’s ARM CPUs should largely just work.
However, it’s impossible to test the produced app without using an iPhone or MacOS’s tools to simulate running on an iPhone. You also are just going to have way less of an uphill battle using Apple’s tools and you’re likely to get better optimized binaries.
You also don’t have to build iOS apps with Swift; C++ and things like Qt can be used.
4am@lemm.ee 5 days ago
Why wouldn’t they be able to? Acceptance to their App Store requires that apps be built with a trusted tool chain. Their reasoning is that it’s harder to built malicious apps that might make it past review if you’re using their tools.