I have problems using macdeployqt
with arm64 build. I am on Apple Silicon M1 machine with macOS12 (Monterey). I have installed Qt 6.2.1 and XCode 13.1.
I created a very simple console application.
#include <QDebug>
int main()
{
qDebug() << "Hello world.";
}
with qmake PRO file:
QT -= gui
CONFIG += c++11 console
SOURCES += main.cpp
I call qmake
with QMAKE_APPLE_DEVICE_ARCHS="arm64"
. It successfully creates app bundle.
Then I try to run macdeployqt
from Qt 6.2.1 bin directory:
./macdeployqt /Users/vk/build-ConsoleApp-Qt_6_2_1_for_macOS_XCode-Release/ConsoleApp.app
...and I receive lots of messages:
ERROR: Could not parse otool output line: "/Users/vk/Qt/6.2.1/macos/lib/QtSvg.framework/Versions/A/QtSvg (architecture arm64):"
ERROR: Could not parse otool output line: "/Users/vk/Qt/6.2.1/macos/lib/QtWidgets.framework/Versions/A/QtWidgets (architecture arm64):"
ERROR: Could not parse otool output line: "/Users/vk/Qt/6.2.1/macos/lib/QtGui.framework/Versions/A/QtGui (architecture arm64):"
ERROR: Could not parse otool output line: "/Users/vk/Qt/6.2.1/macos/lib/QtNetwork.framework/Versions/A/QtNetwork (architecture arm64):"
...
How can I fix this?