Deployment failed! iOS

I could build for iOS from Windows 8.1 machine before (UE4.8) then I’m back to Windows 7 (UE4.14)

I created a blank project to find out why packaging fails and what’s I’ve got:

LogPlayLevel: Project.Deploy: ********** DEPLOY COMMAND STARTED **********
LogPlayLevel: CommandUtils.Run: Run: E:\Program Files (x86)\Epic Games\4.14\Engine\Binaries\DotNET\IOS\DeploymentServer.exe Install -ipa "C:\Users\Pavel\Documents\Unreal Projects\blank\Binaries\IOS\blank.ipa" -device All_iOS_On_I286 -additionalcommandline "-SessionId=B1492B8A48C63AB2A233F5BA2C239BC5 -SessionOwner="Pavel" -SessionName="Launch On Device" "
LogPlayLevel: DeploymentServer: [deploy] Created deployment server.
LogPlayLevel: DeploymentServer: [DD] Trying to connect to mobile device running iOS ...
LogPlayLevel: DeploymentServer: [DD] Mobile Device 'iPad (Pavel)' connected
LogPlayLevel: DeploymentServer: Device 'iPad (Pavel)' with id fda0bac015e2f8aad7fe68b99f661c05e4a38f5c of type iPad5,3 is being checked against All_iOS_On_I286.
LogPlayLevel: DeploymentServer: [DD] Transferring IPA to device 'iPad (Pavel)' ...
LogPlayLevel: DeploymentServer: [DD]  ... Transferred 7168 KB of 134300 KB
LogPlayLevel: DeploymentServer: [DD]  ... Transferred 12288 KB of 134300 KB
LogPlayLevel: DeploymentServer: [DD]  ... Transferred 17408 KB of 134300 KB
LogPlayLevel: DeploymentServer: [DD]  ... Transferred 22528 KB of 134300 KB
LogPlayLevel: DeploymentServer: [DD]  ... Transferred 28672 KB of 134300 KB
LogPlayLevel: DeploymentServer: [DD]  ... Transferred 33792 KB of 134300 KB
LogPlayLevel: DeploymentServer: [DD]  ... Transferred 38912 KB of 134300 KB
LogPlayLevel: DeploymentServer: [DD]  ... Transferred 44032 KB of 134300 KB
LogPlayLevel: DeploymentServer: [DD]  ... Transferred 50176 KB of 134300 KB
LogPlayLevel: DeploymentServer: [DD]  ... Transferred 55296 KB of 134300 KB
LogPlayLevel: DeploymentServer: [DD]  ... Transferred 60416 KB of 134300 KB
LogPlayLevel: DeploymentServer: [DD]  ... Transferred 65536 KB of 134300 KB
LogPlayLevel: DeploymentServer: [DD]  ... Transferred 71680 KB of 134300 KB
LogPlayLevel: DeploymentServer: [DD]  ... Transferred 76800 KB of 134300 KB
LogPlayLevel: DeploymentServer: [DD]  ... Transferred 81920 KB of 134300 KB
LogPlayLevel: DeploymentServer: [DD]  ... Transferred 87040 KB of 134300 KB
LogPlayLevel: DeploymentServer: [DD]  ... Transferred 93184 KB of 134300 KB
LogPlayLevel: DeploymentServer: [DD]  ... Transferred 98304 KB of 134300 KB
LogPlayLevel: DeploymentServer: [DD]  ... Transferred 103424 KB of 134300 KB
LogPlayLevel: DeploymentServer: [DD]  ... Transferred 108544 KB of 134300 KB
LogPlayLevel: DeploymentServer: [DD]  ... Transferred 114688 KB of 134300 KB
LogPlayLevel: DeploymentServer: [DD]  ... Transferred 119808 KB of 134300 KB
LogPlayLevel: DeploymentServer: [DD]  ... Transferred 124928 KB of 134300 KB
LogPlayLevel: DeploymentServer: [DD]  ... Transferred 130048 KB of 134300 KB
LogPlayLevel: DeploymentServer:  ... Finished copying to 'PublicStaging/blank.ipa' in 11,00 s
LogPlayLevel: DeploymentServer: [DD] Installing IPA on device 'iPad (Pavel)' ...
LogPlayLevel: DeploymentServer: [DD]  ... Install is 5% complete at phase 'CreatingStagingDirectory'
LogPlayLevel: DeploymentServer: [DD]  ... Install is 15% complete at phase 'ExtractingPackage'
LogPlayLevel: DeploymentServer: [DD]  ... Install is 20% complete at phase 'InspectingPackage'
LogPlayLevel: DeploymentServer: [DD]  ... Install is 20% complete at phase 'TakingInstallLock'
LogPlayLevel: DeploymentServer: [DD]  ... Install is 30% complete at phase 'PreflightingApplication'
LogPlayLevel: DeploymentServer: [DD]  ... Install is 30% complete at phase 'InstallingEmbeddedProfile'
LogPlayLevel: DeploymentServer: [DD]  ... Install is 40% complete at phase 'VerifyingApplication'
LogPlayLevel: DeploymentServer: Install \ Update of "blank.ipa" failed with Application Verification Failed Error in 9,44 seconds
LogPlayLevel: DeploymentServer: [DD]
LogPlayLevel: DeploymentServer: Exiting.
LogPlayLevel: CommandUtils.Run: Run: Took 22,0962638s to run DeploymentServer.exe, ExitCode=1
LogPlayLevel: Program.Main: ERROR: AutomationTool terminated with exception: AutomationTool.CommandUtils+CommandFailedException: Command failed (Result:1): E:\Program Files (x86)\Epic Games\4.14\Engine\Binaries\DotNET\IOS\DeploymentServer.exe Install -ipa "C:\Users\Pavel\Documents\Unreal Projects\blank\Binaries\IOS\blank.ipa" -device All_iOS_On_I286 -additio
nalcommandline "-SessionId=B1492B8A48C63AB2A233F5BA2C239BC5 -SessionOwner="Pavel" -SessionName="Launch On Device" ". See logfile for details: 'DeploymentServer-2016.11.24-08.03.29.txt'
LogPlayLevel:    в AutomationTool.CommandUtils.RunAndLog(String App, String CommandLine, String Logfile, Int32 MaxSuccessCode, String Input, ERunOptions Options, Dictionary`2 EnvVars, SpewFilterCallbackType SpewFilterCallback)
LogPlayLevel:    в AutomationTool.CommandUtils.RunAndLog(CommandEnvironment Env, String App, String CommandLine, String LogName, Int32 MaxSuccessCode, String Input, ERunOptions Options, Dictionary`2 EnvVars, SpewFilterCallbackType SpewFilterCallback)
LogPlayLevel:    в IOSPlatform.Deploy(ProjectParams Params, DeploymentContext SC)
LogPlayLevel:    в Project.Deploy(ProjectParams Params)
LogPlayLevel:    в BuildCookRun.DoBuildCookRun(ProjectParams Params)
LogPlayLevel:    в AutomationTool.BuildCommand.Execute()
LogPlayLevel:    в AutomationTool.Automation.Execute(List`1 CommandsToExecute, CaselessDictionary`1 Commands)
LogPlayLevel:    в AutomationTool.Automation.Process(String[] Arguments)
LogPlayLevel:    в AutomationTool.Program.MainProc(Object Param)
LogPlayLevel:    в AutomationTool.InternalUtils.RunSingleInstance(Func`2 Main, Object Param)
LogPlayLevel:    в AutomationTool.Program.Main()
LogPlayLevel: Program.Main: AutomationTool exiting with ExitCode=1 (Error_Unknown)
LogPlayLevel: Completed Launch On Stage: Deploy Task, Time: 29.251317
LogPlayLevel: BUILD FAILED
PackagingResults:Error: Error Deployment failed! Unknown Error

VC 2013/2015 and Common Tools for C++ and Symbols for Editor Debug are installed

Does anybody point out what’s the problem?

If I build from File->Package Project->iOS everything is ok
If I build via Launch I’ve got the error. BTW I tried to install IPA file with iTunes - the installation icon appears on iPad and then disappears.
Maybe the problem with iOS 10 (after update)?

Hi coolerinc,

If you have any C++ Code in your project you will not be able to Launch (directly) on to an iOS device as the code needs to be compiled first. Your packaged version launches on to the iOS device because, at that point, the code has been compiled. You can, however, launch directly on to an iOS device if your project is a Blueprint only device.

-.

Hi ,
my project doesn’t have C++ code, it’s a pure blueprint. Btw I tried with a blank project and there was no success too.
I can package the project as IPA but cannot instal it with iTunes - it appears and disappears in a while.

Please provide your full output logs: Open Developer Tools>Output Log>righ-click to clear. Then attempt to Launch on to your iOS Device. Cut and paste the entire contents of the Output log into a text document and attach to your response. That should give us a good idea of what is causing the issue.

Here’s 2 output logs with different rendering methods

Both logs contain the following error: IPP ERROR: Application exception: System.Security.Cryptography.CryptographicException: ??? ??? ?? ???

The following AnswerHub Posts reporting the same error have the same solution: Reinstall Certificate or Replace with a Certificate…

[4.7.2 IPP ERROR: Application exception on iOS deployment][2]

[IOS package Fail 4.7.6][3]

[Can’t deploy to device][4]

Please try updating your Certificate and let me know if this does not resolve the issue.

Hi ,

Thanks for pointing out the error and the solution!
I tried to replace a certificate with a new one and I think the problem is I must have a paid developer account because a free one doesn’t work anymore. Or maybe I do something wrong.
A year ago I did the same way via VMware on Windows:
In Xcode I created an empty project and installed it to iPad then I took a provision file here

and certificate here

Then I run IPhonePackager and Imported files
In UE4 they are Valid but not green marked and Launch ends with the same error.

Is there a way to create a working certificate for testing needs for free?

As far as I’m aware, you must have an active paid developer’s license from Apple in order to obtain the Certificates and Provisions for development as well as distribution. You would have to contact Apple to see if it is possible to obtain working certificates for development the way you’ve described above.