Details
-
Bug
-
Resolution: Invalid
-
P1: Critical
-
None
-
5.14.2, 6.3.0
-
None
-
Mac Mini M1
Description
The application deployed using macdeployqt does not pass xcrun altool --validate-app and I am not able to upload it to the appstore. I've tested with Qt 5.14.2 and 6.3.0.
After running macdeployqt, when I'm checking the app with xcrun altool, I'd get "No suitable application records were found. Verify your bundle identifier 'org.qt-project.QtQuickControls2' is correct and that you are signed into Xcode with an Apple ID that has access to the app in App Store Connect." error, even though the generated Info.plist file in ~/App.app/Contents/ has the correct bundle id (SomePrefix.AppName).
Steps to reproduce the bug:
1. Create an app identifier in developer.apple.com, that will match my application. (You're going to need an apple developer account for this, and some further actions in shell commands)
2. Build a release build of the app.
3. Shell commands I run (I had to replace paths and some personal identification details):
- xcrun altool --validate-app --type macos -username YourAppleId --password YourApplePassword --file /Path/To/Build/QtTestApp.app
#After running xcrun altool command the first time, I'd get "Could not find the main bundle or the Info.plist is missing a CFBundleIdentifier" error.
#Path to macdeploy is ussualy: ~/QtInstallationDir/QtVersion/macos/bin
#To get codesign value you'd have to run "security find-identity -v -p codesigning" command and copy your apple developer account id (40 chars length, made up of random chars and numbers)
- /Path/To/macdeployqt /Path/To/Build/QtTestApp.app -qmldir=/Path/To/Project/QtTestApp -codesign=somecode
#Returns app signing info, if signing was succesful during deployment
- codesign -dv /Path/To/Build/QtTestApp.app
- xcrun altool --validate-app --type macos -username YourAppleId --password YourApplePassword --file /Path/To/Build/QtTestApp.app
#Running this command after macdeployqt, errors I'd get:
#Qt5.14.2: "No suitable application records were found. Verify your bundle identifier 'org.qt-project.QtPrintSupport' is correct and that you are signed into Xcode with an Apple ID that has access to the app in App Store Connect.""
#Qt6.3: "No suitable application records were found. Verify your bundle identifier 'org.qt-project.QtQuickControls2' is correct and that you are signed into Xcode with an Apple ID that has access to the app in App Store Connect."