Application freezes on BigSur but works fine on prior releases

A C++ Qt application freezes on BigSur but works fine on prior releases. It's built on macOS Catalina with 10.15SDK

Here are few observations:
  1. codesign -dvvv displays this warning:

Code Block
Library validation warning=OS X SDK version before 10.9 does not support Library Validation


This is observed only for this application and not for other binaries that are generated on the same server with the same build environment.

2. otool -l displays:
Code Block
cmdsize 24
uuid 07737FD7-A037-3D62-A381-BB9704324FD7
Load command 9
cmd LC_VERSION_MIN_MACOSX
cmdsize 16
version 10.13
sdk n/a


I was using Xcode 11 CommandLineTools and not the Xcode. But somewhere I read I need to install Xcode to fix this and I then installed Xcode 11.4.1 but that didn't help. I'm not sure why only for this particular application (this is the only one depending on Qt and Python) has the above issues.

Please provide some inputs. Thanks
OK, This seems to be Qt issue on macOS BigSur and the suggested work-around is to export QTMACWANTS_LAYER=1
Application freezes on BigSur but works fine on prior releases
 
 
Q