I’m solo developing a game in Unity on my Windows machine. I also have access to a Mac, but something is going wrong with the XCode build. To test, I made a default project in Unity, and changed my Build Profile to iOS. I then zipped the resulting folder and sent it over to the Mac, where I tried to build with xcode. But I keep getting an error that reads:
clang++: error: no such file or directory: ‘/Users/…/Xcode/DerivedData/Unity-iPhone-fmhmxyschzqqqkdjqwexswugzlwb/Build/Products/ReleaseForRunning-iphoneos/il2cpp.a’ Command Ld failed with a nonzero exit code
As far as I can gather from looking online, il2cpp is some kind of C# to C++ translator, but I can’t figure out why that would be malfunctioning or what I can do about it. Where can I go from here?
I tried rebuilding, getting help from generative AI (which was totally useless), and changing the bundle identifier. As mentioned, I also did this with a blank, default Unity project, so I know it’s not a problem with the game code itself.