ios dev

Windows下搭建IOS开发环境(一)

2016-09-02  本文已影响1651人  AiPuff

我们都知道开发iPhone等ios平台的移动应用时需要使用Mac本,但是Mac本都比较昂贵,所以我们可以采用Windows7上利用VMWare安装Mac操作系统的方法来模拟ios开发环境,达到降低成本的目的。
1.相关配置
操作系统:windows7旗舰版
Work station:VMWare10
Mac操作操作系统:OS X 10.8
2.相关资源下载地址
(1)VMWare10的资源比较多,可以到网上自己下载
http://www.xp510.com/xiazai/ossoft/desktools/22610.html
(2)OS X 10.8下载地址
http://download.csdn.net/detail/tianxuexuankui/6838565
(3)VMWare上的Mac补丁
http://download.csdn.net/detail/tianxuexuankui/6838579
(4)dmg格式转换成iso格式的工具UltraISO
http://www.cngr.cn/dir/209/271/2009032738116.html
3.安装过程
a.安装VMWare
检测CPU是否支持虚拟化 检测工具 securable.exe

我是Lenovo的机子,Win 7,

检测到

Paste_Image.png

表明处于关闭状态(Locked OFF并不能表明CPU是否支持,到底支持不支持,请到主板BIOS中,看是否有VT的开启开关,开后,如显示为ON那就成功了,如还是OFF,那表明CPU不支持。

我的设置过程如下:重新开启——F1——BIOS——Advanced——cpu Setup——intel Virtualization Technology——Enabled——F10保存退出。

下载Vmware安装包后,直接安装就可以了。

b.安装VMWare的Mac补丁
将补丁文件下载之后,解压缩。打开安装文件的windows目录,右键以管理员身份运行install.cmd

c.创建虚拟机
VMWare安装好之后,选择"文件"---"新建虚拟机",进入到创建虚拟机的界面,如下

Paste_Image.png

选择自定义,点击下一步

Paste_Image.png

选择“稍后安装操作系统”,点击“下一步”

Paste_Image.png

操作系统类型上选择“Apple Mac OS X”,版本上选择10.8,点击“下一步”

Paste_Image.png

设置虚拟机的名称和安装的路径,点击“下一步”

Paste_Image.png

设置好处理器数量之后,点击下一步

Paste_Image.png

设置内存,然后下一步

Paste_Image.png

这里,将网络连接方式最好设置成桥接,这样就可以和物理机实现同网段。点击下一步

Paste_Image.png

接下来几步,都可以设置为默认方式

Paste_Image.png Paste_Image.png Paste_Image.png Paste_Image.png

设置好硬盘的容量好,点击下一步

Paste_Image.png

默认名称即可,点击下一步

Paste_Image.png

点击完成,结束创建
使用下载的工具UltraISO将dmg格式的mac os x文件转换成iso格式的。
1.打开UltraISO,加载dmg

Paste_Image.png

2.打开dmg后,选择格式转换,选择标准ISO

Paste_Image.png

ISO转换完成后,右键刚刚创建好的虚拟机名称,选择设置选项,对虚拟机进行编辑,将iso文件进行关联,具体操作如下

Paste_Image.png

以上的所有的一切完毕之后,点击开启虚拟机就可以了。
首先进入的是apple的logo界面,如下

Paste_Image.png

稍等一段时间之后,进入到语言的选择界面

Paste_Image.png

这里我选择的是简体中文,然后点击向右的箭头,进入下一步

Paste_Image.png

选择使用工具里面的磁盘工具,进行分区

Paste_Image.png

按照上图的方式进行设置后,对分区进行命名

Paste_Image.png

选择刚刚创建的分区,对数据进行格式化,如下图所示操作。点击右下角抹掉

Paste_Image.png

关闭分区工具,选择重新安装OS X

Paste_Image.png

点击继续按钮

Paste_Image.png

选择同意条款,进入下一项设置

Paste_Image.png

选择刚刚创建的分区,点击安装选项进行安装

Paste_Image.png

安装的过程大概需要半小时左右的时间,等待安装完成之后,进行简单的设置,包括开机密码、Apple ID和Icloud、find my Mac等操作。就可以进入到Mac OS X 10.8的操作系统了。界面如下

Paste_Image.png

安装好Mac操作系统后,打开里面的浏览器就可以直接进入到Apple的官方网站,在网站里面搜索xcode就可以进入到Xcode的下载界面
这里需要注意下,不是所有的Xcode都可以使用的,Xcode和Mac OS X操作系统需要一定的相互匹配关系的,具体的情况可以参考下面:

xcode全部版本的下载地址,从国外网站找来的,发给没法番(你懂的)蔷的朋友们我用的是4.4.1, 我的ipad是ios 5.1.1固件,如果用4.5的xcode的话自带的sdk是6.0的,无法真机调试,又不想升级ipad、到6.0。只好用4.4.1的xcode了**我现在用的xcodee 4.4.1可以和4.5并存。。因为都是app格式的,其中一个xcode改一下名字就可以了。
**Xcode 3.2.3 and iPhone SDK 4 GM seed for

Snow Leopard

(10.6.2)

http://developer.apple.com/ios/download.action?path=/iphone/iphone_sdk_4_gm_seed/xcode_3.2.3_and_iphone_sdk_4_gm_seed.dmg

Xcode 3.2.3 and

iPhone SDK 4 Final

for

Snow Leopard

(10.6.2)

http://developer.apple.com/ios/download.action?path=/iphone/iphone_sdk_4__final/xcode_3.2.3_and_iphone_sdk_4__final.dmg

Xcode 3.2.3 and iOS SDK 4.0.1 for

Snow Leopard

(10.6.4)

http://developer.apple.com/ios/download.action?path=/ios/ios_sdk_4.0.1__final/xcode_3.2.3_and_ios_sdk_4.0.1.dmg

Xcode 3.2.3 and iOS SDK 4.0.2 for

Snow Leopard

(10.6.4)

http://developer.apple.com/ios/download.action?path=/ios/ios_sdk_4.0.2__final/xcode_3.2.3_and_ios_sdk_4.0.2.dmg

Xcode 3.2.4 and

iOS SDK 4.1

for

Snow Leopard

(10.6.4)

http://developer.apple.com/ios/download.action?path=/ios/ios_sdk_4.1__final/xcode_3.2.4_and_ios_sdk_4.1.dmg

Xcode 3.2.5 and

iOS SDK 4.2 GM

for

Snow Leopard

(10.6.4)

http://developer.apple.com/ios/download.action?path=/ios/ios_sdk_4.2_gm_seed/xcode_3.2.5_and_ios_sdk_4.2_gm_seed.dmg

Xcode 3.2.5 and

iOS SDK 4.2

for

Snow Leopard

(10.6.4)

http://developer.apple.com/ios/download.action?path=/ios/ios_sdk_4.2__final/xcode_3.2.5_and_ios_sdk_4.2_final.dmg

Xcode 3.2.6 and

iOS SDK 4.3 GM Seed

for

Snow Leopard

(10.6.6)

http://developer.apple.com/devcenter/download.action?path=/ios/ios_sdk_4.3_gm_seed/xcode_3.2.6_and_ios_sdk_4.3_gm_seed.dmg

Xcode 3.2.6 and

iOS SDK 4.3

for

Snow Leopard

(10.6.6)

http://adcdownload.apple.com/Developer_Tools/xcode_3.2.6_and_ios_sdk_4.3__final/xcode_3.2.6_and_ios_sdk_4.3__final.dmg

Xcode 3.2.6 and

iOS SDK 4.3.1

for

Snow Leopard

(10.6.6)

http://adcdownload.apple.com/Developer_Tools/xcode_3.2.6_and_ios_sdk_4.3__final/xcode_3.2.6_and_ios_sdk_4.3.dmg

Xcode 4 and iOS SDK 4.3

for

Snow Leopard

(10.6.6)

http://developer.apple.com/devcenter/download.action?path=/Developer_Tools/xcode_4_and_ios_sdk_4.3__final/xcode_4_and_ios_sdk_4.3__final.dmg

Xcode 4.0.1 and iOS SDK 4.3.1

for

Snow Leopard

(10.6.6)

http://developer.apple.com/devcenter/download.action?path=/Developer_Tools/xcode_4.0.1_and_ios_sdk_4.3/xcode_4.0.1_and_ios_sdk_4.3.dmg

Xcode 4.0.2 and iOS SDK 4.3.2

for

Snow Leopard

(10.6.6)

http://developer.apple.com/devcenter/download.action?path=/Developer_Tools/xcode_4.0.2_and_ios_sdk_4.3/xcode_4.0.2_and_ios_sdk_4.3.dmg

Xcode 4.1

for

Snow Leopard

(10.6.6)

https://developer.apple.com/downloads/download.action?path=Developer_Tools/xcode_4.1_for_snow_leopard_21110/xcode_4.1_for_snow_leopard.dmg

Xcode 4.1

for

Lion

(10.7)

https://developer.apple.com/downloads/download.action?path=Developer_Tools/xcode_4.1_for_lion/xcode_4.1_for_lion.dmg

**Xcode 4.2 and iOS SDK 5.0 **

for

Snow Leopard

(10.6.6)

https://developer.apple.com/downloads/download.action?path=Developer_Tools/xcode_4.2_for_snow_leopard/xcode_4.2_for_snow_leopard.dmg

https://developer.apple.com/devcenter/download.action?path=/Developer_Tools/xcode_4.2_with_ios_5_sdk/xcode_4.2_and_ios_5_sdk_for_snow_leopard.dmg

**Xcode 4.2 and iOS SDK 5.0 **

for

Lion

(10.7)

https://developer.apple.com/downloads/download.action?path=Developer_Tools/xcode_4.2_for_lion_21179/xcode_4.2_for_lion.dmg

http://developer.apple.com/devcenter/download.action?path=/Developer_Tools/xcode_4.2_with_ios_5_sdk/xcode_4.2_and_ios_5_sdk_for_lion.dmg

**Xcode 4.2.1 and iOS SDK 5.0 **

for

Lion

(10.7)

http://developer.apple.com/downloads/download.action?path=Developer_Tools/xcode_4.2.1_for_lion/xcode_4.2.1_for_lion.dmg

**Xcode 4.3 and iOS SDK 5.0 **

for

Lion

(10.7.2)

Note: For Xcode 4.3, you need also to install the optional components such as command line tools, and previous iOS Simulators from Xcode’s Download’s preferences

http://adcdownload.apple.com/Developer_Tools/xcode_4.3_for_lion_21266/xcode_43_lion.dmg

**Xcode 4.3.1 and iOS SDK 5.1 **

for

Lion

(10.7.3)

http://adcdownload.apple.com/Developer_Tools/xcode_4.3.1_for_lion_21267/xcode_431_lion.dmg

**Xcode 4.3.2 and iOS SDK 5.1 **

for

Lion

(10.7.3)

http://adcdownload.apple.com/Developer_Tools/xcode_4.3.2/xcode_432_lion.dmg

**Xcode 4.3.3 and iOS SDK 5.1 **

for

Lion

(10.7.3)

http://adcdownload.apple.com/Developer_Tools/xcode_4.3.3_for_lion/xcode_4.3.3_for_lion.dmg

**Xcode 4.4 and iOS SDK 5.1 **

for

Lion (10.7.3) or Mountain Lion (10.8)

http://adcdownload.apple.com/Developer_Tools/xcode_4.4_21362/xcode446938108a.dmg

**Xcode 4.4.1 and iOS SDK 5.1 **

for

Lion (10.7.3) or Mountain Lion (10.8)

http://adcdownload.apple.com/Developer_Tools/xcode_4.4.1/xcode_4.4.1_6938145.dmg

http://adcdownload.apple.com/Developer_Tools/xcode_4.4.1/command_line_tools_for_xcode_os_x_mountain_lion_aug_2012.dmg

**Xcode 4.5 and iOS SDK 6 GM Seed **

for

Lion (10.7.4) and Mountain Lion (10.8)

http://adcdownload.apple.com//Developer_Tools/xcode_4.5_gm_seed/xcode_4.5_gm_seed.dmg

Xcode 4.5 and iOS SDK 6

for

Lion (10.7.4) and Mountain Lion (10.8)

http://adcdownload.apple.com/Developer_Tools/xcode_4.5/xcode_4.5.dmg

Command Line Tool for Xcode 4.5

for

Mountain Lion (10.8)

http://adcdownload.apple.com/Developer_Tools/command_line_tools_for_xcode_4.5_os_x_mountain_lion__september_2012/command_line_tools_for_xcode_4.5_os_x_mountain_lion.dmg

Command Line Tool for Xcode 4.5

for

Lion (10.7.4)

http://adcdownload.apple.com/Developer_Tools/command_line_tools_for_xcode_4.5_os_x_lion__september_2012/command_line_tools_for_xcode_4.5_os_x_lion.dmg

上一篇下一篇

猜你喜欢

热点阅读