admin管理员组

文章数量:1291656

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.

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.

Share asked Feb 13 at 15:04 user29060292user29060292 11 bronze badge 1
  • Please provide enough code so others can better understand or reproduce the problem. – Community Bot Commented Feb 14 at 0:27
Add a comment  | 

1 Answer 1

Reset to default 0

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/

本文标签: How do I build a Unity project from Windows for iOSStack Overflow