「建立虛擬 macOS26」修訂間的差異

出自頂極製作所
 
行 165: 行 165:
*** gem install ffi -v 1.17.4
*** gem install ffi -v 1.17.4
*** gem install cocoapods
*** gem install cocoapods
*** echo 'export PATH="/usr/local/lib/ruby/gems/4.0.0/bin:$PATH"' >> ~/.zshrc
*** source ~/.zshrc
*** pod --version
*** pod --version
*** flutter doctor -v
*** flutter doctor -v

於 2026年4月16日 (四) 15:17 的最新修訂

  • 硬體環境
    • 8 CPU
    • 32G RAM
    • 256 GB HDD
    • 掛載 Catalina 10.15.iso
  • 安裝 Catalina 10.15
  • 安裝 darwin.iso
  • 升級 Tahoe26
  • 改寫虛擬設定 macOS.vmx
.encoding = "Big5"
config.version = "8"
virtualHW.version = "21"
virtualHW.productCompatibility = "hosted"

displayName = "macOS26"
guestOS = "darwin24-64"
firmware = "efi"
nvram = "macOS.nvram"

smc.present = "TRUE"
smbios.restrictSerialCharset = "TRUE"
board-id.reflectHost = "TRUE"
ich7m.present = "TRUE"

vmci0.present = "TRUE"
hpet0.present = "TRUE"

powerType.powerOff = "soft"
powerType.powerOn = "soft"
powerType.suspend = "soft"
powerType.reset = "soft"
cleanShutdown = "TRUE"
softPowerOff = "TRUE"

numvcpus = "8"
cpuid.coresPerSocket = "2"
memsize = "16384"

tools.syncTime = "FALSE"

pciBridge0.present = "TRUE"
pciBridge0.pciSlotNumber = "17"

pciBridge4.present = "TRUE"
pciBridge4.virtualDev = "pcieRootPort"
pciBridge4.functions = "8"
pciBridge4.pciSlotNumber = "21"

pciBridge5.present = "TRUE"
pciBridge5.virtualDev = "pcieRootPort"
pciBridge5.functions = "8"
pciBridge5.pciSlotNumber = "22"

pciBridge6.present = "TRUE"
pciBridge6.virtualDev = "pcieRootPort"
pciBridge6.functions = "8"
pciBridge6.pciSlotNumber = "23"

pciBridge7.present = "TRUE"
pciBridge7.virtualDev = "pcieRootPort"
pciBridge7.functions = "8"
pciBridge7.pciSlotNumber = "24"

sata0.present = "TRUE"
sata0.pciSlotNumber = "35"

sata0:0.present = "TRUE"
sata0:0.fileName = "macOS26.vmdk"
sata0:0.redo = ""

sata0:1.present = "TRUE"
sata0:1.deviceType = "cdrom-image"
sata0:1.fileName = "D:\Downloads\OS_ISO\macOS\darwin.iso"
sata0:1.startConnected = "TRUE"

usb.present = "TRUE"
ehci.present = "TRUE"
ehci.pciSlotNumber = "34"
usb_xhci.present = "TRUE"
usb_xhci.pciSlotNumber = "192"

usb_xhci:4.present = "TRUE"
usb_xhci:4.deviceType = "hid"
usb_xhci:4.port = "4"
usb_xhci:4.parent = "-1"

usb_xhci:6.present = "TRUE"
usb_xhci:6.deviceType = "hub"
usb_xhci:6.port = "6"
usb_xhci:6.parent = "-1"
usb_xhci:6.speed = "2"

usb_xhci:7.present = "TRUE"
usb_xhci:7.deviceType = "hub"
usb_xhci:7.port = "7"
usb_xhci:7.parent = "-1"
usb_xhci:7.speed = "4"

ethernet0.present = "TRUE"
ethernet0.connectionType = "nat"
ethernet0.addressType = "generated"
ethernet0.virtualDev = "vmxnet3"
ethernet0.pciSlotNumber = "160"
ethernet0.generatedAddress = "00:0c:29:37:14:2a"
ethernet0.generatedAddressOffset = "0"

sound.present = "TRUE"
sound.autoDetect = "TRUE"
sound.virtualDev = "hdaudio"
sound.fileName = "-1"
sound.pciSlotNumber = "33"

floppy0.present = "FALSE"

extendedConfigFile = "macOS26.vmxf"
vmxstats.filename = "macOS.scoreboard"

uuid.bios = "56 4d 26 ad 91 d6 b5 20-2d 44 05 2e 2b 37 14 2a"
uuid.location = "56 4d 26 ad 91 d6 b5 20-2d 44 05 2e 2b 37 14 2a"

monitor.phys_bits_used = "45"
vmci0.id = "725029930"

svga.autodetect = "FALSE"
svga.vramSize = "268435456"
svga.graphicsMemoryKB = "262144"
svga.maxWidth = "1920"
svga.maxHeight = "1080"

mks.enable3d = "FALSE"
gui.fitGuestUsingNativeDisplayResolution = "FALSE"

numa.autosize.vcpu.maxPerVirtualNode = "8"

toolsInstallManager.updateCounter = "16"
guestInfo.detailed.data = "architecture='X86' bitness='64' buildNumber='25E253' distroName='macOS' distroVersion='26.4.1' familyName='Darwin' kernelVersion='25.4.0'"
  • 開機自動登入
    • 系統設定 → 使用者與群組 → 自動登入
  • 預設瀏覽器
    • DOCK → 預設瀏覽器 → Chrome
  • 時間地區設定
    • 系統設定 → 一般 → 日期與時間 → 輸入台灣
  • 軟體安裝
    • app store
    • XCode
      • XCode → windows → Devices and Simulators → iOS Device
      • 終端機 softwareupdate --list
    • google chrome
    • VsCode
      • flutter 安裝
      • Search "flutter"
      • Install "flutter" + "Dart"
      • Command + Shift + P → "flutter" ,選 Flutter: New Project,VS Code 會引導你下載與安裝 Flutter SDK
      • 再按 Command + Shift + P → 輸入 doctor ,選 Flutter: Run Flutter Doctor
      • 終端機確認路徑 flutter doctor -v
    • 安裝最新版 CocoaPods
      • /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
      • brew install ruby
      • echo 'export PATH="/usr/local/opt/ruby/bin:$PATH"' >> ~/.zshrc
      • source ~/.zshrc
      • ruby -v
      • which ruby
      • gem install ffi -v 1.17.4
      • gem install cocoapods
      • echo 'export PATH="/usr/local/lib/ruby/gems/4.0.0/bin:$PATH"' >> ~/.zshrc
      • source ~/.zshrc
      • pod --version
      • flutter doctor -v
    • Android studio
      • 第一次打開它,在設定讓它把這幾樣裝完:
      • Android SDK
      • Platform Tools
      • Build Tools
      • Command-line Tools
      • 終端機 flutter doctor --android-licenses
      • 終端機 flutter doctor -v
  • 下載 26.4.1 APP 指令:
    • softwareupdate --fetch-full-installer --full-installer-version 26.1
    • ls -ld "/Applications/Install macOS Tahoe.app"
    • ls -l "/Applications/Install macOS Tahoe.app/Contents/Resources/createinstallmedia"