# DLCのビルドで「Failed to find files」と言われてビルドできない

**URL:** <https://forums.unrealengine.com/t/dlc-failed-to-find-files/346028>\
**Category:** Mobile\
**Tags:** dlc, unreal-engine, iOS, Android, question\
**Created:** [February 1, 2016, 9:38am UTC](https://forums.unrealengine.com/t/dlc-failed-to-find-files/346028 "2016-02-01T09:38:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon2845476](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anon2845476](https://forums.unrealengine.com/u/anon2845476)\
**Post date:** [February 1, 2016, 9:38am UTC](https://forums.unrealengine.com/t/dlc-failed-to-find-files/346028/1 "2016-02-01T09:38:14Z")

</div>

現在、モバイル向けのアプリの追加コンテンツの配布にDLCの機能が使えないかと、

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — https://unrealcommunity.wiki/! You will be able to find content from...

こちらのサンプルを参考に調べているところですが、どうにもエラーの内容が分からずに困っています。

カスタムプロファイルでMyFirstModをビルドすると、

```
InternalUtils.SafeFindFiles: WARNING: Unable to Find Files in /Users/sandlot/Documents/Unreal Projects/ModSampleGame/Plugins/MyFirstMod/Saved/Cooked/IOS
InternalUtils.SafeFindFiles: WARNING: Exception in mscorlib: Directory '/Users/sandlot/Documents/Unreal Projects/ModSampleGame/Plugins/MyFirstMod/Saved/Cooked/IOS/Engine/Engine' not found.
Stacktrace: at System.IO.Directory.ValidateDirectoryListing (System.String path, System.String searchPattern, System.Boolean& stop) [0x00000] in <filename unknown>:0
  at System.IO.Directory.GetFileSystemEntries (System.String path, System.String searchPattern, FileAttributes mask, FileAttributes attrs) [0x00000] in <filename unknown>:0
  at System.IO.Directory.GetFiles (System.String path, System.String searchPattern) [0x00000] in <filename unknown>:0
  at System.IO.Directory.GetFilesRecurse (System.String path, System.String searchPattern, System.Collections.Generic.List`1 all) [0x00000] in <filename unknown>:0
  at System.IO.Directory.GetFilesRecurse (System.String path, System.String searchPattern, System.Collections.Generic.List`1 all) [0x00000] in <filename unknown>:0
  at System.IO.Directory.GetFiles (System.String path, System.String searchPattern, SearchOption searchOption) [0x00000] in <filename unknown>:0
  at AutomationTool.InternalUtils.FindFiles (System.String Path, System.String SearchPattern, Boolean Recursive, Boolean bQuiet) [0x00000] in <filename unknown>:0
  at AutomationTool.InternalUtils.SafeFindFiles (System.String Path, System.String SearchPattern, Boolean Recursive, Boolean bQuiet) [0x00000] in <filename unknown>:0
BuildCommand.Execute: ERROR: BUILD FAILED
Program.Main: ERROR: AutomationTool terminated with exception:
Program.Main: ERROR: Exception in AutomationUtils.Automation: Failed to find files in '/Users/sandlot/Documents/Unreal Projects/ModSampleGame/Plugins/MyFirstMod/Saved/Cooked/IOS'
Stacktrace: at AutomationTool.CommandUtils.FindFiles (System.String SearchPattern, Boolean Recursive, System.String[] Paths) [0x00000] in <filename unknown>:0
  at DeploymentContext.StageFiles (StagedFileType FileType, System.String InPath, System.String Wildcard, Boolean bRecursive, System.String[] ExcludeWildcard, System.String NewPath, Boolean bAllowNone, Boolean bRemap, System.String NewName, Boolean bAllowNotForLicenseesFiles, Boolean bStripFilesForOtherPlatforms) [0x00000] in <filename unknown>:0
  at Project.CreateStagingManifest (AutomationTool.ProjectParams Params, DeploymentContext SC) [0x00000] in <filename unknown>:0
  at Project.CopyBuildToStagingDirectory (AutomationTool.ProjectParams Params) [0x00000] in <filename unknown>:0
  at BuildCookRun.DoBuildCookRun (AutomationTool.ProjectParams Params) [0x00000] in <filename unknown>:0
  at BuildCookRun.ExecuteBuild () [0x00000] in <filename unknown>:0
  at BuildCommand.Execute () [0x00000] in <filename unknown>:0
Program.Main: AutomationTool exiting with ExitCode=Error_Unknown
Domain_ProcessExit
RunUAT ERROR: AutomationTool was unable to run successfully.

```

と例外が発生してしまい、「ファイルを見つけられなかった」と言われてしまいます。

クックのプラットフォームはMacNoEditor、Android、iOSを試したのですが、どれも同じエラーが出てしまいダメでした。

どなたか、同じような問題を解決して対処方法をわかる方はいらっしゃいますでしょうか？

環境は、Mac OS Xの10.11.3になります。

以上です、よろしくお願いします。

---

<div class="post-metadata">

**Author:** ![anon2845476](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anon2845476](https://forums.unrealengine.com/u/anon2845476)\
**Post date:** [February 2, 2016, 8:12am UTC](https://forums.unrealengine.com/t/dlc-failed-to-find-files/346028/2 "2016-02-02T08:12:22Z")

</div>

新しくプロジェクトを作成して、そこにMyFirstModのプラグインを追加して試してみたらpakファイルが作成されました。

原因は結局わからないのですが、

もしかしたら元のModSampleGameのプロジェクトがUE4.9で作られていたのをUE4.10で動かしていたのがダメだったかもしれません。
