Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

4004786

Cancelled
Original poster
Jun 30, 2015
247
200
I’m a web developer without much iOS experience, and I have a question for someone that does have some experience. There are libs out there such as:

https://github.com/swisspol/GCDWebServer

that appear to let you spin up a local web server on iOS. Are there technical limitations that would prevent this from serving up files from, say, iCloud Drive? Or is it just that Apple wouldn’t let an app into the app store?

If there was a way to serve up local files from iCloud Drive, then I think there could be some pretty cool web dev apps built.

I’m sure there’s something preventing this, either technical or because of app guidelines, so I’m mainly just wondering if anyone here knows why that is. Do you know?

Thanks for reading!
 

firewood

macrumors G3
Jul 29, 2003
8,141
1,384
Silicon Valley
I’m a web developer without much iOS experience, and I have a question for someone that does have some experience. There are libs out there such as:

https://github.com/swisspol/GCDWebServer

that appear to let you spin up a local web server on iOS. Are there technical limitations that would prevent this from serving up files from, say, iCloud Drive? Or is it just that Apple wouldn’t let an app into the app store?

If there was a way to serve up local files from iCloud Drive, then I think there could be some pretty cool web dev apps built.

I’m sure there’s something preventing this, either technical or because of app guidelines, so I’m mainly just wondering if anyone here knows why that is. Do you know?

Thanks for reading!

It's easy to do if the app stays in the foreground. But there are lots of File and Document storage apps that do so already in the App store.
 

kage207

macrumors 6502a
Jul 23, 2008
971
56
Check out Coda. Doing HTML static files isn't really that hard to do.

EDIT: Keep in mind you don't need a server to render HTML in a dev environment.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.