Error Deploying for iOS

Hi,

I get this error while trying to deploy on Windows 10 64, using UE4.12.5 (downloaded from the launcher). I’ve tried on a couple of different hard drives, and I still get the same error. I don’t have VS installed, and the project has no C++ code in it, only blueprints.

I’ve tried:

  • deleting the saved, config and intermediate folders
  • making sure the folders are read/write
  • executing UE4editor as administrator
  • changing the staging folder to different hard drives

…but that doesn’t fix the problem. I’m using the DotNet folder from version 4.11.2, as I got another error when trying to deploy with 4.12.5. This is running 4.12.5, just downloaded from the launcher, with no plugins or anything.

LogPlayLevel: Project.CopyManifestFilesToStageDir: Copying NonUFSFiles to staging directory: C:\Users\xxx\Documents\Unreal Projects\yyy\Saved\StagedBuilds\IOS
LogPlayLevel: InternalUtils.SafeCopyFile: WARNING: SafeCopyFile Exception was Exception in mscorlib: The target file “C:\Users\xxx\Documents\Unreal Projects\yyy\Saved\StagedBuilds\IOS\cookeddata\Engine\Content\Slate…” is a directory, not a file.
LogPlayLevel: Stacktrace: at System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite, Boolean checkHost)
LogPlayLevel: at AutomationTool.InternalUtils.SafeCopyFile(String SourceName, String TargetName, Boolean bQuiet, Boolean bFilterSpecialLinesFromIniFiles)

I didn’t get that error a few minutes ago - I could deploy (using the launch button) with no issues. Then I tried to package the project and I started getting the error…and now I can’t even “launch” it. What can I do?

Hi bluemanmax,

I’m not sure why you are using the DotNet folder from version 4.11.2 when packaging from UE4.12.5 but this is not advised as far as I’m aware. (If you read to do this somewhere, please link me to that post.)

Instead, I suggest the following:

  1. Uninstall/reinstall UE4.12.5 so that the appropriate DotNet directory is present in the proper location
  2. Open a new blank third person blueprint project in UE4.12.5 and attempt to package for Windows 64 (On your Windows 10 System)
  3. In project settings, package to a folder on your Desktop
  4. If this fails, post the entire output log here for evaluation
  5. If successful, then try to package your custom project, again to a different folder on your desktop
  6. If this fails, post the entire output log here for evaluation

-.

Hi, thanks for your reply! I fixed this issue by verifying the 4.12 install (which I suppose resets the DotNet files to their original 4.12 versions).

I originally had gone to 4.11 DotNet trying to fix this issue: https://.unrealengine.com/showthread.php?115028-Building-iOS-C-project-on-PC

Now that I’m back to a clean 4.12 install (trying to package a project without C++) I’m getting that error again:

MainFrameActions: Packaging (iOS): IPhonePackager: Saving IPA …
MainFrameActions: Packaging (iOS): IPhonePackager: … Writing updated Info.plist
MainFrameActions: Packaging (iOS): IPhonePackager: IPP ERROR: Application exception: System.OutOfMemoryException: Exception of type ‘System.OutOfMemoryException’ was thrown.
MainFrameActions: Packaging (iOS): IPhonePackager: at iPhonePackager.FileOperations.ZipFileSystem.ReadAllBytes(String RelativeFilename) in d:\Build++UE4+Release-4.12+Full\Sync\Engine\Source\Programs\IOS\iPhonePackager\FileOperations.cs:line 645
MainFrameActions: Packaging (iOS): IPhonePackager: at iPhonePackager.CodeSignatureBuilder.CreateCodeResourcesDirectory(String CFBundleExecutable) in d:\Build++UE4+Release-4.12+Full\Sync\Engine\Source\Programs\IOS\iPhonePackager\CodeSigning.cs:line 601
MainFrameActions: Packaging (iOS): IPhonePackager: at iPhonePackager.CodeSignatureBuilder.PerformSigning() in d:\Build++UE4+Release-4.12+Full\Sync\Engine\Source\Programs\IOS\iPhonePackager\CodeSigning.cs:line 746
MainFrameActions: Packaging (iOS): IPhonePackager: at iPhonePackager.CookTime.RepackageIPAFromStub() in d:\Build++UE4+Release-4.12+Full\Sync\Engine\Source\Programs\IOS\iPhonePackager\CookTime.cs:line 350
MainFrameActions: Packaging (iOS): IPhonePackager: at iPhonePackager.Program.Main(String[] args) in d:\Build++UE4+Release-4.12+Full\Sync\Engine\Source\Programs\IOS\iPhonePackager\iPhonePackager.cs:line 783

Is this a blank blueprint template project? If not, please try with a blank blueprint project and if it fails, cut and past the entire output log in a text file and link to your reply.

Hi bluemanmax,

Since we have not heard back from you in a while we are marking this post “resolved” for tracking purposes. However, if you are still experiencing this issue, please respond with the results from a blank blueprint project as requested above and we will continue to investigate.

Thanks,

.