# How to fix Turnkey returned an error : Code 1 ?

**URL:** <https://forums.unrealengine.com/t/how-to-fix-turnkey-returned-an-error-code-1/2302457>\
**Category:** Debugging, Optimization, & Profiling\
**Tags:** windows, unreal-engine, Packaging, editor, packaging-projects, question\
**Created:** [January 25, 2025, 1:29pm UTC](https://forums.unrealengine.com/t/how-to-fix-turnkey-returned-an-error-code-1/2302457 "2025-01-25T13:29:06Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ermisnightninja2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ermisnightninja2](https://forums.unrealengine.com/u/Ermisnightninja2)\
**Post date:** [January 25, 2025, 1:29pm UTC](https://forums.unrealengine.com/t/how-to-fix-turnkey-returned-an-error-code-1/2302457/1 "2025-01-25T13:29:07Z")

</div>

![Στιγμιότυπο οθόνης 2025-01-25 151751](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/d/1/5d1a8c12dd7edc7a3c8a99036e58cbe8a8e1a1c9.png)  
 ![Στιγμιότυπο οθόνης 2025-01-25 151518](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/9/7/5977a173b29dcec7051cf8f3ec688636d4608cd0.png)

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

 ![Στιγμιότυπο οθόνης 2025-01-25 152646](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/c/9/2c9e401628b82a726de8a02dc693b4f0dc137d8c.png)

---

<div class="post-metadata">

**Author:** ![AShepard](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AShepard](https://forums.unrealengine.com/u/AShepard)\
**Post date:** [February 1, 2025, 8:28pm UTC](https://forums.unrealengine.com/t/how-to-fix-turnkey-returned-an-error-code-1/2302457/2 "2025-02-01T20:28:32Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![FrostyJas](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/frostyjas/32/1194640_2.png) [@FrostyJas](https://forums.unrealengine.com/u/FrostyJas)\
**Post date:** [February 2, 2025, 10:22am UTC](https://forums.unrealengine.com/t/how-to-fix-turnkey-returned-an-error-code-1/2302457/3 "2025-02-02T10:22:06Z")

</div>

Hi there @AShepard

Welcome to the Unreal Forum! Is this the same issue you’re having? [Unreal Engine 5 - Packaging error on Windows 10](https://forums.unrealengine.com/t/unreal-engine-5-packaging-error-on-windows-10/231912)

---

<div class="post-metadata">

**Author:** ![AShepard](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AShepard](https://forums.unrealengine.com/u/AShepard)\
**Post date:** [February 3, 2025, 6:58pm UTC](https://forums.unrealengine.com/t/how-to-fix-turnkey-returned-an-error-code-1/2302457/4 "2025-02-03T18:58:16Z")

</div>

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…

---

<div class="post-metadata">

**Author:** ![FrostyJas](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/frostyjas/32/1194640_2.png) [@FrostyJas](https://forums.unrealengine.com/u/FrostyJas)\
**Post date:** [February 5, 2025, 10:48am UTC](https://forums.unrealengine.com/t/how-to-fix-turnkey-returned-an-error-code-1/2302457/5 "2025-02-05T10:48:00Z")

</div>

I pulled another thread over on [The SDK for Windows is not installed properly](https://forums.unrealengine.com/t/the-sdk-for-windows-is-not-installed-properly/1369468) with some other users having the issue. Take a peek on this one.

---

<div class="post-metadata">

**Author:** ![Ermisnightninja2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ermisnightninja2](https://forums.unrealengine.com/u/Ermisnightninja2)\
**Post date:** [February 6, 2025, 12:18pm UTC](https://forums.unrealengine.com/t/how-to-fix-turnkey-returned-an-error-code-1/2302457/6 "2025-02-06T12:18:38Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![FrostyJas](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/frostyjas/32/1194640_2.png) [@FrostyJas](https://forums.unrealengine.com/u/FrostyJas)\
**Post date:** [February 9, 2025, 12:18pm UTC](https://forums.unrealengine.com/t/how-to-fix-turnkey-returned-an-error-code-1/2302457/7 "2025-02-09T12:18:14Z")

</div>

Even updating your dotnet?

---

<div class="post-metadata">

**Author:** ![Ermisnightninja2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ermisnightninja2](https://forums.unrealengine.com/u/Ermisnightninja2)\
**Post date:** [February 15, 2025, 2:56pm UTC](https://forums.unrealengine.com/t/how-to-fix-turnkey-returned-an-error-code-1/2302457/8 "2025-02-15T14:56:45Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![FrostyJas](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/frostyjas/32/1194640_2.png) [@FrostyJas](https://forums.unrealengine.com/u/FrostyJas)\
**Post date:** [February 16, 2025, 2:01pm UTC](https://forums.unrealengine.com/t/how-to-fix-turnkey-returned-an-error-code-1/2302457/9 "2025-02-16T14:01:47Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Ermisnightninja2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ermisnightninja2](https://forums.unrealengine.com/u/Ermisnightninja2)\
**Post date:** [February 17, 2025, 4:40pm UTC](https://forums.unrealengine.com/t/how-to-fix-turnkey-returned-an-error-code-1/2302457/10 "2025-02-17T16:40:36Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![3dRaven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/3draven/32/906552_2.png) [@3dRaven](https://forums.unrealengine.com/u/3dRaven)\
**Post date:** [February 17, 2025, 5:43pm UTC](https://forums.unrealengine.com/t/how-to-fix-turnkey-returned-an-error-code-1/2302457/11 "2025-02-17T17:43:59Z")

</div>

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](https://dev.epicgames.com/documentation/en-us/unreal-engine/setting-up-visual-studio-development-environment-for-cplusplus-projects-in-unreal-engine)

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

```auto
<?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

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/5/4/0544eff2e463b35b88cbc20ddb96fa0398bdf72e.png)

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

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/2/a/22a60ba5a1a2e034fc1a4ebc2a5bc3b3ca4c90f0.png)

---

<div class="post-metadata">

**Author:** ![FrostyJas](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/frostyjas/32/1194640_2.png) [@FrostyJas](https://forums.unrealengine.com/u/FrostyJas)\
**Post date:** [February 24, 2025, 5:28am UTC](https://forums.unrealengine.com/t/how-to-fix-turnkey-returned-an-error-code-1/2302457/12 "2025-02-24T05:28:11Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [March 26, 2025, 5:28am UTC](https://forums.unrealengine.com/t/how-to-fix-turnkey-returned-an-error-code-1/2302457/13 "2025-03-26T05:28:57Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
