请对照这里进行安装:http://bbs.feng.com/read-htm-tid-7625465.html
参考http://www.macbreaker.com/2012/07/mountain-lion-virtualbox.html
以下是Cyper的笔记,仅供参考:
我下载的是最新版本的virtualbox 4.3.28 for Linux
装好后, 新建一个Max OS的VM, 名称为mac,分配的硬件参数如下:
2 CPU, 80G HDD, 4G Mem, 128M Video Mem, Enable 3D Acceleration, 去掉Floppy Disk以及EFI,
Network用默认的NAT,
一开始Storage选择HackBoot_Mav.iso
启动时Devices > Insert cd/dvd,选择那个OSXMavericks2.iso
然后F5,按回车开始安装。
安装过程需要打开Disk Utility来erase这个80G的盘,新的盘名为macosx., 安装过程大概30分钟.
会自动重启,等熄火后Close/Power Off这个VM..
设置Storage,删除那个OSXMavericks2.iso, 换成HackBoot_Mav.iso,
启动,和先前一样, Devices > Insert CD/DVD选择OSXMavericks2.iso然后
F5, 等OSX Base System变绿后,按回车
等安装界面出来后选择Continue, 选择Agreee, 这次选择Utilities > Terminal
依次键入以下内核扩展命令(注意第一行macosx是你的盘名默认为Untitled我在erase的时候改成macosx了)
umount /Volumes/macosx
hdiutil attach /dev/disk0s2 -mountpoint /Volumes/mnt
cp -rp /Backup/Kexts/ElliottForceLegacyRTC.kext /Volumes/mnt/System/Library/Extensions
cp -rp /Backup/Kexts/FakeSMC.kext /Volumes/mnt/System/Library/Extensions
cp -rp /Backup/Kexts/NullCPUPowerManagement.kext /Volumes/mnt/System/Library/Extensions
chmod -R 0755 /Volumes/mnt/System/Library/Extensions/ElliottForceLegacyRTC.kext
chmod -R 0755 /Volumes/mnt/System/Library/Extensions/FakeSMC.kext
chmod -R 0755 /Volumes/mnt/System/Library/Extensions/NullCPUPowerManagement.kext
chown -R root:wheel /Volumes/mnt/System/Library/Extensions/ElliottForceLegacyRTC.kext
chown -R root:wheel /Volumes/mnt/System/Library/Extensions/FakeSMC.kext
chown -R root:wheel /Volumes/mnt/System/Library/Extensions/NullCPUPowerManagement.kext
hdiutil detach /Volumes/mnt
都是常用命令,只有一个cp -p的参数不明白, man一下
-p same as --preserve=mode,ownership,timestamps
嗯。。
最后关闭terminal等硬盘灯不闪后close/Power Off VM
Storage选择 HackBoot_Mav.iso,,启动..
此时默认选中的是第一个OS X Boot, 用光标键切换到第二个盘标(macosx),按回车继续安装..
在 苹果菜单 -> 系统偏好设置(System Preferences) -> 安全性与隐私(Security & Privacy) 里面选择 “任何来源” (用于安装 MultiBeast)
下载MultiBeast-Mavericks-Edition-6.1.0.zip, 解压双击安装Quick Start>EasyBeast>Build>Install,安装结束后Close/Power Off VM
在Storage中删除HackBoot_Mav.iso并重新勾选上Enable EFI..
启动
装完后运行xcode提示需要10.9.4及以上版本(而我这个Hack版的仅为10.9)
然后按照提示打开App Store我选择下载并更新到10.9.5...又要下载900多M, 你敢信吗?升级成功了!!
启动xcode的时候报错。
http://stackoverflow.com/questions/25996484/xcode6-wont-start-stuck-on-verifying-xcode
根据这篇帖子只要使用命令xattr -d com.apple.quarantine /Applications/Xcode.app就可以跳过合法性检查, 汗!!
至此。叼丝版的swift学习环境搭建成功, 来张图。。。
据说可以免费升级到10.10。下载中 https://www.apple.com/osx/how-to-upgrade/是否能升级成功还有待验证。
###2015-06-13今天从App Store中下载下来,下载完成后,我选择关机。然后再开机就会出现安装向导界面(也可以从launch pad中打开安装向导)
但是在点Install > Agree > OK后出现下面的错误提示:
Yosemite won't install (An error occurred while preparing the installation)
Figured it out.
I had to clear the PRAM.
After doing it the installer continued just fine and Yosemite was installed.
In case you want to try it and you don't know how to clear your PRAM, shut down your computer and turn it back on. Just before the "Turn On" sound, press the [CMD] + [Option] + [P] + [R] keys, simultaneously and keep holding them till your computer restarts again.
http://guides.macrumors.com/PRAM
How to Reset your PRAM
- Reboot your Mac
- Hold down Command (Apple) - Option (Alt) - P - R
- When you have heard the chime for the second time, release the keys and the Mac will boot as normal
- Once your operating system has loaded, you may need to verify your time zone, startup volume, and volume settings using System Preferences.