Can't package on Mac in 4.18 (MetalRHI)

As mentioned by Loeiz, updating XCode to the latest version on the app store resolved the issue.