It’s been a while since I managed it on my mac, I was lucky enough to have a roommate with a windows pc, but here’s what I did (if memory serves)
Working around the instructions from fidelizer’s website you can install homebrew and rkflashtool:
http://www.fidelizer-audio.com/flashing-fidelizer-purist-rom-firmware-on-mac-linux-guide/
Firmware Upgrade Tool 1.2.3
^this^ will contain a stock FW 1.2.3 update.img once unzipped.
the first link and the terminal commands (terminal app found in applications folder under utilities) to install rkflashtool are what’s most necessary.
You'll need to install command line tools in mac os x:
http://osxdaily.com/2014/02/12/install-command-line-tools-mac-os-x/
then install android debug bridge (ADB) using option 1 found here:
https://stackoverflow.com/questions/31374085/installing-adb-on-macos
then follow fidelizer page's instructions for rkflashtool
There are two things using rkflashtool that need to be moved to device,
boot.img from this zip
http://www.mediafire.com/file/wjqivdd2y7pbnl2/boot.zip/file
and the TWRP_recovery.img in this zip
https://androidfilehost.com/?fid=1322778262903998941.
Before you power off your device I’d enable developer options in your X5iii, under about device tap on 'build number' several times to enable them, go back on menu and under the new developer options section scroll to see enable USB debugging. turn that on.
You connect your player in powered off state to usb connection with your mac, while holding down the previous track rocker. In terminal you can try two commands to see that your device is recognized.
rkflashtool v
rkflashtool n
so you type the below command and after the arrow (with a space after it), I want you to drag the TWRP_recovery.img into the terminal window and then hit enter.
rkflashtool w recovery <
once that finishes do the below command but with the boot.img file being dragged into the terminal window and hit enter
rkflashtool w boot <
you can then type following command then enter
rkflashtool b
to reboot your device. if it boots properly, and still connected to usb, in terminal type below command then enter
adb reboot recovery
and hopefully you should boot into recovery.
you can then move the latest kernel to your device and install/flash the zip in TWRP (refer to
Previous Guide from here on out)