[BUG] Error packaging w/ AdHoc Prov Profile: Exception in IOS.Automation: ARCHIVE FAILED

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

I’m guessing this is some sort of bug?

Howdy Jonathan,

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.

Thanks and have a great day!

Here is a download link to the log file that contains the Automation Tool error (it’s too big to upload to AnswerHub): https://dl.dropboxusercontent.com/s/msc0uaywq443jh9/MattieMathBot-backup-2014.08.20-03.27.38.log?dl=1

I can’t do DXDiag info, since I was on OS X when the error occurred, what specific info do you want on system specs?

For your mac you can go to the apple menu>about this mac>more info and let me know the following:

OSX version

Processor

Amount of RAM

Video Card

Drivers (version)

The main problem that the log detailed was this:

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

OSX version: 10.9.4

Processor Name: Intel Core i7
Processor Speed: 2.6 GHz

Amount of RAM: Two (2) 8GB, DDR3,1600 MHz for a total of 16GB of RAM

Video Card (the Nvidia one is the active one when the Editor is running):

Chipset Model: Intel HD Graphics 4000
Type: GPU
Bus: Built-In
VRAM (Dynamic, Max): 1024 MB

Chipset Model: NVIDIA GeForce GT 650M
Type: GPU
Bus: PCIe
PCIe Lane Width: x8
VRAM (Total): 1024 MB
Vendor: NVIDIA (0x10de)

Drivers (version): this is what I could find, let me know if that isn’t what you need:
ROM Revision: 3688
gMux Version: 3.2.19 [3.2.8]

The ipa that was generated, the one with the “Distro_” prefix, will install and run perfectly. I installed it on an and an iPad (3rd Gen.), both running iOS 7.1

Howdy Jonathan,

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.

Thanks and have a great day!

No problem. Happy to help.

Hey Jonathan,

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.

Thanks!

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 :slight_smile:

-Pete

Thanks for looking into it. You guys are the best.

Thanks!!!

I have a fix for this. I’ll see if I can get it in to a hot fix.

-Pete