Exception: The required file: '/Users.../iOSSupport/Trampoline/Libraries/libiPhone-lib-il2cpp.a'

Trying to do a build to XCode. It was compiling, and working great with earlier versions. Then I did a required upgrade, and shocker, now getting errors when trying to compile. grumbles

Now I’m getting this error:

Exception: The required file: ‘/Users/dad/Unity3D/2019.3.3f1/PlaybackEngines/iOSSupport/Trampoline/Libraries/libiPhone-lib-il2cpp.a’ does not exist
UnityEditor.iOS.PostProcessiPhonePlayer.InstallIncludedFiles (UnityEditor.iOS.PostProcessiPhonePlayer+IncludedFileList includedFiles, System.String installPath, UnityEditor.iOS.PostProcessiPhonePlayer+BuildSettings bs, UnityEditor.Build.Reporting.BuildReport buildReport) (at /Users/builduser/buildslave/unity/build/PlatformDependent/iPhonePlayer/Extensions/Common/BuildPostProcessor.cs:1515)
UnityEditor.iOS.PostProcessiPhonePlayer.UpdateInstallLocation (UnityEditor.iOS.PostProcessiPhonePlayer+ProjectPaths paths, UnityEditor.iOS.PostProcessiPhonePlayer+BuildSettings bs, UnityEditor.iOS.PostProcessiPhonePlayer+IncludedFileList includedFiles, UnityEditor.Build.Reporting.BuildReport buildReport) (at /Users/builduser/buildslave/unity/build/PlatformDependent/iPhonePlayer/Extensions/Common/BuildPostProcessor.cs:1416)
UnityEditor.iOS.PostProcessiPhonePlayer.PostProcess (UnityEditor.iOS.PostProcessiPhonePlayer+BuildSettings bs, UnityEditor.iOS.PostProcessiPhonePlayer+ProjectPaths paths, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport buildReport) (at /Users/builduser/buildslave/unity/build/PlatformDependent/iPhonePlayer/Extensions/Common/BuildPostProcessor.cs:808)
UnityEditor.iOS.PostProcessiPhonePlayer.PostProcess (UnityEditor.iOS.PostProcessorSettings postProcessorSettings, UnityEditor.Modules.BuildPostProcessArgs args) (at /Users/builduser/buildslave/unity/build/PlatformDependent/iPhonePlayer/Extensions/Common/BuildPostProcessor.cs:657)
UnityEditor.iOS.iOSBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at /Users/builduser/buildslave/unity/build/PlatformDependent/iPhonePlayer/Extensions/Common/ExtensionModule.cs:45)
Rethrow as BuildFailedException: Exception of type ‘UnityEditor.Build.BuildFailedException’ was thrown.
UnityEditor.iOS.iOSBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at /Users/builduser/buildslave/unity/build/PlatformDependent/iPhonePlayer/Extensions/Common/ExtensionModule.cs:49)
UnityEditor.Modules.DefaultBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at /Users/builduser/buildslave/unity/build/Editor/Mono/Modules/DefaultBuildPostprocessor.cs:27)
UnityEditor.PostprocessBuildPlayer.Postprocess (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target, System.String installPath, System.String companyName, System.String productName, System.Int32 width, System.Int32 height, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:340)
UnityEditor.BuildPlayerWindow:BuildPlayerAndRun() (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPlayerWindow.cs:123)

What’s the magic fix?

Thanks!

My Specs:
Mac OS Catalina v 10.15.4
Unity v 2019.3.3f1

############## SOLUTION ##############

It turned out that file was located elsewhere. Fortunately it was an easy fix. Copy all of the files from the one location to the expected location.

New Location:
/Applications/Unity/PlaybackEngines/iOSSupport/Trampoline/Libraries

Expected Location:
/Users/dad/Unity3D/2019.3.3f1/PlaybackEngines/iOSSupport/Trampoline/Libraries

############## BORING DETAILS ##############

There were only 4 files in the expected directory. During the copy I chose to keep the old, and copy the new files. Now there is a total of 26 files in the expected dir. I am guessing that these files were missing due to a new Unity version installation issue. Fortunately it was an easy fix. Hopefully this helps someone else save some time. :slight_smile:

Scratch ALL of that. I got a new error after doing the above. I ended up reverting to a previous version of Unity. So frustrating guys!

Any update on this?

Yes. I upgraded to the latest version of Unity, and the problem resolved itself. IIRC, the version I upgraded to was 2019.4.0.x. Currently using 2019.4.1.1f1, and it is also working perfectly.

I’m not sure if it was this issue, or a different issue where I did this: Exported the entire project as an asset. Then I started a new game with the newer version of Unity. Then import the asset. That fixed it, but there were obviously some values that I needed to reassign in the inspector, and other little annoyances.

Hello. I am using Unity Version 2019.3.7f1 and I have exactly the problem as mentioned above! Unfortunately none of the fixes helped me at all. I have tried everything but nothing fixed the error. I am really desperate… PLEASE HELP!!

Thank you.

im having this same issue except it’s across all projects on my Mac so im thinking it’s something with the program files for sure. when I checked, the il2cppa file was there but it wasn’t downloaded. I kept attempting to “download now” which didn’t work, although I have about 20gb directly on my Mac hdd. as of now the file removed itself somehow, and although I have versions 2019.4, 2020.2, and 2020.3, none of them have the file in question. im thinking maybe I should reinstall unity somehow and see if that solves the problem, but I have no idea whatsoever what caused this issue

my current solution was to install a newer version of unity, and hope it builds. it did, so I’ll post back if anything changes. hope this helps someone lol

Running into this in 2021.3.4f1. Haven’t found a solution.

Edit: Solved by uninstalling and updating to 2021.3.7f1.

For me the issue was with the Mac OS - I have Optimize Mac Storage turned on and that removed the files from my hard drive even though it looked like they were there. I had to click the little cloud icon next to the file to download it again in order to build it properly.