Method 1
This error appears every time you upgrade Xcode
so you can delete the cache file in qt before building or just delete when you get an error
rm {your target build folder}/.qmake.stash
or
rm {your project folder}/.qmake.stash
if you do not know where to find .qmake.stash , try
find ~ -name .qmake.stash
Method 2
Not recommended because you may get a build error when using Xcdoe APP
iphoneOS
cd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/ sudo ln -s iPhoneOS.sdk iPhoneOS{version}.sdk
iPhoneSimulator
cd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/ sudo ln -s iPhoneSimulator.sdk iPhoneSimulator{version}.sdk
source share