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 log? actual error is going to be above portion that you have posted.

-Pete

Hi Pete,

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

link text

Ok so here is 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 device you are deploying to is not specified in provision. Could you verify device is part of 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 device is listed in provisioning profile. 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 correct certificate?)

Thanks!

There is a bug in latest preview where on a mac certificate being selected is not being highlighted correctly. That is fixed in next preview. Do you still have preview 4? Can you post a log from that successful run? I might be able to diagnose problem by looking at 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 Bundle Information on project settings page. We now try to match company id correctly and maybe something is not quite set up correctly there.

-Pete

Is there a space in 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 same device.

yeah, that looks ok. This is interesting though :

Using project launcher I get 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, .ipa file does not exist…

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

right? looks like it doesn’t like " "

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

Ya, I meant remove 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 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 GitHub Source, but I’d rather avoid that :wink: I have stripped down project, removed most of 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 provision edge cases to make it as seamless as possible for everyone.

-Pete

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

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

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

Hope it helps.

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

-Pete