Skip to content
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

Coffee.UIEffect.R.dll is causing build error on IOS #315

Closed
EricHu33 opened this issue Mar 5, 2025 · 7 comments
Closed

Coffee.UIEffect.R.dll is causing build error on IOS #315

EricHu33 opened this issue Mar 5, 2025 · 7 comments

Comments

@EricHu33
Copy link

EricHu33 commented Mar 5, 2025

Describe the bug
Coffee.UIEffect.R.dll is causing build error on IOS, when the code stripping level is set to Low (set to minimal won't produce error)

To Reproduce
Steps to reproduce the behavior:

  1. swtich build platform to IOS
  2. with URP 14 installed (will install burst compiler)
  3. enable code stripping and make code strip level to "Low"
  4. build -> error

You can reproduce this on a empty project as well.

Expected behavior
Build success

Environment (please complete the following information):

  • Version 5.3.0 (or any version that contains this DLL)
  • Platform: IOS
  • Unity version: Unity 2022.3.10f1
  • Build options: IL2CPP, code stripping level : Low, burst compiler enabled

Additional context
If you disable burst compiler (disable it via BurstCompiler AOT setting inside project setting), this issue will not occur as well.
I tried to add Coffee.UIEffect.R into link.xml to prevent it from stripping. but with burst compiler enable it will still resulting error when build.

Earlier version (pre-2024 Dec) won't have this issue because there's no such DLL exist.

@mob-sakai
Copy link
Owner

Thank you for your reporting!

@mob-sakai
Copy link
Owner

The issue is not reproduced on my environment...

  • Version 5.5.1
  • Platform: IOS
  • Unity version: Unity 2022.3.32f1
  • Build options: IL2CPP, code stripping level : Low, burst compiler (1.8.18) enabled
Image

Could you please attach a minimal project (included Assets, Packages and ProjectSettings directories) that reproduces the issue?
Of course, you don't need to include any secret assets from your project. Feel free to use free assets instead.

repos


Coffee.UIEffect.R.dll is causing build error on IOS, when the code stripping level is set to Low

Is there any error message related to this?
Also, could you let me know the version of the Burst package you are using?

@EricHu33
Copy link
Author

EricHu33 commented Mar 6, 2025

Hello here's the error screenshot and message, I also attached the required files to reproduce the error

Image

Library/Bee/artifacts/iOS/AsyncPluginsFromLinker: Failed to find entry-points:
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&) (at /Users/bokken/build/output/unity/unity/Modules/IMGUI/GUIUtility.cs:190)
Building Library/Bee/artifacts/iOS/AsyncPluginsFromLinker failed with output:
UnityEditor.Build.BuildFailedException: Burst compiler (1.8.19) failed running

stdout:
Overriding backend due to platform constraints : 'burst-llvm-10'
Error: Failed to find entry-points:
System.Exception: Error while loading assembly references for Coffee.UIEffect.R -

We are using 2022.3.10f1, please try to use this version to reproduce it.
I'm able to reprdouce it in both our internal cloud build as well as a empty project that install UIEffect.
I'm able to make it build successfully by removing the DLL, is the DLL required for the package?
Since we can't upgrade the Unity version easily.

ReproduceFiles.zip

additional info :
Reproduciable on build target Mac/Ios. not happen on Android build target.

@mob-sakai
Copy link
Owner

Thank you 👍

github-actions bot pushed a commit that referenced this issue Mar 6, 2025
## [5.5.3](5.5.2...5.5.3) (2025-03-06)

### Bug Fixes

* blur with 'Filled' Image type may cause error ([f0a7642](f0a7642)), closes [#313](#313)
* IL2CPP build fails on older versions of Unity ([1af89af](1af89af)), closes [#315](#315)
@mob-sakai
Copy link
Owner

🎉 This issue has been resolved in version 5.5.3 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@EricHu33
Copy link
Author

EricHu33 commented Mar 6, 2025

hello, thanks for the quick update, can you share the reason of the error?

@mob-sakai
Copy link
Owner

In older versions of IL2CPP, DLLs without an entry point were not supported.
To work around this build error, I added a dummy entry point (an internal interface) to Coffee.UIEffect.R.dll, which has no side effects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants