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 (compiled using clang). 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.
-
Please provide enough code so others can better understand or reproduce the problem.Community– Community Bot2025年02月14日 00:27:36 +00:00Commented Feb 14, 2025 at 0:27
1 Answer 1
You may want to look into Unity Cloud's DevOps solutions for building your project on Unity's backend. You can target any platform, including Mac.
You can find the build automation documentation here. You can also set it up in Unity's cloud dashboard: https://cloud.unity.com/
Comments
Explore related questions
See similar questions with these tags.