4.7 preview 6, fails when deploying to connected iOS device

“requested by Stephen Ellis”

Mac OS 10.10.2
Mac Pro (Late 2013)

Fails when trying to launch on a connected (iPad) device. Code signing works, but deployment returns an Unknown error.

LogPlayLevel: CommandUtils.Run: Run: Took 9.094279s 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/xxx/Documents/Development/BotanyGame/_prototypes/BotanyGame_P6 4.7/Binaries/IOS/BotanyGame_P6.ipa” -device 6b9ebec8a29a105a0e3299735cb93bb982731318 -additionalcommandline "-SessionId=1182199141411E2453A79BA5CEC83779 -SessionOwner=xxxx -SessionName=‘Play On Device’ ". See logfile for details: ‘DeploymentServer.138.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/xxxx/Documents/Development/BotanyGame/_prototypes/BotanyGame_P6 4.7/Binaries/IOS/BotanyGame_P6.ipa” -device 6b9ebec8a29a105a0e3299735cb93bb982731318 -additionalcommandline "-SessionId=1182199141411E2453A79BA5CEC83779 -SessionOwner=xxxx -SessionName=‘Play On Device’ ". See logfile for details: ‘DeploymentServer.138.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/xxxx/Documents/Development/BotanyGame/_prototypes/BotanyGame_P6 4.7/Binaries/IOS/BotanyGame_P6.ipa” -device 6b9ebec8a29a105a0e3299735cb93bb982731318 -additionalcommandline "-SessionId=1182199141411E2453A79BA5CEC83779 -SessionOwner=xxxx -SessionName=‘Play On Device’ ". See logfile for details: ‘DeploymentServer.138.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: 19.785783
LogPlayLevel: RunUAT ERROR: AutomationTool was unable to run successfully.
PackagingResults:Error: Error Launch failed! Unknown Error

Can you post more of the log? The actual error is going to be above the portion that you have posted.

-Pete

Hi Pete,

No problem, here’s the full log (attached).

link text

Ok so here is the issue:

LogPlayLevel: mono: [DD] Installing IPA on device ‘xxxx???s iPad’ …

LogPlayLevel: mono: [DD] … Install is 5% complete at phase ‘CreatingStagingDirectory’

LogPlayLevel: mono: [DD] … Install is 15% complete at phase ‘ExtractingPackage’

LogPlayLevel: mono: [DD] … Install is 20% complete at phase ‘InspectingPackage’

LogPlayLevel: mono: [DD] … Install is 20% complete at phase ‘TakingInstallLock’

LogPlayLevel: mono: [DD] … Install is 30% complete at phase ‘PreflightingApplication’

LogPlayLevel: mono: [DD] … Install is 30% complete at phase ‘InstallingEmbeddedProfile’

LogPlayLevel: mono: [DD] … Install is 40% complete at phase ‘VerifyingApplication’

LogPlayLevel: mono: Install \ Update of “BotanyGame_P6.ipa” failed with Unknown error 0xE8000067 in 3.38 seconds

That typically means the device you are deploying to is not specified in the provision. Could you verify the device is part of the following provision:

LogPlayLevel: env: Provisioning Profile: “xxxx Ltd Development”

LogPlayLevel: env: (17056d22-ec8f-43d3-b103-adab4a8030f3)

If it is there, then we may have a different issue going on that I haven’t seen yet.

-Pete

Hi Pete,

Thanks for looking into this :

I can confirm that the device is listed in the provisioning profile. The odd thing is that this project worked with 4.7 preview 4, but hasn’t worked in preview 5 or 6.

I’ve included a screenshot (it might just be a UI defect, but it doesn’t seem to be selecting the correct certificate?)

Thanks!

There is a bug in latest preview where on a mac the certificate being selected is not being highlighted correctly. That is fixed in the next preview. Do you still have preview 4? Can you post a log from that successful run? I might be able to diagnose the problem by looking at the two logs as it is very likely you’ve uncovered something which isn’t fixed yet.

-Pete

Check to make sure bundle identifier is what you expect it to be. It’s in the Bundle Information on the project settings page. We now try to match the company id correctly and maybe something is not quite set up correctly there.

-Pete

Is there a space in the game folder? “BotanyGame_P6 4.7” If so, could you try changing that to BotanyGame_P6_4.7 and see if that fixes it.

-Pete

Sorry, I don’t have preview 4 installed anywhere.

Looks like it’s project related, I’ve just created a new BP Advanced Vehicle project and built and deployed without any problems to the same device.

yeah, that looks ok. This is interesting though :

Using the project launcher I get the following error :

Program.Main: ERROR: Exception in AutomationTool: Command failed (Result:1): /Users/Shared/UnrealEngine/4.7/Engine/Binaries/DotNET/IOS/DeploymentServer.exe Install -ipa “/Users/xxxx/Documents/Development/BotanyGame/_prototypes/BotanyGame_P6 4.7/Binaries/IOS/BotanyGame_P6.ipa” -device 6b9ebec8a29a105a0e3299735cb93bb982731318. See logfile for details: ‘DeploymentServer.154.txt’

however if I terminal to that path, the .ipa file does not exist…

The path should be /Users/xxxx/Documents/Development/BotanyGame/_prototypes/BotanyGame_P6\ 4.7/Binaries/IOS

right? looks like it doesn’t like the " "

Yep, just tried that, but it still fails with unknown file…

Ya, I meant remove the space and change it to an underscore on your drive. I’ll try a project here with a space in that folder and see what happens.

-Pete

Ok I was able to get it to deploy and run with a directory like that, so it’s nothing to do with that. That leads me back to the provision. Is there any way you could get preview 4 again? I know that is a pain, but seeing a log that works might give me some ideas.

-Pete

I guess I could try building from the GitHub Source, but I’d rather avoid that :wink: I have stripped down the project, removed most of the content and it still fails, is it worth sending you that project? It’s approx 55mb, so I can’t post it here.

Thanks so much for your help on this. I don’t think it’s necessarily worth spending too much time on this, I can probably just migrate my code and content to a new project (they seem to deploy fine in preview 6).

Actually, if you can send it over that might be helpful as I have been working a lot on trying to resolve all of the provision edge cases to make it as seamless as possible for everyone.

-Pete

I’ve sent you a private message with a link to the project. Hope it helps. and thank you for your help on this. It’s greatly appreciated.

hmmm… I didn’t seem to get the private message. Not sure why. Maybe it is too large for the messaging system.

Try this link http://reefgraphics.com/BotanyGame_P6_4.7.zip

Hope it helps.

I was able to download from that link. I’ll try to fit this in today amongst my other tasks.

-Pete