Could not create a Preboot Volume for APFS install So I have this issue when trying to reinstall macOS in the recovery, but when I tried to reinstall "Could not create a preboot volume for APFS install" comes up.

I came across this solution which requires you to completely wipe your drive but I don't want to do that since that would mean my BootCamp installation would also have to be gone.

Is there a way to fix this issue without completely wiping my disk?
If somebody face the same issue please consider to visit this link.  https://www.belightsoft.com/products/resources/apfs-bootable-clone-with-command-line

I faced this issue when i converted HPS+ to APFS manually via DiskUtil. My MacBook was completely dead. 

Bless utility is looking for APFS Preboot volume and because it is missing it fails to configure APFS container. 

What i've done is: 


Boot to Recovery 
go to Terminal 
check partitions/disk numbers with diskutil list (preboot volume was missing for my APFS container )
create Preboot volume manually with diskutil apfs addVolume disk"Disk Number here" apfs Preboot -role B
and then bless the APFS container again with bless --folder /Volumes/MACINTOSH HD/System/Library/CoreServices --bootefi --verbose
bless again via Startup Disk ( just to be sure)
reboot