Why PublicFrameworks.AddRange always failed with "framework not found"

Hi friends:
Currently I’m working on some augmented reality stuff by using UE4 and opencv, and here is a part of my *.build.cs:

    if (Target.Platform == UnrealTargetPlatform.IOS)
    {
        PublicFrameworks.AddRange(new string] { "/Users/<my name>/Documents/opencv2.framework" }); // this is the IOS version of OpenCV.
    }
    else if (Target.Platform == UnrealTargetPlatform.Mac)
    {
        PrivateIncludePaths.Add("/usr/local/include");
        PublicAdditionalLibraries.Add("/usr/local/lib/libopencv_core.2.4.9.dylib");    //these are all the Mac version of opencv
        PublicAdditionalLibraries.Add("/usr/local/lib/libopencv_highgui.2.4.9.dylib");
        PublicAdditionalLibraries.Add("/usr/local/lib/libopencv_imgproc.2.4.9.dylib");
    }

As you can see, currently the project works perfect on Mac version, but for the IOS version, I cannot even use the opencv2.framework, during build, then Unreal build system simply report “framework not found /Users/<my name>/Documents/opencv2.framework”, I 100% make sure the path is right, and I also tried to use this /Users/<my name>/Documents/opencv2 path, but it still fails…

Can someone tell me do I need to do something else to reference this opencv IOS framework? I think I cannot use AddAddtionalLibraries to reference it since in that framework folder, it simply has headers files and a big file named “opencv2”…

Thanks
.

ping… really be grateful if someone can help me out?

btw, I found in core.build.cs, it also use PublicFrameworks.Add, but just my adding fails…

Please post this question to the Answer Hub under “Packaging and Deployment:” https://answers.unrealengine.com/spaces/41/packaging-deployment.html and include a link back to this post. This may turn out to be a bug that needs to be addressed.

Thanks!

alright, I’ve pasted it, hope there is quick fix for this if it is a bug. my project really depends on OpenCV…

Hello,

could you please share the code you use to put the grabbed frame from the webcam into that texture?