If the actual goal is to sideload—which is what was being discussed—you don’t need to compile anything. You’d download a prebuilt but unsigned IPA, and then use Cydia Impactor to sign it with your developer certificate.
If you're ok trusting a third party (such as an alternative app store), they can build it, send you the binary, you sign it (on Windows or Linux), and install it on the phone.
but if you live in a 3rd world country, a macbook can cost as much as a car. it's just not viable.