I’m using the binary version of the 4.4 Editor on OS X. I began to package my game for iOS, selected Shipping, and am using an AdHoc Provisioning Profile. I had the following error when packaging my game for iOS:
MainFrameActions: Packaging (iOS): BuildCommand.Execute: ERROR: BUILD FAILED
MainFrameActions: Packaging (iOS): Program.Main: ERROR: AutomationTool terminated with exception:
MainFrameActions: Packaging (iOS): Program.Main: ERROR: Exception in IOS.Automation: ARCHIVE FAILED - /Volumes/My Book 2TB/Nacelle Games project backups/Mattie Math Bot backups/MattieMathBot_Beta_Build_iOS_OSX/MattieMathBot_repo_svn_wc/trunk/MattieMathBot/Binaries/IOS/MattieMathBot-IOS-Shipping.ipa was not found
MainFrameActions: Packaging (iOS): Stacktrace: at IOSPlatform.GetFilesToArchive (AutomationTool.ProjectParams Params, DeploymentContext SC) [0x00000] in :0
MainFrameActions: Packaging (iOS): at Project.CreateArchiveManifest (AutomationTool.ProjectParams Params, DeploymentContext SC) [0x00000] in :0
MainFrameActions: Packaging (iOS): at Project.Archive (AutomationTool.ProjectParams Params) [0x00000] in :0
MainFrameActions: Packaging (iOS): at BuildCookRun.DoBuildCookRun (AutomationTool.ProjectParams Params) [0x00000] in :0
MainFrameActions: Packaging (iOS): at BuildCookRun.ExecuteBuild () [0x00000] in :0
MainFrameActions: Packaging (iOS): at BuildCommand.Execute () [0x00000] in :0
MainFrameActions: Packaging (iOS): Program.Main: ERROR: ARCHIVE FAILED - /Volumes/My Book 2TB/Nacelle Games project backups/Mattie Math Bot backups/MattieMathBot_Beta_Build_iOS_OSX/MattieMathBot_repo_svn_wc/trunk/MattieMathBot/Binaries/IOS/MattieMathBot-IOS-Shipping.ipa was not found
MainFrameActions: Packaging (iOS): ProcessManager.KillAll: Trying to kill 0 spawned processes.
MainFrameActions: Packaging (iOS): Program.Main: AutomationTool exiting with ExitCode=1
MainFrameActions: Packaging (iOS): Domain_ProcessExit
MainFrameActions: Packaging (iOS): ProcessManager.KillAll: Trying to kill 0 spawned processes.
MainFrameActions: Packaging (iOS): RunUAT ERROR: AutomationTool was unable to run successfully.
Now, the packaging doesn’t appear to have actually failed… Which is the weird part. I was able to find the packaged IPA file at this location:
/Volumes/My Book 2TB/Nacelle Games project backups/Mattie Math Bot backups/MattieMathBot_Beta_Build_iOS_OSX/MattieMathBot_repo_svn_wc/trunk/MattieMathBot/Binaries/IOS/Distro_MattieMathBot-IOS-Shipping.ipa
You can see that the Automator was looking for “MattieMathBot-IOS-Shipping.ipa”, but what was actually created was “Distro_MattieMathBot-IOS-Shipping.ipa”.
Inside the Binaries/IOS folder I was left with the Payload folder, the Distro_MattieMathBot-IOS-Shipping.ipa file, and a MattieMathBot-IOS-Shipping file that OS X calls a “Unix Executable File (32-bit)” Kind of file.
I was able to successfully install the Distro_MattieMathBot-IOS-Shipping.ipa file on an iPad Air running iOS 7.1, and it runs perfectly fine.
Last detail I wanted to add; it may just be a coincidence, but the IPA file I was able to install has the “Distro_” prefix on it, which is the same prefix I had put on the AdHoc Provisioning Profile (per instructions here: https://docs.unrealengine.com/latest...l#distribution).
Thank you for reporting this issue. Would you be able to share your log files for the project and you DXdiag so that I may further investigate the issue?
Also, are there any particular steps I can try to reproduce this issue? Any additional information would be greatly appreciated.
[2014.08.17-05.14.58:391][ 43]MainFrameActions: Packaging (iOS): Program.Main: ERROR: Exception in IOS.Automation: ARCHIVE FAILED - /Volumes/My Book 2TB/Nacelle Games project backups/Mattie Math Bot backups/MattieMathBot_Beta_Build_iOS_OSX/MattieMathBot_repo_svn_wc/trunk/MattieMathBot/Binaries/IOS/MattieMathBot-IOS-Shipping.ipa was not found
When I went to the file path /Volumes/My Book 2TB/Nacelle Games project backups/Mattie Math Bot backups/MattieMathBot_Beta_Build_iOS_OSX/MattieMathBot_repo_svn_wc/trunk/MattieMathBot/Binaries/IOS there was an ipa file with the title “Distro_MattieMathBot-IOS-Shipping.ipa”; I think what’s throwing it is that the ipa being generated has the “Distro_” prefix on it.
The ipa that was generated, the one with the “Distro_” prefix, will install and run perfectly. I installed it on an iPad Air and an iPad (3rd Gen.), both running iOS 7.1
Thank you again for reporting this issue. I have submitted a bug report for this issue and placed it into our Database so that it may be resolved in a future release.
I have just received work back about your issue. Ad Hoc provisions are not currently supported in UE4. That is what was causing the error. We are unsure as to when, or even if, Ad Hoc integration will be supported at this time.
Even though the Automator failed, a valid IPA was generated using the AdHoc Provisioning Profile.
Also, the same thing happened using an App Store Distribution Provisioning Profile. A valid IPA is made, but it is in the Binaries/IOS folder, and not the Build folder. And there is an Automator error.
Actually, I see the problem. When we create a distribution ipa for a game with no code, we are properly setting the IPA name, but with code in the game, we just aren’t setting the name properly on Mac. I’ll get a fix in shortly. The IPA tho should be fine.
Regarding the Distro_ on the ad hoc, it looks like you selected the distribution option in the package settings and so it will look for a provision with the Distro_ to copy and then use. However, that option is intended for when you actually are ready to put the app on the app store, so the bug here is that it used the ad hoc provision when it really should have used a provision for the app which would allow it to be put to the app store (which means the IPA shouldn’t have worked on your device as it wouldn’t be provisioned correctly).
edit: I stand corrected. It should work as Ad Hoc mimics app store distribution for a company. Looks like we do support Ad Hoc