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'

1 Like

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!