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

sbandol

macrumors newbie
Original poster
Mar 3, 2008
25
0
Hi all,

Somebody know if its possible to run a app downloaded from itunes on iPhone Simulator?

Or maybe is there another way to run iphone apps on mac?


Thanks!
 

firewood

macrumors G3
Jul 29, 2003
8,141
1,384
Silicon Valley
The iPhone Simulator is for Intel ia32/x86 CPU's. ARM code won't run on it. XCode compiles completely different object code for the Simulator and for the device. Only the device code for ARM CPU's is uploaded to the App Store.
 

factoryjoe

macrumors newbie
Jul 17, 2008
2
0
The iPhone Simulator is for Intel ia32/x86 CPU's. ARM code won't run on it. XCode compiles completely different object code for the Simulator and for the device. Only the device code for ARM CPU's is uploaded to the App Store.

Not this this is all that helpful, but I discovered that if you take on the .IPA files in ~/Music/iTunes/Mobile Applications and send it through File Juicer, a .ZIP file will result that has the mobile application embedded in it.

I dragged this application into the iPhone Simulator which of course caused the simulator to crash. Again, I don't know that this is helpful at all, but if you figured out a way to get around the "compiled for one processor problem" (heh, yeah right) you might be able to run apps in the simulator.
 

The General

macrumors 601
Jul 7, 2006
4,825
1
Not this this is all that helpful, but I discovered that if you take on the .IPA files in ~/Music/iTunes/Mobile Applications and send it through File Juicer, a .ZIP file will result that has the mobile application embedded in it.

I dragged this application into the iPhone Simulator which of course caused the simulator to crash. Again, I don't know that this is helpful at all, but if you figured out a way to get around the "compiled for one processor problem" (heh, yeah right) you might be able to run apps in the simulator.

You would have to write a disassembler that can disassemble ARM binaries into something that will build for Intel, then rebuild it.

Yeah, it won't happen. Maybe just go find some Open Souce apps and download them and install them in the simulator after you build them with Xcode. ;)
 

coolruss

macrumors newbie
Jul 26, 2008
1
0
Isn't the whole point of having an emulator to be able to emulate the hardware environment. In this case that being the iPhone ARM device.

If the emulator is a true emulator we should be able to run the apps.
 

MadGoat

macrumors 65816
Jul 30, 2007
1,179
130
Canada
Isn't the whole point of having an emulator to be able to emulate the hardware environment. In this case that being the iPhone ARM device.

If the emulator is a true emulator we should be able to run the apps.

It's not actually an iPhone emulator, rather it's an iPhone simulator. it's designed to simulate an iphones environment but not emulate the processor.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.