Search Issue Tracker

By Design

Votes

1

Found in

2021.3.27f1

2022.3.3f1

2023.1.2f1

2023.2.0a21

Issue ID

UUM-42268

Regression

No

Build fails with console errors when Scripting Backend IL2CPP is selected

-

Reproduction steps:
1. Open the attached “PluginsTest” project
2. Build the Player (File > Build And Run)

Expected result: The Build is successful
Actual result: The Build fails with “Undefined symbols for architecture arm64:” and “Undefined symbols for architecture x86_64:” console errors

Reproducible with: 2021.3.27f1, 2022.3.3f1, 2023.1.2f1, 2023.2.0a21

Reproducible on: macOS Ventura 13.2.1 (M1 Max), macOS 13.4 (Intel)

Note: Not reproducible with Mono Scripting Backend

  1. Resolution Note:

    Unity does not support native static libraries. See https://docs.unity3d.com/Manual/PluginsForDesktop.html for details about native library support.

Comments (2)

  1. OLytovch

    Jul 11, 2023 11:45

    Using the C++ STATIC libs on iOS and Android works fine!

  2. OLytovch

    Jul 11, 2023 11:41

    I just want to clarify that this issue is about using C++ code as a STATIC library in a Unity IL2CPP project. The issue happens on Windows and macOS platforms. The C++ code for Windows is built as *.lib and for macOS built as *.a. The build will fail for such projects.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.