Xaron
Topic Author
Posts: 12
Joined: 27 Feb 2022, 19:23

DllNotFoundException for Standalone build on MacOS

14 Aug 2023, 23:05

When doing a standalone build on MacOS with Unity 2021.3.22f1 LTS (Noesis version 3.2.1) of our project I get this in the application log when starting the game:
DllNotFoundException: Noesis assembly:<unknown assembly> type:<unknown type> member:(null)
  at (wrapper managed-to-native) Noesis.GUI.Noesis_DisableSocketInit()
  at Noesis.GUI.DisableSocketInit () [0x00000] in <4a5a6102291743178f32591befad79e6>:0
  at NoesisUnity.InitCore () [0x00000] in <4a5a6102291743178f32591befad79e6>:0
  at NoesisXaml.RegisterDependencies () [0x00008] in <4a5a6102291743178f32591befad79e6>:0
  at NoesisXaml.Load () [0x00000] in <4a5a6102291743178f32591befad79e6>:0
  at NoesisView.LoadXaml (System.Boolean force) [0x00025] in <4a5a6102291743178f32591befad79e6>:0
  at NoesisView.OnEnable () [0x00019] in <4a5a6102291743178f32591befad79e6>:0
I assume I can copy the dylib to some folder but shouldn't it resolve that automatically? Thank you!
 
User avatar
jsantos
Site Admin
Posts: 4823
Joined: 20 Jan 2012, 17:18
Contact:

Re: DllNotFoundException for Standalone build on MacOS

15 Aug 2023, 13:25

Yes, this should work automatically.

Are you able to reproduce this in a clean Unity project with Noesis imported and using one of our sample, like the HelloWorld?
 
Xaron
Topic Author
Posts: 12
Joined: 27 Feb 2022, 19:23

Re: DllNotFoundException for Standalone build on MacOS

15 Aug 2023, 20:44

Yes, just created a clean project in Unity 2021.3.22 (guess the patch level doesn't matter), imported the 3.2.1 Noesis package and also imported the button example which comes with that package. It works great in the editor but provokes the same error in a standalone build. I'm on a Macbook Pro Intel with Ventura 13.3.1

edit: attached the project
Attachments
noesis-test.zip
(144.44 KiB) Downloaded 207 times
 
User avatar
jsantos
Site Admin
Posts: 4823
Joined: 20 Jan 2012, 17:18
Contact:

Re: DllNotFoundException for Standalone build on MacOS

16 Aug 2023, 20:07

Our native library is not properly tagged for Apple silicon. Could you please create a ticket for this? (I am also observing a crash at shutdown when using Development Builds with ARM)

For now, your workaround is selecting only "Intel 64-bit" in the Architecture combobox when building the standalone.
 
Xaron
Topic Author
Posts: 12
Joined: 27 Feb 2022, 19:23

Re: DllNotFoundException for Standalone build on MacOS

16 Aug 2023, 21:48

Who is online

Users browsing this forum: Bing [Bot] and 2 guests