Download

Cook: CookResults: Error: Package Native Shader Library failed for WindowsNoEditor

Hello. I am on 4.17. I am trying to cook my game for Windows. The build goes skra well, but cooking fails.
I recieve errors:
UATHelper: Packaging (Windows (64-bit)): Cook: CookResults: Error: Package Native Shader Library failed for WindowsNoEditor.
UATHelper: Packaging (Windows (64-bit)): Cook: LogInit: Display: CookResults: Error: Package Native Shader Library failed for WindowsNoEditor.

PLEASE HALP HALP HALP HALP BEG YOU

Also for some reason while packing UE4 is looking for some non-existent content and then says " failed to find file". Wtf?
ps
I deleted “Saved” folder. It didn’t help.

UATHelper: Cooking (Windows): Program.Main: ERROR: AutomationTool terminated with exception: AutomationTool.AutomationException: Cook failed. —> AutomationTool.CommandletException: BUILD FAILED: Failed while running Cook for C:\Users\User\OneDrive\Documents\Unreal Projects\Game\Game.uproject; see log C:\Users\User\AppData\Roa

help me. I need help. please

Why won’t you help me

Is anyone going to help me at all?

Despite you compiling for windows, it sounds like you need to disable Metal (probably enabled on iOS or Mac?). The problem seems to be a bug, you can see the related information here and here.

In the future I recommend searching these issues on google - I found that info just by searching the error you posted. You’ll usually find information like this much quicker that way rather then waiting for someone to reply.

Oh… Disabling metal? Sounds bad… I don’t have a lot of metal on my scene, but replacing it with something is game-breaking. Anyway, can you please advice how to do it?

Disabling metal is not literal as in metal materials but Metal, which is a feature on iOS.

MetalPicture1.png

Open your project settings, disable this setting, and try packaging again.

Ok, thanks a lot! I will try it out

Hi, thanks for the reply, unfortunately it still doesn’t work and I get "
CookResults: Error: Package Native Shader Library failed for WindowsNoEditor"… Any other ideas?

Still no solution pls help

I am begginng you for 5 days help me finally

This is not android dude. In the future I recommend you to read the question first

Almost 1 month, still no help. Did engine destroy my game?

I had the same problem in UE 4.17, and I upgraded to UE 4.23, and made a copy of my game, and the problem went away.