Page 1 of 1

using phidgets in a unity app on ios

Posted: Wed Feb 26, 2025 2:14 pm
by gschomburg
Has anyone had any success using phidgets in an ios unity app? I've fiddled around a bit, but i keep getting dll not found errors:

`DllNotFoundException: Unable to load DLL 'phidget22'. Tried the load the following dynamic libraries: Unable to load dynamic library '/phidget22'`

I've tried using the libPhidget22.a instead with some extra linking in xcode, but that doesn't seem to work either.
using: unity 6

Re: using phidgets in a unity app on ios

Posted: Wed Feb 26, 2025 4:40 pm
by Patrick
I don't know a lot about how unity works. It's .NET based? Our .NET library isn't currently compatible with iOS because of how native imports need to be done in .NET on iOS. You should be able to link against libphidget22.a for iOS and create your own native bindings in C# to call in to the C API, using [DllImport ("__Internal")].

-Patrick