# \[4.8 P2\] iOS cook fails when launching

**URL:** <https://forums.unrealengine.com/t/4-8-p2-ios-cook-fails-when-launching/318586>\
**Category:** Mobile\
**Tags:** unreal-engine, iOS, bug-report, editor, question\
**Created:** [May 14, 2015, 11:42am UTC](https://forums.unrealengine.com/t/4-8-p2-ios-cook-fails-when-launching/318586 "2015-05-14T11:42:15Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![TommyBear](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TommyBear](https://forums.unrealengine.com/u/TommyBear)\
**Post date:** [May 14, 2015, 11:42am UTC](https://forums.unrealengine.com/t/4-8-p2-ios-cook-fails-when-launching/318586/1 "2015-05-14T11:42:15Z")

</div>

Hi Guys,

Deployment to iOS is still broken for me. Works fine on 4.7.6. Currently on OSX 10.10.3. Getting this:

```
LogPlayLevel: CommandUtils.Run: Run: Took 11.296404s to run UE4Editor, ExitCode=139
LogPlayLevel: InternalUtils.SafeCopyFile: SafeCopyFile /Users/Shared/UnrealEngine/4.8/Engine/Programs/AutomationTool/Saved/Cook.txt /Users/thomasmayer/Library/Logs/Unreal Engine/LocalBuildLogs/Cook.8.txt
LogPlayLevel: InternalUtils.SafeDeleteFile: SafeDeleteFile /Users/Shared/UnrealEngine/4.8/Engine/Programs/AutomationTool/Saved/Cook.txt
LogPlayLevel: Project.Cook: Cook failed. Deleting cooked data.
LogPlayLevel: ErrorReporter.Error: ERROR: AutomationTool error: Cook failed.
LogPlayLevel: BuildCommand.Execute: ERROR: BUILD FAILED
LogPlayLevel: Program.Main: ERROR: AutomationTool terminated with exception:
LogPlayLevel: Program.Main: ERROR: Exception in AutomationTool: BUILD FAILED: Failed while running Cook for /Users/thomasmayer/Documents/Unreal Projects/TestiOS/TestiOS.uproject; see log /Users/thomasmayer/Library/Logs/Unreal Engine/LocalBuildLogs/Cook.8.txt
LogPlayLevel: Stacktrace: at AutomationTool.CommandUtils.RunCommandlet (System.String ProjectName, System.String UE4Exe, System.String Commandlet, System.String Parameters) [0x00000] in :0
LogPlayLevel: at AutomationTool.CommandUtils.CookCommandlet (System.String ProjectName, System.String UE4Exe, System.String[] Maps, System.String[] Dirs, System.String InternationalizationPreset, System.String[] Cultures, System.String TargetPlatform, System.String Parameters) [0x00000] in :0
LogPlayLevel: at Project.Cook (AutomationTool.ProjectParams Params) [0x00000] in :0
LogPlayLevel: Program.Main: ERROR: BUILD FAILED: Failed while running Cook for /Users/thomasmayer/Documents/Unreal Projects/TestiOS/TestiOS.uproject; see log /Users/thomasmayer/Library/Logs/Unreal Engine/LocalBuildLogs/Cook.8.txt
LogPlayLevel: Program.Main: AutomationTool exiting with ExitCode=25
LogPlayLevel: Domain_ProcessExit
LogPlayLevel: Completed Launch On Stage: Cook Task, Time: 10.894131
LogPlayLevel: RunUAT ERROR: AutomationTool was unable to run successfully.
PackagingResults:Error: Error Launch failed! Unknown Cook Failure

```

Steps to reproduce:

- Open 4.8 P2 on OSX
- Create new scalable 2d/3d mobile project
- Make sure you are set up to deploy to an iDevice
- Select your device in the launch dropdown in the toolbar to deploy.
- Note the unknown cook error

Tommy.

---

<div class="post-metadata">

**Author:** ![AlwysAnrchy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AlwysAnrchy](https://forums.unrealengine.com/u/AlwysAnrchy)\
**Post date:** [May 15, 2015, 2:04pm UTC](https://forums.unrealengine.com/t/4-8-p2-ios-cook-fails-when-launching/318586/2 "2015-05-15T14:04:01Z")

</div>

Howdy TommyBear,

Thank you for reporting the error that you have been seeing. I have tested this issue internally and have been able to replicate this issue with ease. I have also tested this issue on our internal build and it is still occurring. I have written a bug report and have entered Jira UE-15659 into our bug database so that the issue may be addressed in a future release. At this time, I am unsure as to when this issue will be release but I will be sure to keep you posted when I know more.

Thanks and have a great day!

---

<div class="post-metadata">

**Author:** ![Ravlek](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ravlek](https://forums.unrealengine.com/u/Ravlek)\
**Post date:** [May 15, 2015, 2:38pm UTC](https://forums.unrealengine.com/t/4-8-p2-ios-cook-fails-when-launching/318586/3 "2015-05-15T14:38:39Z")

</div>

Could you provide the whole log for your failure? While we have reproduced a failure here locally, there isn’t enough information in the above log to determine if it is the same failure or a different one.

-Pete

---

<div class="post-metadata">

**Author:** ![TommyBear](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TommyBear](https://forums.unrealengine.com/u/TommyBear)\
**Post date:** [May 16, 2015, 1:08am UTC](https://forums.unrealengine.com/t/4-8-p2-ios-cook-fails-when-launching/318586/4 "2015-05-16T01:08:01Z")

</div>

Awesome! Thank you very much Sean!

---

<div class="post-metadata">

**Author:** ![TommyBear](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TommyBear](https://forums.unrealengine.com/u/TommyBear)\
**Post date:** [May 16, 2015, 1:32am UTC](https://forums.unrealengine.com/t/4-8-p2-ios-cook-fails-when-launching/318586/5 "2015-05-16T01:32:18Z")

</div>

Hi Pete! Not a problem. Here it is. Sensitive info is marked out with XXXXXXX.

Tommy.link text

---

<div class="post-metadata">

**Author:** ![TommyBear](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TommyBear](https://forums.unrealengine.com/u/TommyBear)\
**Post date:** [May 16, 2015, 1:36am UTC](https://forums.unrealengine.com/t/4-8-p2-ios-cook-fails-when-launching/318586/6 "2015-05-16T01:36:19Z")

</div>

OK, turns out that if you quit the editor and load back up, the problem goes away. This is at least a workaround 🙂

Tommy.
