I was wondering is it allowed to include a precompiled windows executable like an .exe file or maybe a bash or a python script, which then gets served from the iPhone and the user can get it on the iPhone's address.
If that's possible it will make my life a lot easier.
I was wondering is it allowed to include a precompiled windows executable like an .exe file or maybe a bash or a python script, which then gets served from the iPhone and the user can get it on the iPhone's address.
If that's possible it will make my life a lot easier.
You could include a windows .exe file in your bundle as a data file. As to serving it from the iPhone, that would be harder.
Check out this password generator app that shows various techniques including using a data container singleton object to share data between objects in your project.
You could include a windows .exe file in your bundle as a data file. As to serving it from the iPhone, that would be harder.
What are you trying to do, exactly?
Hi Duncan,
well I want to have a small executable included in the bundle.The executable just alters some configuration files on the Windows side so the users don't have to do it manually.Nothing special a stand-alone exe that just adds rows of strings to a file.
When the iPhone gets on a local wifi net users should be able to connect to its ip or bonjour address with their browser and download it.
My thinking was to include the windows .exe in the bundle. The first time the user opens the app i present them with the option to download it and configure everything automatically.
The implementation side of it should be doable, I'm not asking about that.
My hang up is more, would that be against apple policy.Since I don't expect them to be willing to inspect wether what I do in the .exe is in some way harmful or not.
Another option is to make the users download it from the web to their iPhones,but thats a couple of steps more and I don't want to make them jump through hoops.
So in a jist:will apple allow me to serve (via http) windows executables to my users?
I don't see any reason why not. If it were an executable that could be run by the iPhone, maybe they would block it. But you couldn't run an EXE on the iPhone even if you wanted. Another option is that you rename the exe to myService.RES for instance, and rename it back to exe after its downloaded by your windows app.
I don't see any reason why not. If it were an executable that could be run by the iPhone, maybe they would block it. But you couldn't run an EXE on the iPhone even if you wanted. Another option is that you rename the exe to myService.RES for instance, and rename it back to exe after its downloaded by your windows app.
cool
I was hoping it'll be something along those lines.
BTW the .exe is going to be a stand-alone one.I don't have any supporting app infrastructure on the Windows side.Its meant to configure the ip addresses and access rights of a third-party app I want to interact with.
If someone has already done that would be nice to hear a definite answer.
Hi Duncan,
well I want to have a small executable included in the bundle.The executable just alters some configuration files on the Windows side so the users don't have to do it manually.Nothing special a stand-alone exe that just adds rows of strings to a file.
When the iPhone gets on a local wifi net users should be able to connect to its ip or bonjour address with their browser and download it.
My thinking was to include the windows .exe in the bundle. The first time the user opens the app i present them with the option to download it and configure everything automatically.
The implementation side of it should be doable, I'm not asking about that.
My hang up is more, would that be against apple policy.Since I don't expect them to be willing to inspect wether what I do in the .exe is in some way harmful or not.
Another option is to make the users download it from the web to their iPhones,but thats a couple of steps more and I don't want to make them jump through hoops.
So in a jist:will apple allow me to serve (via http) windows executables to my users?
Cheers
In order for the user to attach to the iPhone with their browser you would have to have an Apache server (or other web hosting server, but everybody uses Apache. It's reliable and free) running on your phone. I seriously doubt if Apache is available in iOS.
Check out this password generator app that shows various techniques including using a data container singleton object to share data between objects in your project.
In order for the user to attach to the iPhone with their browser you would have to have an Apache server (or other web hosting server, but everybody uses Apache. It's reliable and free) running on your phone. I seriously doubt if Apache is available in iOS.
Yeah that's pretty close to what I plan to do,but if I decide to do it through http(which is probably the easiest option) there is no need for a heavy thing like apace with all those options it has. http is simple enough and there are probably a bunch of libs that handle it already.Take a look at this one "https://github.com/robbiehanson/CocoaHTTPServer"