Re: Dllimport Could Not Be Found Unity

0 views
Skip to first unread message
Message has been deleted

Herodes Hamilton

unread,
Jul 16, 2024, 9:31:17 PM7/16/24
to ridensandte

I looked into it, this is specifically a problem unique to IL2CPP and Unity compiling. I've found a GitHub Issue from DiscordRP where an actual Unity IL2CPP developer and community chimed in on the problem and gave a solution that worked for both IL2CPP and Mono JIT (Unity's main option for other platforms).

This error message looks to be indicating that the library is found now, but can't be used because it isn't built for IOS Simulator. Can you make sure the build target for the native library build is the same as the build target for the unity-iphone project build. In the case of the screenshots in my post above this is the iphone 11 Prox Max simulator.

Dllimport Could Not Be Found Unity


DOWNLOAD https://urlcod.com/2yX0Pl



An anti-climactic ending, but we were beyond relieved when we found this. Next task was to write the tool that generated the binding redirect and proxy assemblies for us, and then we could run our own code in a .NET executable without overwriting any files. Cool!

An error similar to the one above is the Could not load file or assembly 'assembly' or one of its dependencies. The system cannot find the file specified. error. This also means that the program is trying to load an assembly that could not be found. The error can be re-created by creating a program that uses another assembly. Build the program, remove the references assembly (the .dll file) from the bin\Debug folder and run the program. In this case, the program fails during startup:

aa06259810
Reply all
Reply to author
Forward
0 new messages