There is a lot of misinformation and confusion on this topic. Currently, no utility can rebuild the directory of APFS disks on Mac. That includes DiskWarrior (the best in the repair arsenal), TechTool Pro (second choice) and Drive Genius (third choice). Worst of all, macOS versions above 10.12 Sierra re-format disks as APFS, so users are left in the cold. Apple should not do that!!!
The reason is that Apple has not yet released documentation about how to write to such APFS disks, as they did about how to read them by September 2018 (after releasing macOS 10.14 Mojave; a year after releasing APFS for Mac and even before for iOS by March 2017!!!).
• Some developers are clear about it in their web pages, like Prosoft Engineering:
Drive Genius 5. Rebuild utilities are not supported on APFS.
• Micromat is misleading:
TechTool Pro. In addition to native Mac drive formats, Mac OS Extended and APFS, Techtool Pro supports testing and repair of MS-DOS (FAT32) and ExFAT formatted volumes.
Techtool Pro can also repair Apple's new APFS file system, standard Mac OS Extended volumes, as well as MS-DOS (FAT32) and ExFAT formatted volumes.
But says part of the truth in the small print:
**Note: Optimization for APFS rotational drives is not yet possible with the current amount of APFS documentation provided by Apple, which currently provides insufficieant documentation for defragmenting a disk.
And the whole truth in their forum:
APFS formatting. No utility can fully support APFS at the moment, both because APFS is itself a work-in-progress, and Apple has yet to release documentation for it for developers. What is needed is documentation at least as detailed as the one for the HFS+ filesystem.
• Alsoft (DriveWarrior) is completely misleading and wrong:
Using DiskWarrior 5.2 while started (booted) from High Sierra or Mojave. What's in the works. The next major release of DiskWarrior will include the ability to rebuild APFS disks. Apple has recently released the APFS format documentation. Our developers are now using that documentation to update DiskWarrior to be able to safely rebuild APFS disks.
That is FALSE. They CANNOT release a new version of DiskWarrior to rebuild directory of APFS until Apple releases the full documentation. Clearly, they do not want to reveal the plain truth, since their living depends on that! Alsoft should not do it!!! Customers deserve the truth!
SO, THE CONCLUSION IS THAT SOME DEVELOPERS ARE NOT TELLING THE PLAIN TRUTH, BUT AT LEAST ONE IS. IT IS IMPORTANT TO SEND FEEDBACK TO APPLE SO THAT THEY RELEASE DOCUMENTATION ABOUT HOW TO WRITE TO APFS DISKS AS THEY HAVE DONE ABOUT HOW TO READ THEM. THEN AND ONLY THEN THE REPAIR UTILITIES WILL BE RELEASED TO REBUILD THE DIRECTORY OF APFS DISKS: