# Build error with Maps SDK + Localization package

**URL:** <https://community.nianticspatial.com/t/build-error-with-maps-sdk-localization-package/4442>\
**Category:** Bug Reports\
**Tags:** maps\
**Created:** [April 2, 2024, 8:32pm UTC](https://community.nianticspatial.com/t/build-error-with-maps-sdk-localization-package/4442 "2024-04-02T20:32:16Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Philipp](https://avatars.discourse-cdn.com/v4/letter/p/46a35a/32.png) [@Philipp](https://community.nianticspatial.com/u/Philipp)\
**Post date:** [April 2, 2024, 8:32pm UTC](https://community.nianticspatial.com/t/build-error-with-maps-sdk-localization-package/4442/1 "2024-04-02T20:32:16Z")

</div>

- **Issue category** : Lightship Maps
- **Host machine & OS version** : Mac - Apple M1 Pro - Sonoma 14.3
- **Unity version** : 2022.3.22 LTS

Bug reproduction steps:

I want to report an issue I discovered when using the Lightship Maps SDK in conjunction with the Unity Localization Package. To make it easily reproducible, I uploaded a simple demo project, in which I did nothing but follow the steps to reproduce: [Dropbox - Lightship - Simplify your life](https://www.dropbox.com/scl/fo/hwbfu85rmpybo4r73yjy1/AKZGRLlfKpcMvhGrWctUHEw?rlkey=qrncvrdlj19p8ul1rinjuvclz&dl=0)

Steps to reproduce:

**1.** Create a new Unity Project (2022.3.22 LTS) using the 3D URP template.  
**2.** Add the Unity Localization package (1.45) to the project ([Installation guide | Localization | 1.4.5](https://docs.unity3d.com/Packages/com.unity.localization@1.4/manual/Installation.html)) and set it up by  
 **→ a.** Creating one more locale via Edit → Project Settings → Localization  
 **→ b.** Setting up a Strings-Table via Window → Asset Management → Localization Tables  
 **→ c.** Create a new Adressables Group via Window → Asset Management → Adressables → Groups → Build → New Build  
**3.** Add the Lightship Maps SDK (0.4) to the project and specify an API key  
**4.** Build the App once (aka doing a clean build) via File → Build and Run. Outcome: The app will (most of the times) build without an issue  
**5.** Build the App again (aka doing an incremental build via File → Build and Run. Outcome: The Build will fail with a compiler error (`Burst internal compiler error: Burst.Compiler.IL.CompilerException: Error while verifying module: DISubprogram attached to more than one function`) A full error log can be found behind the dropbox link further up.

I did not find a way to work around this issue, apart from always doing a clean build (which is not practical in a real project).

Of note: Besides the described setup, I tested other permutations of the above steps. For example, the same issue occurs when

- Building not for Desktop but for Android or iOS
- Using the most recent Unity version (2023.2.15)
- Using a prerelease version of the Localization Package (1.5.1)

---

<div class="post-metadata">

**Author:** ![JoshM](https://avatars.discourse-cdn.com/v4/letter/j/4af34b/32.png) [@JoshM](https://community.nianticspatial.com/u/JoshM)\
**Post date:** [April 4, 2024, 12:30am UTC](https://community.nianticspatial.com/t/build-error-with-maps-sdk-localization-package/4442/2 "2024-04-04T00:30:43Z")

</div>

Hello! I wanted to give you an update. A colleague and I were able to replicate the issue, and we found that the problem happens at Step 2b when generating tables/locales. We will continue looking into this and I will get back to you when we have additional information.

---

<div class="post-metadata">

**Author:** ![JoshM](https://avatars.discourse-cdn.com/v4/letter/j/4af34b/32.png) [@JoshM](https://community.nianticspatial.com/u/JoshM)\
**Post date:** [April 4, 2024, 10:11pm UTC](https://community.nianticspatial.com/t/build-error-with-maps-sdk-localization-package/4442/3 "2024-04-04T22:11:26Z")

</div>

Hello! After some testing, we discovered that updating the Burst version should fix your problem. Updating the Burst can be done by clicking \*\*Window \> Package Manager \> Burst \> Version History \*\*then choosing which version you want to swap to. The specific subversion may depend on your Unity version, but I got it to build and run consistently using Burst version **1.8.13** with Unity version **2022.3.22**.

---

<div class="post-metadata">

**Author:** ![Philipp](https://avatars.discourse-cdn.com/v4/letter/p/46a35a/32.png) [@Philipp](https://community.nianticspatial.com/u/Philipp)\
**Post date:** [April 6, 2024, 8:26am UTC](https://community.nianticspatial.com/t/build-error-with-maps-sdk-localization-package/4442/4 "2024-04-06T08:26:16Z")

</div>

Hej Josh!  
I just updated the Burst compiler and can confirm that this fixes the issue.  
I got to say, I’m pretty impressed by how quickly you responded and resolved the issue, thank you so much!

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/niantic/user_avatar/community.nianticspatial.com/system/32/13_2.png) [@system](https://community.nianticspatial.com/u/system)\
**Post date:** [April 6, 2024, 10:26am UTC](https://community.nianticspatial.com/t/build-error-with-maps-sdk-localization-package/4442/5 "2024-04-06T10:26:41Z")

</div>

This topic was automatically closed 2 hours after the last reply. New replies are no longer allowed.

---

<div class="post-metadata">

**Author:** ![JoshM](https://avatars.discourse-cdn.com/v4/letter/j/4af34b/32.png) [@JoshM](https://community.nianticspatial.com/u/JoshM)\
**Post date:** [April 9, 2024, 5:24pm UTC](https://community.nianticspatial.com/t/build-error-with-maps-sdk-localization-package/4442/6 "2024-04-09T17:24:03Z")

</div>

That’s awesome! Glad to hear that you got it working on your end!
