summaryrefslogtreecommitdiff
path: root/src/macdeployqt/shared/shared.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/macdeployqt/shared/shared.cpp')
-rw-r--r--src/macdeployqt/shared/shared.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/macdeployqt/shared/shared.cpp b/src/macdeployqt/shared/shared.cpp
index e4ec8c9a1..94efdb8fc 100644
--- a/src/macdeployqt/shared/shared.cpp
+++ b/src/macdeployqt/shared/shared.cpp
@@ -644,6 +644,7 @@ void recursiveCopyAndDeploy(const QString &appBundlePath, const QSet<QString> &r
QDir().mkpath(destinationPath);
LogNormal() << "copy:" << sourcePath << destinationPath;
+ const bool isDwarfPath = sourcePath.endsWith("DWARF");
QStringList files = QDir(sourcePath).entryList(QStringList() << QStringLiteral("*"), QDir::Files | QDir::NoDotAndDotDot);
foreach (QString file, files) {
@@ -651,7 +652,7 @@ void recursiveCopyAndDeploy(const QString &appBundlePath, const QSet<QString> &r
if (file.endsWith("_debug.dylib")) {
continue; // Skip debug versions
- } else if (file.endsWith(QStringLiteral(".dylib"))) {
+ } else if (!isDwarfPath && file.endsWith(QStringLiteral(".dylib"))) {
// App store code signing rules forbids code binaries in Contents/Resources/,
// which poses a problem for deploying mixed .qml/.dylib Qt Quick imports.
// Solve this by placing the dylibs in Contents/PlugIns/quick, and then