Posted in iOS, Mac

Mac, iOS | Xcode iOS simulator video recording

open terminal and type the command

$ xcrun simctl io booted recordVideo ‘filename.extension’

(Ex. $ xcrun simctl io booted recordVideo video.mp4)

Advertisements
Posted in Mac, VirtualBox

Mac, VirtualBox – Mount SD-card to virtualbox on Mac OS X

Unmount SDcard on Mac OS X

$ diskutil unmountDisk [SD card path]
(Ex. $ diskutil unmountDisk /dev/disk3)

Generate .vmdk file for VirtualBox

$ sudo VBoxManage internalcommands createrawvmdk -filename [.vmdk file name] -rawdisk [SD card path]
(Ex. $ sudo VBoxManage internalcommands createrawvmdk -filename sdcard.vmdk -rawdisk /dev/disk3)

Authorize .vmdk file and SDcard path as 666 or 777

$ sudo chmod 666 [.vmdk file name]
(Ex. $ sudo chmod 666 microsd.vmdk)

$ sudo chmod 666 [SDcard path]
(Ex. $ sudo chmod 666 /dev/disk3)

Unmount SDcard on Mac OS X whenever SDcard is remounted by Mac OS X

and then

Mount .vmdk file on VirtualBox