How to fix Turnkey returned an error : Code 1 ?


Could someone help me for this plss?

I am in ue5.5.1 , I have installed the latest windows sdk and .net , i have verified the engine files 10 times i have uninstalled and reintsalled the engine and i have copied the hostfxr.dll file in the Automation.tool directory and it still doesn’t WORKKK

I’m getting the same issue.
UE 5.5.2 on Mac. Attempted to verify and fix install, did not fix issue. Reinstalled engine, still no fix. Verified re-install, no fix.
Would love a solution to this issue.

Hi there @AShepard

Welcome to the Unreal Forum! Is this the same issue you’re having? Unreal Engine 5 - Packaging error on Windows 10

1 Like

Unfortunately not, though likely an SDK issue. I’m developing on a Macbook Pro M1. And packaging in 5.1 works, but the engine for 5.5.2 seems to be not properly using the UAT. From what I’m gathering…

I pulled another thread over on The SDK for Windows is not installed properly with some other users having the issue. Take a peek on this one.

That 's the problem i did everything in this video and it still doesn’t work

Even updating your dotnet?

yes i did, could this be because i don’t have visual studio installed?

Yes, it could. I always recommend keeping VS up to date(And installed) as it kicks a lot of errors up.

so i installed it and guest what? Another error . It says that i have not installed visual studio nad when i press install it does nothing

a) verify your engine install. Sometimes something goes haywire and it gets screwed up.
b) install a windows SDK that is best for your version of the engine

Consult the documentation for this => Setting Up Visual Studio Development Environment for C++ Projects in Unreal Engine | Unreal Engine 5.5 Documentation | Epic Developer Community

c) Sometimes the newest version is not always guaranteed to be the best

You can set the version by hand either in the engine or your project via
Saved\UnrealBuildTool\BuildConfiguration.xml

inside you can add the specific xml segment to set a compiler, windows sdk or msvc version

Here is what I needed for example to compile 5.4 without errors

<?xml version="1.0" encoding="utf-8" ?>
<Configuration xmlns="https://www.unrealengine.com/BuildConfiguration">
<WindowsPlatform>
<WindowsSdkVersion>10.0.22621.0</WindowsSdkVersion>
</WindowsPlatform>
</Configuration>

You can find your SDK versions in you sdk install dir \10\include

In my case I have mine in d:\Windows Kits

You can see your specific sdk folders and try them out one by one until a version syncs up with the engine correctly.

You can then try enforcing a new SDK Check

Thank you for the assist @3dRaven ! Good info too!