-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unity beta realm dependency causes IL2CPP build errors #2666
Comments
Hey Jonathan, appreciate the heads-up. We're generally not supporting beta releases of Unity as those has often introduced regressions that are typically resolved before the release is GA-ed. Our hope is that this will be the case for the IL2CPP issues you're seeing, but we'll definitely keep an eye on it. |
I tried using 2021.2.1f1 and the build works well for me, so I guess Unity has fixed this during the beta evaluation. If you are encountering this with any of the official releases, let us know, and we'll work with you to figure out how to reproduce it locally. |
hey @nirinchev
|
Interesting... I'll reopen this and investigate. |
Hi, I'm having the same issue than @rscholtes on iOS and Android with URP and Unity 2021.2.7f1 . |
@rscholtes @yMiecie Thank you for reporting this. I was able to reproduce it locally too. It seems like this is a Unity bug, I have reported https://fogbugz.unity3d.com/default.asp?1396246_gd9t5cft74dmj8qq just now. |
Looks like it's caused by a regression in the IL2CPP compiler. While I think it should be fixed on the Unity end, we should try and workaround it by removing the |
What happened?
More a heads up than a bug, don't know if it's the right place (Unity 2021.2.0b13)
Can't build iOS with unity realm dependency installed as described here
Repro steps
Create Unity project
Add Realm dependency
Select iOS target
Unity Build
Version
Unity Realm package 10.6.0
What SDK flavour are you using?
MongoDB Realm (i.e. Sync, auth, functions)
What type of application is this?
Unity
Client OS and version
Unity 2021.2.0b13
Code snippets
No response
Stacktrace of the exception/crash you're getting
Exception: Unity.IL2CPP.Building.BuilderFailedException: Build failed with 0 successful nodes and 1 failed ones Annotation: IL2CPP_CodeGen /Users/jonathan/Documents/Dev/realm/RealmBetaTest/Library/Il2cppBuildCache/iOS/buildstate/artifacts/il2cpp_conv_hn6f.traceevents Cmdline: "/Applications/Unity/Hub/Editor/2021.2.0b13/Unity.app/Contents/il2cpp/build/deploy/il2cpp" --convert-to-cpp --directory="/Users/jonathan/Documents/Dev/realm/RealmBetaTest/Temp/StagingArea/Data/Managed" --data-folder="/Users/jonathan/Documents/Dev/realm/RealmBetaTest/Library/Il2cppBuildCache/iOS/il2cppOutput/Data" --generatedcppdir="/Users/jonathan/Documents/Dev/realm/RealmBetaTest/Library/Il2cppBuildCache/iOS/il2cppOutput" --symbols-folder="/Users/jonathan/Documents/Dev/realm/RealmBetaTest/Library/Il2cppBuildCache/iOS/il2cppOutput/Symbols" --additional-cpp="/Users/jonathan/Documents/Dev/realm/RealmBetaTest/Library/Il2cppBuildCache/iOS/additionalCppFiles/UnityClassRegistration.cpp" --additional-cpp="/Users/jonathan/Documents/Dev/realm/RealmBetaTest/Library/Il2cppBuildCache/iOS/additionalCppFiles/UnityICallRegistration.cpp" --emit-null-checks --enable-array-bounds-check --code-generation-option=EnableInlining --stats-output-dir="/Users/jonathan/Documents/Dev/realm/RealmBetaTest/Library/Il2cppBuildCache/iOS/il2cppOutput" --dotnetprofile=unityaot-macos --cachedirectory="/Users/jonathan/Documents/Dev/realm/RealmBetaTest/Library/Il2cppBuildCache/iOS" --profiler-report --profiler-output-file="/Users/jonathan/Documents/Dev/realm/RealmBetaTest/Library/Il2cppBuildCache/iOS/buildstate/artifacts/il2cpp_conv_hn6f.traceevents" ExitCode: 1 Stdout: Failed because this command failed to write the following output files: /Users/jonathan/Documents/Dev/realm/RealmBetaTest/Library/Il2cppBuildCache/iOS/buildstate/artifacts/il2cpp_conv_hn6f.traceevents /Users/jonathan/Documents/Dev/realm/RealmBetaTest/Library/Il2cppBuildCache/iOS/buildstate/artifacts/il2cpp_conv_hn6f.traceevents
Relevant log output
No response
The text was updated successfully, but these errors were encountered: