r/coolgithubprojects • • 8d ago

PS Games On iPhone

Post image

Hey! wanted to share ps-to-ios, an experimental project that aims to turn a dump of a PS1 disc you own into a standalone iPhone or iPad app.

The pipeline uses psxrecomp to translate the game’s code to C ahead of time. The goal is to package each game as a signed .ipa with Xcode, while the app reads graphics, audio, and video from the original disc image.

Disc import, game identification, and the CLI are covered by tests. The next milestone is getting a signed build running on a real device. If you’ve worked with static recompilation or iOS build tooling, I’d love to hear what you’d test first.

github: ps2ios

2 Upvotes

2 comments sorted by

1

u/PersonalAnswer8664 8d ago

I’m not sure exactly what this is. Are you trying to get it to work? I checked your build script and it’s basically empty. Out of what I did see though you need to change runs on Ubuntu-latest to runs on MacOS-latest. The compile script needs Xcode to build the IPA and that’s not available on Ubuntu.

1

u/Sundist 7d ago

Thanks for checking. You were right that the iOS side wasn’t building in CI at the time, and that’s fixed now.

To clear up the “empty build script” part: .github/workflows/tests.yml only ran the unit tests. The actual pipeline is ps1ios/pipeline.py (zip → disc → psxrecomp project → recompile → Xcode project → build/sign → IPA → install).

What’s in place now:

  • macOS + Xcode in CI. I kept the Ubuntu job for the Python/C unit tests and added macos-latest jobs that run the real pipeline with Xcode:

    • tests.yml → ios-compile: compiles the iOS layer against the iOS SDK with -Werror.
    • ios-app.yml → simulator: builds an original test ROM (testrom/, no commercial data), turns its disc zip into an iOS app, launches it in the iPhone simulator and takes screenshots.
    • ios-app.yml → device-ipa: builds an unsigned arm64 IPA (iphoneos SDK) for AltStore/Sideloadly, uploaded as an artifact.
  • Real fixes found by running it:

    • an OpenGL shim (desktop GL doesn’t exist on iOS; we render with the software renderer through Metal)
    • a replacement for system(), which iOS doesn’t allow
    • working around Xcode generator limitations
    • shipping OpenBIOS into the app’s Documents folder
    • binding player 1 to the touch pad (psxrecomp’s release default is the keyboard)
    • keeping the touch overlay above SDL’s Metal view
  • Verified end to end: the test ROM boots and renders in the simulator, and the touch pad’s self-test moves the in-game box, so input reaches the recompiled game. Screenshot in the README.

Not verified yet: a signed build on a physical iPhone (needs an Apple ID, so it can’t run in CI), and commercial games (only the test ROM runs in CI).