您的位置:首页 > 移动开发

How to Run iPhone Apps on a Mac

2010-06-23 10:06 597 查看


Run iPhone Apps on a Mac

It has been in question that how can one run iPhone apps on a Mac so we have decided to provide you with a step by step guide on doing that easily.

Apple provides an iPhone simulator with the iPhone SDK for the developers to let them run their apps on their Macs. Unfortunately, XCode compiles completely different object code for the iPhone simulator and for the iPhone. Only the device code for ARM CPUs is uploaded to the App Store.

Before going further, please note that you will only be able to run those iPhone apps on your Mac, the source code of which you have access to. There are several apps whose source code is available on the web. The most prominent of them is “Wordpress for iPhone”. You can search the web for more open source iPhone apps. Here are a few. Also note that you need to have an Intel based Mac and at least Mac OS X 10.5.6 leopard.

Now follow these steps to run those iPhone apps on your mac.

1) Register yourself for free to iPhone developers program.

2) Log into iPhone Developers Website

3) Download iPhone SDK with iPhone Simulator.

4) Run the downloaded installation package (.dmg file)

5) You are ready to run iPhone apps on your mac.

6) To test, download the source code of BonFire app.

7) Extract the contents of the downloaded .zip file


Locate Bonfire.xcodeproj file in the extracted folder and run it. A window of the iPhone Development Envirenment “XCode” will open up.



XCode

9) Click on “Build and Go” in the XCode Window. iPhone simulator will automaticaly open with Bonfire running.

Enjoy!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: