r/replit • • 5d ago

Question / Discussion Convert web app to IOS

Hi all,

I stupidly got to far along a project before realising I hadn’t built it in the phone application part of Replit.

I have a semi sophisticated map app that I want to release into the App Store.

Can anyone point me in the right direction of how to convert quickly. Let’s assume I have no coding experience.

Also, in a dream world I would be able to debug it in Replit and push updates from there.

Has anyone practically done this?

Thanks

4 Upvotes

17 comments sorted by

1

u/junal 5d ago

Capacitor is the right call, and a map app is in better shape than most web-wrap apps because it actually needs device features.

A few things that will save you pain:

  • Apple rejects apps that are basically a website in a shell (guideline 4.2). A map app usually gets through if it feels native: use the Capacitor Geolocation plugin instead of the browser location API, write clear permission text for location, handle no-signal gracefully, and don't let links open other websites inside the app.
  • Bundle your built web app into the iOS project instead of pointing the app at your Replit URL. Loading a live URL is a quick way to get that 4.2 rejection, and the app breaks whenever the deployment is down.
  • For pushing updates from Replit without resubmitting every time, look at a live update service like Capgo. It ships new web code to the installed app. Anything native, like a new plugin or permission, still needs a new build through the store.
  • You need the $99/yr Apple developer account plus either a Mac with Xcode or a cloud build service like Codemagic. Put it on TestFlight first and have a few people use it on real phones before you submit.

Map specific: test on an actual iPhone early. Map libraries that feel smooth in desktop Chrome can stutter in the iOS webview with lots of markers, so cluster them if you have many.

I run a small dev shop in Mississauga and we do these web to App Store conversions fairly often, so happy to answer questions here if you hit a wall on the build or review step.

1

u/Infernez_ 3d ago

I appreciate the insights here.

I’m slowly migrating to vscode and Claude, but the database for users is the bit I am concerned about.

I think capgo is a good solution to debug etc.

Thanks for the offer, I may message you!

1

u/junal 3d ago

Makes sense, the user database is the part worth being careful with. If you're on Replit's built-in Postgres, you can pg_dump it and restore into Neon or Supabase, then point the app at the new connection string. Do a dry run first and check that password hashes came across untouched so people can still log in, and that IDs keep counting from the right number. Then pick a quiet window, pause sign-ups for a few minutes, do the final copy and switch.

If you're using Replit Auth for logins, that's the bigger piece, since those accounts live with Replit. You'd need a new auth provider and a way for existing users to reset or re-link.

Capgo is a good call for pushing updates without a full review every time. Happy to help if you get stuck. Feel free to message me, or if a quick 15 minute call is easier we can do that.

1

u/snap-dev 5d ago

you don't need to rebuild it. easiest path for a map app is wrapping the web version with capacitor, it keeps your replit code and gives you an xcode project for the app store. heads up you'll need a mac (or a cloud mac) plus the $99 apple dev account to submit, and location permissions need a clear reason string or review bounces it. is the map on mapbox or google maps?

1

u/Infernez_ 3d ago

Thanks. I think it had done this but as some one else below said, Replit token costs have gone through the roof. So will try Claude

1

u/snap-dev 3d ago

makes sense, those token costs add up fast. if you move it to claude, download the project from replit first so you have all the code locally, then have it add capacitor and walk you through the xcode build one step per prompt. that works way better than asking for the whole ios setup at once. are you on a mac already?

1

u/LeopardVarious5620 5d ago

I'd advice you to first migrate out of replit. Just open Claude with a $20 usd account and that will be enough for you to basically tell it like "hey I got this project in replit that I want to migrate to my own in railway and cloudfare services" and then you just copy the post you did here as a post and claude will automatically put together and publish the app and even post appstore screenshots and fill out everything. For all of this you need accounts opened by yourself in a chrome window with claude's chrome extension.

It's really easy, just like that, and you will save literally thousands of dollars.

1

u/Infernez_ 3d ago

I have started trying this. And use supabase for user credentials or something?

1

u/LeopardVarious5620 3d ago

I'd recommend you Railway, and Cloudfare r2, sounds like a lot but you literally just have to create those 2 accounts in 10 seconds in chrome and then just ask claude to set everything

2

u/danielinnov8 5d ago

A more simple solution would be to just create an ios/andriod artifact inside replit, it takes your current build and gets it ready for the app store, happy to walk you through it on a complimentary zoom call:

I'm Daniel from https://ideafactory.agency

DM if you want to schedule something.

1

u/Mid0 2d ago

i always start in web then make ios app, its faster to debug the ux get comfortable with it then switch to ios build via second artifact. note the artifact will be react native if you know you need something isn't supported in react native you'll need to use another platform.

1

u/CrewTechnical5819 5d ago

Use capacitor it can help you convert webapps to mobile apps

1

u/Ecstatic_Builder8325 4d ago

Either use WKWebView or let Claude do it on natively using swift. You just paste your entire question here and let Claude to all the work.

1

u/Hoodlass-Oloidi 3d ago

tbh the tricky part with map apps is location permissions. Does your app just display map data, or does it need background GPS tracking? If its just displaying stuff, wrapping the existing web build is pretty straightforward.