Qt 5.10.1 ERROR ITMS-90278: "Invalid Bundle. The application bundle may not contain tools or frameworks provided by Apple, or using bundle identifiers in the 'com.apple.' namespace.
-
I am tying to create package to upload to Apple App Store.
Qt app is built for release.
Then I run macdeployqt to add files to bundle
./macdeployqt /Users/joonas/Desktop/QT/MYAPP/release/MYAPP.app -qmldir=/Users/joonas/Desktop/QT/MYAPP/src/FrontEnd/ -verbose=1 -appstore-compliantThis gives following errors
File exists, skip copy: "/Users/joonas/Desktop/QT/MYAPP/release/MYAPP.app/Contents/PlugIns/quick/libqtgraphicaleffectsplugin.dylib" File exists, skip copy: "/Users/joonas/Desktop/QT/MYAPP/release/MYAPP.app/Contents/PlugIns/quick/libqtgraphicaleffectsprivate.dylib" File exists, skip copy: "/Users/joonas/Desktop/QT/MYAPP/release/MYAPP.app/Contents/PlugIns/quick/libqtquick2plugin.dylib" File exists, skip copy: "/Users/joonas/Desktop/QT/MYAPP/release/MYAPP.app/Contents/PlugIns/quick/libwindowplugin.dylib"
If I try to use -always-overwrite I get otool errors and application does not start any more.
Now I sign the app
codesign -f --deep -s '3rd Party Mac Developer Application:' --entitlements "MYAPP.entitlements" "MYAPP.app"
Now I create and sign the pkg file
productbuild --component "MYAPP.app" /Applications --sign "3rd Party Mac Developer Installer:" --product "MYAPP.app/Contents/Info.plist" MYAPP.pkg
I try to upload the pkg file to App Store with Application Loader but I get errors
ERROR ITMS-90278: "Invalid Bundle. The application bundle may not contain tools or frameworks provided by Apple, or using bundle identifiers in the 'com.apple.' namespace. Invalid bundle: [com.xxx.MYAPP.pkg/Payload/MYAPP.app/Contents/Resources/qml/QtGraphicalEffects/libqtgraphicaleffectsplugin.dylib.dSYM], with bundle identifier 'com.apple.xcode.dsym.com.yourcompany.qtgraphicaleffectsplugin'." ERROR ITMS-90278: "Invalid Bundle. The application bundle may not contain tools or frameworks provided by Apple, or using bundle identifiers in the 'com.apple.' namespace. Invalid bundle: [com.xxx.MYAPP.pkg/Payload/MYAPP.app/Contents/Resources/qml/QtGraphicalEffects/private/libqtgraphicaleffectsprivate.dylib.dSYM], with bundle identifier 'com.apple.xcode.dsym.com.yourcompany.qtgraphicaleffectsprivate'." ERROR ITMS-90278: "Invalid Bundle. The application bundle may not contain tools or frameworks provided by Apple, or using bundle identifiers in the 'com.apple.' namespace. Invalid bundle: [com.xxx.MYAPP.pkg/Payload/MYAPP.app/Contents/Resources/qml/QtQuick.2/libqtquick2plugin.dylib.dSYM], with bundle identifier 'com.apple.xcode.dsym.com.yourcompany.qtquick2plugin'." ERROR ITMS-90278: "Invalid Bundle. The application bundle may not contain tools or frameworks provided by Apple, or using bundle identifiers in the 'com.apple.' namespace. Invalid bundle: [com.xxx.MYAPP.pkg/Payload/MYAPP.app/Contents/Resources/qml/QtQuick/Window.2/libwindowplugin.dylib.dSYM], with bundle identifier 'com.apple.xcode.dsym.com.yourcompany.windowplugin'."
Same files which were skipped above.
Similar bug lhttps://bugreports.qt.io/browse/QTBUG-57472 should be fixed.My system
macOS 10.13.4
Xcode 9.3
Qt 5.10.1
Qt Creator 4.6.0How to fix these errors? Maybe there is a workaround? Any suggestions?