[v4.7.2]Error on iOS deployment

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.Dictionary2 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.Dictionary2 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.

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

-Pete

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.Dictionary2 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.Dictionary2 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

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

-Pete

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

Hi ag858,

I am closing this thread as a duplicate of the second post you made. In the future, you can attach logs to the threads as txt files, and they are much easier to read.

Thanks very much!