<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Shoot, you know, looks like you can scratch that. There was only a problem when Xcode was not installed, and Xcode is required anyway.<div class=""><br class=""></div><div class="">Nevertheless, I think `xcrun —show-sdk-version` is a more straightforward way to get the version number without parsing a file path.<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Sep 24, 2021, at 4:20 PM, Patrick Stinson <<a href="mailto:patrickkidd@gmail.com" class="">patrickkidd@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Phil,<br class=""><br class="">Sorry if I’m ignorant as to whether the latest pyqtdeploy will still work with Qt-5.15.2 (I just want my stuff to keep building), but here is a fix to get `pyqtdeploy/platform.py` to correctly read the new macOS sdk version number:<br class=""><br class=""><br class=""><div style="color: rgb(54, 54, 54); background-color: rgb(255, 255, 255); font-family: Menlo, Monaco, "Courier New", monospace; line-height: 18px; white-space: pre;" class=""><div class=""> <span style="color: rgb(146, 205, 120);" class=""># Parse the version number.</span></div><div class=""> <span style="color: rgb(146, 205, 120);" class=""># version_str = os.path.basename(self.apple_sdk)</span></div><br class=""><div class=""> <span style="color: rgb(146, 205, 120);" class=""># if version_str.startswith(self.sdk_prefix):</span></div><div class=""> <span style="color: rgb(146, 205, 120);" class=""># version_str = version_str[len(self.sdk_prefix):]</span></div><br class=""><div class=""> <span style="color: rgb(146, 205, 120);" class=""># if version_str.endswith('.sdk'):</span></div><div class=""> <span style="color: rgb(146, 205, 120);" class=""># version_str = version_str[:-len('.sdk')]</span></div><br class=""><div class=""> <span style="color: rgb(9, 89, 132);" class="">version_str</span> = <span style="color: rgb(9, 89, 132);" class="">self</span>.<span style="color: rgb(99, 99, 36);" class="">run</span>(<span style="color: rgb(162, 86, 55);" class="">'xcrun'</span>, <span style="color: rgb(162, 86, 55);" class="">'--show-sdk-version'</span>, <span style="color: rgb(9, 89, 132);" class="">message_handler</span>=<span style="color: rgb(9, 89, 132);" class="">message_handler</span>, <span style="color: rgb(9, 89, 132);" class="">capture</span>=<span style="color: rgb(63, 151, 223);" class="">True</span>)</div></div><br class=""><div style="caret-color: rgb(0, 0, 0);" class=""><br class=""></div><div style="caret-color: rgb(0, 0, 0);" class="">-Patrick</div><div class=""><br class=""></div></div></div></blockquote></div><br class=""></div></body></html>