Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
iOS DllNotFoundException for empty project testing your examples iOS
#1
Just testing out your example scenes in empty iOS project in Unity 2022.3.36f1

DllNotFoundException: libOni assembly:<unknown assembly> type:<unknown type> memberTristenull)
Obi.OniBackend.CreateSolver (Obi.ObiSolver solver, System.Int32 capacity) (at Assets/Obi/Scripts/Common/Backends/Oni/OniBackend.cs:17)
Obi.ObiSolver.Initialize () (at Assets/Obi/Scripts/Common/Solver/ObiSolver.cs:883)
Obi.ObiSolver.AddActor (Obi.ObiActor actor) (at Assets/Obi/Scripts/Common/Solver/ObiSolver.cs:1148)
Obi.ObiActor.AddToSolver () (at Assets/Obi/Scripts/Common/Actors/ObiActor.cs:348)
Obi.ObiActor.OnEnable () (at Assets/Obi/Scripts/Common/Actors/ObiActor.cs:323)
Reply
#2
(08-07-2024, 02:12 PM)inacen Wrote: Just testing out your example scenes in empty iOS project in Unity 2022.3.36f1

DllNotFoundException: libOni assembly:<unknown assembly> type:<unknown type> memberTristenull)
Obi.OniBackend.CreateSolver (Obi.ObiSolver solver, System.Int32 capacity) (at Assets/Obi/Scripts/Common/Backends/Oni/OniBackend.cs:17)
Obi.ObiSolver.Initialize () (at Assets/Obi/Scripts/Common/Solver/ObiSolver.cs:883)
Obi.ObiSolver.AddActor (Obi.ObiActor actor) (at Assets/Obi/Scripts/Common/Solver/ObiSolver.cs:1148)
Obi.ObiActor.AddToSolver () (at Assets/Obi/Scripts/Common/Actors/ObiActor.cs:348)
Obi.ObiActor.OnEnable () (at Assets/Obi/Scripts/Common/Actors/ObiActor.cs:323)

Hi,

As stated in the store description and the manual, Obi depends on the following packages: Burst, Collections, Jobs and Mathematics.
http://obi.virtualmethodstudio.com/manua...setup.html
http://obi.virtualmethodstudio.com/manua...html#burst

Failing to install these will cause Obi to attempt to fall back to a native library, which does not support the Apple Silicon architecture (among others):

Quote:Oni (deprecated): Oni is the legacy backend used in Obi 2.x - 4.x. It is a native library written in C++11, that comes precompiled for each platform. For this reason, only a few platforms are supported by it: Windows, Mac (Intel only, no Apple Silicon support), Linux, Android, iOS.

In these cases you'll receive the error message you've posted, as Unity attempts to find a compatible Dll for your platform but is unable to find one.

Installing the required dependencies will solve the issue.

Let me know if I can be of further help,

kind regards
Reply
#3
Assets/Obi/Scripts/Common/Backends/Burst/DataStructures/NativeMultilevelGrid.cs(74,46): error CS1061: 'UnsafeList<K>' does not contain a definition for 'length' and no accessible extension method 'length' accepting a first argument of type 'UnsafeList<K>' could be found (are you missing a using directive or an assembly reference?)
Reply
#4
(09-07-2024, 01:49 AM)inacen Wrote: Assets/Obi/Scripts/Common/Backends/Burst/DataStructures/NativeMultilevelGrid.cs(74,46): error CS1061: 'UnsafeList<K>' does not contain a definition for 'length' and no accessible extension method 'length' accepting a first argument of type 'UnsafeList<K>' could be found (are you missing a using directive or an assembly reference?)

Hi,

Some versions of the Collections package use Length instead of length (or vice-versa) and Unity's auto API updater does not seem to be able to fix this automatically. Simply changing "length" to "Length" (uppercase L) in NativeMultilevelGrid.cs line 74, character 46 will get rid of the issue. See our troubleshooting page: http://obi.virtualmethodstudio.com/manua...oting.html

let me know if I can be of further help,

kind regards
Reply