ld: framework not found

Hi.

I'm trying to include 3d party framework for my project. The framework is installed under System/Library/Frameworks.

I found this instruction on how to make a weak link to the framework.

When I add the key weak_framework to the Other Linker Flags and compile the project I receive this error:
ld: framework not found.

I tried to reproduce this problem on an empty project. And when I add the flag -weak_framework IntelPowerGadget I receive the same error.

Can someone help?

Xcode version 12.0.1 (12A7300).
Third party frameworks should be installed in /Library/Frameworks. The System folder is for Apple's frameworks.

How are you adding the framework to the project? Is the framework in the Frameworks, Libraries, and Embedded Content section of your app target? If not, what happens when you click the Add button and add the framework that way?
ld: framework not found
 
 
Q