It has the word Editor in it twice. As excepted from any game engine, a build does not contain the editor. So how can you expect functions using the editor to work?
Anything to do with the Editor will not compile (or throw compiler errors) when it’s built. It’s that simple.