Ubuntu12.04 安装 Mac OSX 10.9.5和 Xcode 6.2

请对照这里进行安装: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,按回车开始安装。

我的VB host键是右ctrl, 按一下右ctrl+F就会在全屏和非全屏模式下切换

安装过程需要打开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..

启动

根据release notes, Xcode6.2是Mavericks上所支持的最后一个Xcode版本, 安装Xcode_6.2.dmg中.

装完后运行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)

macrumors newbie

Oct 17, 2014
#2
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

  1. Reboot your Mac
  2. Hold down Command (Apple) - Option (Alt) - P - R
  3. When you have heard the chime for the second time, release the keys and the Mac will boot as normal
  4. Once your operating system has loaded, you may need to verify your time zone, startup volume, and volume settings using System Preferences.
[ edit]

转载于:https://my.oschina.net/uniquejava/blog/420528

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值