Skip to content

.NET MAUI iOS - System.DllNotFoundException: NcnnDotNetNative #19

Description

@usmanakram-dev

I've developed a .NET MAUI App and used "UltraFaceDotNet" for face detection.

It works fine in Android but when I try to execute the same code for iOS it return with following exception

{System.DllNotFoundException: NcnnDotNetNative
   at NcnnDotNet.Net..ctor()
   at UltraFaceDotNet.UltraFace..ctor(UltraFaceParameter parameter)
   at UltraFaceDotNet.UltraFace.Create(UltraFaceParameter parameter)
   at CamView.Services.DetectService..ctor() in {MY-PROJECT-PATH}\DetectService.cs:line 76}

Line # 76 is where it's trying to Create UltraFace object from provided parameters as following

var param = new UltraFaceParameter
       {
           BinFilePath = binPath,
           ParamFilePath = paramPath,
           InputWidth = 320,
           InputLength = 240,
           NumThread = 1,
           ScoreThreshold = 0.7f
       };

       this._UltraFace = UltraFace.Create(param);

Following are the libraries and files I've used

image

It also created link to following Libs

image

Can you please help to find out the issue?

Many Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions