> Otherwise, one needs to set SDKROOT as follows: > export SDKROOT=$(xcrun --show-sdk-path)
> It is best to set SDKROOT in one's ~/.bash_profile If you do that, you will possibly override MacPorts setting of SDKROOT, and this is likely to cause you many problems when building ports. I would suggest you just ignore the warning -- the linker knows to use the library if the TBD file is out of sync, as it has said in it's message. Otherwise, you can fix the TBD file (which is what I did) by using the tapi tool: $ tapi OVERVIEW: Text-based Stubs Tool USAGE: tapi [--version][--help] tapi <command> [<args>] Commands: archive Merge or thin text-based stub files stubify Create a text-based stub file from a library installapi Create a text-based stub file by scanning the header files reexport Create a linker reexport file by scanning the header files See 'tapi <command> --help' to read more about a specific command. Of course, you may not want to do that -- but that is less intrusive than setting the SDKROOT I would say, if the warnings are really bothersome to you. Best, Ken