New wire.cpp file examples won’t compile

Read a post about overwriting the wire.cpp file
To make i2c work on the due but it won’t compile
Error below. Vvv

arduino15\packages\arduino\hardware\sam\1.6.12\libraries\wire\src\Wire.cpp:26:27: fatal error:
utility/twi.h: No such file or directory

Compiles before I replace the wire.cpp and when I put the original back won’t communicate i2c so trying a fix
Any help would be immensely appreciated !!!