How to change framework search paths?

Currently, the Framework search path is as follows :

$gcc -Xlinker -v
@(#)PROGRAM:ld  PROJECT:ld64-274.1
configured to support archs: armv6 armv7 armv7s arm64 i386 x86_64 x86_64h armv6m armv7k armv7m armv7em (tvOS)
Library search paths:
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/lib
Framework search paths:
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/


I wanted to add

/Library/Frameworks/

into Framewok searc paths. How to do it?

On Apple platforms the default compiler is not GCC but Clang. You can get help on Clang from the man page:

$ man clang

That describes the

-F
, which lets you add a framework search path.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

Hi eskimo/aswathkk,


I tried


clang -F ~/Documents/beam_ios_29June/Pods/FBSDKLoginKit.framework


but it says


clang: error: no input files


I tried a few things out but to no good. The file exists but why the command fails then?


Please suggest.


Thanks

The Clang man page says:

-F<directory>
    Add  the  specified  directory  to the search path for framework
    include files.

Thus the argument needs to be a directory in which to search for frameworks, not the framework itself.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"
How to change framework search paths?
 
 
Q