Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 01-24-2012, 04:36 PM   #1 (permalink)
kln
Registered Member
 
Join Date: Jan 2012
Posts: 5
kln is on a distinguished road
Default including .exe in the app

hi,

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.
kln is offline   Reply With Quote
Old 01-24-2012, 07:52 PM   #2 (permalink)
Cocoa Junkie
 
Duncan C's Avatar
 
Join Date: Dec 2008
Location: Northern Virginia
Posts: 6,003
Duncan C has a spectacular aura about
Default

Quote:
Originally Posted by kln View Post
hi,

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.

What are you trying to do, exactly?
__________________
Regards,

Duncan C
WareTo

Check out our apps in the Apple App store


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.

See this tutorial on using UIView animations and layer animations:

See this thread on generating random, non-repeating text

Check out a very cool Macintosh Kaleidoscopes app called ScopeWorks that we released to the Mac App store.
Duncan C is offline   Reply With Quote
Old 01-25-2012, 03:20 AM   #3 (permalink)
kln
Registered Member
 
Join Date: Jan 2012
Posts: 5
kln is on a distinguished road
Default

Quote:
Originally Posted by Duncan C View Post
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?

Cheers

Last edited by kln; 01-25-2012 at 03:22 AM.
kln is offline   Reply With Quote
Old 01-25-2012, 05:02 AM   #4 (permalink)
Registered Member
 
Join Date: Nov 2008
Posts: 864
nobre84 is on a distinguished road
Default

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.
nobre84 is offline   Reply With Quote
Old 01-25-2012, 06:22 AM   #5 (permalink)
kln
Registered Member
 
Join Date: Jan 2012
Posts: 5
kln is on a distinguished road
Default

Quote:
Originally Posted by nobre84 View Post
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.

Thanks
kln is offline   Reply With Quote
Old 01-25-2012, 06:54 AM   #6 (permalink)
Cocoa Junkie
 
Duncan C's Avatar
 
Join Date: Dec 2008
Location: Northern Virginia
Posts: 6,003
Duncan C has a spectacular aura about
Default

Quote:
Originally Posted by kln View Post
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.
__________________
Regards,

Duncan C
WareTo

Check out our apps in the Apple App store


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.

See this tutorial on using UIView animations and layer animations:

See this thread on generating random, non-repeating text

Check out a very cool Macintosh Kaleidoscopes app called ScopeWorks that we released to the Mac App store.
Duncan C is offline   Reply With Quote
Old 01-25-2012, 07:41 AM   #7 (permalink)
Registered Member
 
Join Date: Nov 2008
Posts: 864
nobre84 is on a distinguished road
Default

I've seen many apps with embedded http servers, take a look at this github project, looks pretty easy to set up
https://github.com/robbiehanson/CocoaHTTPServer
nobre84 is offline   Reply With Quote
Old 01-25-2012, 07:42 AM   #8 (permalink)
kln
Registered Member
 
Join Date: Jan 2012
Posts: 5
kln is on a distinguished road
Default

Quote:
Originally Posted by Duncan C View Post
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"
kln is offline   Reply With Quote
Old 01-25-2012, 07:43 AM   #9 (permalink)
kln
Registered Member
 
Join Date: Jan 2012
Posts: 5
kln is on a distinguished road
Default

Quote:
Originally Posted by nobre84 View Post
I've seen many apps with embedded http servers, take a look at this github project, looks pretty easy to set up
https://github.com/robbiehanson/CocoaHTTPServer
@nobre84
lol,
I had the same one in mind
thanks
kln is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 400
12 members and 388 guests
7twenty7, Atatator, condor304, FrankWeller, glenn_sayers, iphonedevshani, MAMN84, mraalex, PowerGoofy, QuantumDoja, tim0504, VinceYuan
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,674
Threads: 94,123
Posts: 402,908
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Atatator
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 05:51 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0