using phidgets in a unity app on ios

Supporting iOS 8.0 or Newer
Post Reply
gschomburg
Fresh meat
Posts: 1
Joined: Wed Feb 26, 2025 2:05 pm
Contact:

using phidgets in a unity app on ios

Post 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
User avatar
Patrick
Lead Developer
Posts: 656
Joined: Mon Jun 20, 2005 8:46 am
Location: Calgary
Contact:

Re: using phidgets in a unity app on ios

Post 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
Post Reply

Who is online

Users browsing this forum: No registered users and 50 guests