<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Thanks Ken!</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Letting me know that the "tapi" command is the key to the fix was a big help.<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
I did a quick google search for "tapi stubify" and found that someone has already created a ruby script to fix the problem.  But one needs to disable System Integrity Protection (SIP) first before running the script.  Once the script is run, one can re-enable
 SIP.<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
See</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<a href="https://gist.github.com/sv99/c9d8c155db7db83325847bd33b25e1d0" id="LPNoLPOWALinkPreview">https://gist.github.com/sv99/c9d8c155db7db83325847bd33b25e1d0</a></div>
<div class="_Entity _EType_OWALinkPreview _EId_OWALinkPreview _EReadonly_1"></div>
<br>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
I assume you used <b>tapi stubify </b>and did manually what was in this script.</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
If you used a different approach, please let me know.</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Rob<br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> macports-dev <macports-dev-bounces@lists.macports.org> on behalf of Ken Cunningham <ken.cunningham.webuse@gmail.com><br>
<b>Sent:</b> August 18, 2022 2:34 PM<br>
<b>To:</b> MacPorts Developers <macports-dev@lists.macports.org><br>
<b>Subject:</b> Re: ld: waning messages -- Frameworks out of sync.</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">> Otherwise, one needs to set SDKROOT as follows:
<pre>> export SDKROOT=$(xcrun --show-sdk-path)

> It is best to set SDKROOT in one's ~/.bash_profile<br><br></pre>
<pre>If you do that, you will possibly override MacPorts setting of SDKROOT, and this is likely to cause you many problems when building ports.<br><br></pre>
<pre>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.<br><br></pre>
<pre>Otherwise, you can fix the TBD file (which is what I did) by using the tapi tool:<br><br>$ tapi<br>OVERVIEW: Text-based Stubs Tool<br><br>USAGE: tapi [--version][--help]<br>       tapi <command> [<args>]<br><br>Commands:<br>  archive     Merge or thin text-based stub files<br>  stubify     Create a text-based stub file from a library<br>  installapi  Create a text-based stub file by scanning the header files<br>  reexport    Create a linker reexport file by scanning the header files<br><br>See 'tapi <command> --help' to read more about a specific command.<br><br></pre>
<pre>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.<br></pre>
<pre>Best,<br><br></pre>
<pre>Ken<br></pre>
</div>
</div>
</div>
</div>
</body>
</html>