# \[v4.7.2\]Error on iOS deployment

**URL:** <https://forums.unrealengine.com/t/v4-7-2-error-on-ios-deployment/310686>\
**Category:** Mobile\
**Tags:** unreal-engine, iOS, editor, UE4, question\
**Created:** [March 12, 2015, 6:06pm UTC](https://forums.unrealengine.com/t/v4-7-2-error-on-ios-deployment/310686 "2015-03-12T18:06:30Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ag858](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ag858](https://forums.unrealengine.com/u/ag858)\
**Post date:** [March 12, 2015, 6:06pm UTC](https://forums.unrealengine.com/t/v4-7-2-error-on-ios-deployment/310686/1 "2015-03-12T18:06:30Z")

</div>

When selecting Launch \> to iPad from editor in 4.7 the launch fails with the following log output:

LogPlayLevel: mono: Device ‘Adam’s iPad’ with id b46fbbc16b1cd81e028684aa1eee5787f397dce1 is being checked against b46fbbc16b1cd81e028684aa1eee5787f397dce1.  
LogPlayLevel: mono: [DD] Transferring IPA to device ‘Adam’s iPad’ …  
LogPlayLevel: mono:  
LogPlayLevel: mono: Unhandled Exception:  
LogPlayLevel: mono: System.IO.IOException: AFCFileRefOpen failed with error 7  
LogPlayLevel: mono: at Manzana.iPhoneFile.Open (Manzana.MobileDeviceInstance phone, System.String path, FileAccess openmode) [0x00000] in :0  
LogPlayLevel: mono: at Manzana.iPhoneFile.OpenWrite (Manzana.MobileDeviceInstance phone, System.String path) [0x00000] in :0  
LogPlayLevel: mono: at Manzana.MobileDeviceInstance.CopyFileToPhone (System.String PathOnPC, System.String PathOnPhone, Int32 ChunkSize) [0x00000] in :0  
LogPlayLevel: mono: at Manzana.MobileDeviceInstance.CopyFileToPhone (System.String PathOnPC, System.String PathOnPhone) [0x00000] in :0  
LogPlayLevel: mono: at Manzana.MobileDeviceInstance.CopyFileToPublicStaging (System.String SourceFile) [0x00000] in :0  
LogPlayLevel: mono: at DeploymentServer.DeploymentImplementation+\<\>c\_\_DisplayClass7.b\_\_6 (Manzana.MobileDeviceInstance Device) [0x00000] in :0  
LogPlayLevel: mono: at DeploymentServer.DeploymentImplementation.PerformActionOnAllDevices (UInt32 DelayEnumerationPeriodMS, DeploymentServer.PerformDeviceActionDelegate PerDeviceWork) [0x00000] in :0  
LogPlayLevel: mono: at DeploymentServer.DeploymentImplementation.InstallIPAOnDevice (System.String IPAPath) [0x00000] in :0  
LogPlayLevel: mono: at (wrapper remoting-invoke-with-check) DeploymentServer.DeploymentImplementation:InstallIPAOnDevice (string)  
LogPlayLevel: mono: at DeploymentServer.Program.RunCommand () [0x00000] in :0  
LogPlayLevel: mono: at DeploymentServer.Program+\<\>c\_\_DisplayClass1.b\_\_0 () [0x00000] in :0  
LogPlayLevel: mono: at System.Threading.Thread.StartInternal () [0x00000] in :0  
LogPlayLevel: mono: [ERROR] FATAL UNHANDLED EXCEPTION: System.IO.IOException: AFCFileRefOpen failed with error 7  
LogPlayLevel: mono: at Manzana.iPhoneFile.Open (Manzana.MobileDeviceInstance phone, System.String path, FileAccess openmode) [0x00000] in :0  
LogPlayLevel: mono: at Manzana.iPhoneFile.OpenWrite (Manzana.MobileDeviceInstance phone, System.String path) [0x00000] in :0  
LogPlayLevel: mono: at Manzana.MobileDeviceInstance.CopyFileToPhone (System.String PathOnPC, System.String PathOnPhone, Int32 ChunkSize) [0x00000] in :0  
LogPlayLevel: mono: at Manzana.MobileDeviceInstance.CopyFileToPhone (System.String PathOnPC, System.String PathOnPhone) [0x00000] in :0  
LogPlayLevel: mono: at Manzana.MobileDeviceInstance.CopyFileToPublicStaging (System.String SourceFile) [0x00000] in :0  
LogPlayLevel: mono: at DeploymentServer.DeploymentImplementation+\<\>c\_\_DisplayClass7.b\_\_6 (Manzana.MobileDeviceInstance Device) [0x00000] in :0  
LogPlayLevel: mono: at DeploymentServer.DeploymentImplementation.PerformActionOnAllDevices (UInt32 DelayEnumerationPeriodMS, DeploymentServer.PerformDeviceActionDelegate PerDeviceWork) [0x00000] in :0  
LogPlayLevel: mono: at DeploymentServer.DeploymentImplementation.InstallIPAOnDevice (System.String IPAPath) [0x00000] in :0  
LogPlayLevel: mono: at (wrapper remoting-invoke-with-check) DeploymentServer.DeploymentImplementation:InstallIPAOnDevice (string)  
LogPlayLevel: mono: at DeploymentServer.Program.RunCommand () [0x00000] in :0  
LogPlayLevel: mono: at DeploymentServer.Program+\<\>c\_\_DisplayClass1.b\_\_0 () [0x00000] in :0  
LogPlayLevel: mono: at System.Threading.Thread.StartInternal () [0x00000] in :0  
LogPlayLevel: CommandUtils.Run: Run: Took 1.542197s to run mono, ExitCode=1  
LogPlayLevel: ErrorReporter.Error: ERROR: AutomationTool error: Command failed (Result:1): /Users/Shared/UnrealEngine/4.7/Engine/Binaries/DotNET/IOS/DeploymentServer.exe Install -ipa “/Users/adamgraham/Documents/Unreal Projects/BricksBreakingGame/Binaries/IOS/BricksBreakingGame.ipa” -device b46fbbc16b1cd81e028684aa1eee5787f397dce1 -additionalcommandline "-SessionId=DDE2BE32304AA1EBDB2B37A28981133B -SessionOwner=adamgraham -SessionName=‘Play On Device’ ". See logfile for details: ‘DeploymentServer.12.txt’  
LogPlayLevel: BuildCommand.Execute: ERROR: BUILD FAILED  
LogPlayLevel: Program.Main: ERROR: AutomationTool terminated with exception:  
LogPlayLevel: Program.Main: ERROR: Exception in AutomationTool: Command failed (Result:1): /Users/Shared/UnrealEngine/4.7/Engine/Binaries/DotNET/IOS/DeploymentServer.exe Install -ipa “/Users/adamgraham/Documents/Unreal Projects/BricksBreakingGame/Binaries/IOS/BricksBreakingGame.ipa” -device b46fbbc16b1cd81e028684aa1eee5787f397dce1 -additionalcommandline "-SessionId=DDE2BE32304AA1EBDB2B37A28981133B -SessionOwner=adamgraham -SessionName=‘Play On Device’ ". See logfile for details: ‘DeploymentServer.12.txt’  
LogPlayLevel: Stacktrace: at AutomationTool.CommandUtils.RunAndLog (System.String App, System.String CommandLine, System.String Logfile, Int32 MaxSuccessCode, System.String Input, ERunOptions Options, System.Collections.Generic.Dictionary`2 EnvVars) [0x00000] in :0 LogPlayLevel: at AutomationTool.CommandUtils.RunAndLog (AutomationTool.CommandEnvironment Env, System.String App, System.String CommandLine, System.String LogName, Int32 MaxSuccessCode, System.String Input, ERunOptions Options, System.Collections.Generic.Dictionary`2 EnvVars) [0x00000] in :0  
LogPlayLevel: at IOSPlatform.Deploy (AutomationTool.ProjectParams Params, DeploymentContext SC) [0x00000] in :0  
LogPlayLevel: at Project.Deploy (AutomationTool.ProjectParams Params) [0x00000] in :0  
LogPlayLevel: at BuildCookRun.DoBuildCookRun (AutomationTool.ProjectParams Params) [0x00000] in :0  
LogPlayLevel: at BuildCookRun.ExecuteBuild () [0x00000] in :0  
LogPlayLevel: at BuildCommand.Execute () [0x00000] in :0  
LogPlayLevel: Program.Main: ERROR: Command failed (Result:1): /Users/Shared/UnrealEngine/4.7/Engine/Binaries/DotNET/IOS/DeploymentServer.exe Install -ipa “/Users/adamgraham/Documents/Unreal Projects/BricksBreakingGame/Binaries/IOS/BricksBreakingGame.ipa” -device b46fbbc16b1cd81e028684aa1eee5787f397dce1 -additionalcommandline "-SessionId=DDE2BE32304AA1EBDB2B37A28981133B -SessionOwner=adamgraham -SessionName=‘Play On Device’ ". See logfile for details: ‘DeploymentServer.12.txt’  
LogPlayLevel: ProcessManager.KillAll: Trying to kill 0 spawned processes.  
LogPlayLevel: Program.Main: AutomationTool exiting with ExitCode=1  
LogPlayLevel: Domain\_ProcessExit  
LogPlayLevel: ProcessManager.KillAll: Trying to kill 0 spawned processes.  
LogPlayLevel: Completed Launch On Stage: Deploy Task, Time: 35.484882  
LogPlayLevel: RunUAT ERROR: AutomationTool was unable to run successfully.

I don’t experience this error when launching to iOS in version 4.6.1

Running on hardware 2012 Mac Mini (HD4000), Xcode 6.1.1 installed and with valid iOS provision certificate.

---

<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:** [March 12, 2015, 6:22pm UTC](https://forums.unrealengine.com/t/v4-7-2-error-on-ios-deployment/310686/2 "2015-03-12T18:22:25Z")

</div>

We just figured out this error yesterday and a fix is forthcoming in the next point release.

-Pete

---

<div class="post-metadata">

**Author:** ![ag858](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ag858](https://forums.unrealengine.com/u/ag858)\
**Post date:** [March 18, 2015, 1:49am UTC](https://forums.unrealengine.com/t/v4-7-2-error-on-ios-deployment/310686/3 "2015-03-18T01:49:00Z")

</div>

I tried again with 4.7.3 and got the following error:  
LogPlayLevel: Stacktrace: at AutomationTool.CommandUtils.RunAndLog (System.String App, System.String CommandLine, System.String Logfile, Int32 MaxSuccessCode, System.String Input, ERunOptions Options, System.Collections.Generic.Dictionary`2 EnvVars) [0x00000] in :0 LogPlayLevel: at AutomationTool.CommandUtils.RunAndLog (AutomationTool.CommandEnvironment Env, System.String App, System.String CommandLine, System.String LogName, Int32 MaxSuccessCode, System.String Input, ERunOptions Options, System.Collections.Generic.Dictionary`2 EnvVars) [0x00000] in :0 LogPlayLevel: at IOSPlatform.Deploy (AutomationTool.ProjectParams Params, DeploymentContext SC) [0x00000] in :0 LogPlayLevel: at Project.Deploy (AutomationTool.ProjectParams Params) [0x00000] in :0 LogPlayLevel: at BuildCookRun.DoBuildCookRun (AutomationTool.ProjectParams Params) [0x00000] in :0 LogPlayLevel: at BuildCookRun.ExecuteBuild () [0x00000] in :0 LogPlayLevel: at BuildCommand.Execute () [0x00000] in :0 LogPlayLevel: Program.Main: ERROR: Command failed (Result:1): /Users/Shared/UnrealEngine/4.7/Engine/Binaries/DotNET/IOS/DeploymentServer.exe Install -ipa “/Users/adamgraham/Documents/Unreal Projects/BricksBreakingGame/Binaries/IOS/BricksBreakingGame.ipa” -device b46fbbc16b1cd81e028684aa1eee5787f397dce1 -additionalcommandline "-SessionId=D87063FC664D8AD9A22BA8BC4D945CFB -SessionOwner=adamgraham -SessionName=‘Play On Device’ ". See logfile for details: ‘DeploymentServer.18.txt’ LogPlayLevel: ProcessManager.KillAll: Trying to kill 0 spawned processes. LogPlayLevel: Program.Main: AutomationTool exiting with ExitCode=1 LogPlayLevel: Domain\_ProcessExit LogPlayLevel: ProcessManager.KillAll: Trying to kill 0 spawned processes. LogPlayLevel: Completed Launch On Stage: Deploy Task, Time: 14.947217 LogPlayLevel: RunUAT ERROR: AutomationTool was unable to run successfully. PackagingResults:Error: Error Launch failed! Unknown Error

---

<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:** [March 18, 2015, 1:07pm UTC](https://forums.unrealengine.com/t/v4-7-2-error-on-ios-deployment/310686/4 "2015-03-18T13:07:06Z")

</div>

Could you post a full log? I added more output to help me debug in case it still occurred.

-Pete

---

<div class="post-metadata">

**Author:** ![ag858](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ag858](https://forums.unrealengine.com/u/ag858)\
**Post date:** [March 18, 2015, 7:47pm UTC](https://forums.unrealengine.com/t/v4-7-2-error-on-ios-deployment/310686/5 "2015-03-18T19:47:17Z")

</div>

Hi, the full log exceeded the character limit of answers so I started a new question and posted the log here →

> **[\[v4.7.3\] iOS Error](https://forums.unrealengine.com/questions/195367/v473-ios-error.html)**
>
> (Continued from https://answers.unrealengine.com/questions/190679/v472error-on-ios-deployment.html#comment-195013-form) LogInit: Version: 4.7.3-2479750+++depot+UE4-Releases+4.7 LogInit: API Version: 2455222 LogInit: Compiled (64-bit): Mar 15 2015...

---

<div class="post-metadata">

**Author:** ![wittlief\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@wittlief\_1](https://forums.unrealengine.com/u/wittlief_1)\
**Post date:** [April 3, 2015, 9:28pm UTC](https://forums.unrealengine.com/t/v4-7-2-error-on-ios-deployment/310686/6 "2015-04-03T21:28:38Z")

</div>

Hi ag858,

I am closing this thread as a duplicate of [the second post you made](https://answers.unrealengine.com/questions/195367/v473-ios-error.html). In the future, you can attach logs to the threads as txt files, and they are much easier to read.

Thanks very much!
