Il2cpp.a File Missing for Xcode Build

I’ve been developing an AR project for iOS on Unity v 6000.0.29f1, and trying to build the app on Xcode v 15.3. I was able to generate the first version of the app on Wednesday, Nov. 27th and upload it to Test Flight. However, I’ve gotten build failures on Xcode since Thursday and haven’t been able to generate new versions of the app since then.

I’m using a MacBook Pro with Sonoma 14.6.1.

The main changes I implemented after the first build relate to features I added to the Unity project itself. I tried changing different things after the initial build failures, like using the latest Xcode version from the App Store (v 16) in the same Mac and then in a different one; downgrading Unity to v 2022.3.53f1; creating new Unity builds just from the AR Mobile Core template for both v 6000.0.29f1 and v 2022.3.53f1.

The Xcode build error I constantly get is the one shown below. The attached screenshots show the Configuration settings used to build the Unity Xcode project.

Following a suggestion from the Xcode error log, I installed the latest version of .NET on my Mac (SDK 9.0.100, Arm64 installer for macOS). However, I still get the error.

Aside from this single error in Xcode, I also get multiple warnings related to UnityFramework.


clang: error: no such file or directory: '/Users/marialaura_mirabelli/Library/Developer/Xcode/DerivedData/Unity-iPhone-dfjpcjefmraldqbhckpttwmpgexh/Build/Products/ReleaseForRunning-iphoneos/il2cpp.a'

 

No such file or directory: '/Users/marialaura_mirabelli/Library/Developer/Xcode/DerivedData/Unity-iPhone-dfjpcjefmraldqbhckpttwmpgexh/Build/Products/ReleaseForRunning-iphoneos/il2cpp.a'

Hi @mlauramj
were you able to resolve this ? i’m getting the same issue with unity 6.0.0 and xcode 15.3

Hi, yes! I needed to add a new scheme in Xcode with name corresponding to the app name, and needed to change the “name” field in “Identity and Type” to the same string. Silly error, but no indication that this was the case!

I am experiencing the same issue and was unable to implement your solution. I am using Xcode 16.1. Could you please provide step-by-step instructions on how to resolve this problem?

In top part of the window click on your project name, usually something like Unity-iphone. There select option “New Scheme” and choose name of your game.

Then expand Inspector by clicking the icon in the very top-right part of the Xcode window. There will appear “Identity and Type” section. There change the name to the SAME name you chose for your new scheme in previous step.

Then it will work.

I had resolved this sh*t issue that deleted Library and Temp folders in your Unity Project and restart Unity again and output Xcode project, then you can find the world are beautiful.

This solution didn’t work for me. In the File → Build Profiles panel I had to enable Symlink Sources. This fixed it for me.

didn’t work for me and I’m about to lose it after 12 hours… any advice?

Didn’t work for me either. Please help!