r/programming • • 26d ago

Building iOS apps on Windows: running Apple’s Mach-O macro plugins on an ARM64 CPU emulator

https://ssilvestri15.github.io/openfruit-site/engineering.html
7 Upvotes

6 comments sorted by

7

u/grepmew 25d ago

This is so vibe coded it’s not even human readable. Do you understand it?

6

u/Bitmen_Sashawn40 24d ago

Maintaining that six months from now is going to be a nightmare tbh.

1

u/huangsara-43824 19d ago

The maintenance risk is probably concentrated at the compatibility boundary. Keeping the emulated macOS calls explicit and individually tested would make breakage easier to localize.

1

u/t-m_8520 19d ago

The title reads like a compiler error, but the short version in the reply is surprisingly clear.

-3

u/simonesilvestri23 25d ago

Fair point on the write-up, it's dense and I should rewrite it in a more readable way. Yes, I understand it: I spent weeks on the macro part. The short version is that Apple's macros only exist as macOS binaries, so instead of rewriting them I run the original code on an ARM64 emulator and implement the few macOS system calls it actually uses. Happy to go deeper on any part.

1

u/m-jeff70981 16d ago

Pinning the supported macro binaries could bound the shim's compatibility surface; otherwise version drift may matter as much as syscall behavior.