-
Bug
-
Resolution: Done
-
P1: Critical
-
5.13.1
-
None
-
Mojave 10.14.6
and latest Xcode (on 10/10/19)
Hello,
First of all, I'd want to mention the project is successfully builds and deploys on physical target.
But in case of deploying to simulator I'm getting the following error:
/:-1: error: Deployment failed. The settings in the Devices window of Xcode might be incorrect.
I tried to lunch the .xcodeproj in xcode and it looks like CFBundleVersion and CFBundleShortVersionString are missing or incorrect.
Failed to install the requested application Domain: NSPOSIXErrorDomain Code: 22 Failure Reason: The application's Info.plist does not contain CFBundleVersion. Recovery Suggestion: Ensure your bundle contains a CFBundleVersion.
My Info.plist:
<?xml version="1.0" encoding="UTF-8"?><?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"><plist version="1.0"> <dict> <key>CFBundleDisplayName</key> <string>${PRODUCT_NAME}</string> <key>CFBundleExecutable</key> <string>${EXECUTABLE_NAME}</string> <key>CFBundleGetInfoString</key> <string>Created by Qt/QMake</string> <key>CFBundleIconFile</key> <string>${ASSETCATALOG_COMPILER_APPICON_NAME}</string> <key>CFBundleIdentifier</key> <string>${PRODUCT_BUNDLE_IDENTIFIER}</string> <key>CFBundleName</key> <string>${PRODUCT_NAME}</string> <key>CFBundlePackageType</key> <string>APPL</string> <key>CFBundleShortVersionString</key> <string>${QMAKE_SHORT_VERSION}</string> <key>CFBundleSignature</key> <string>${QMAKE_PKGINFO_TYPEINFO}</string> <key>CFBundleVersion</key> <string>${QMAKE_FULL_VERSION}</string> <key>LSRequiresIPhoneOS</key> <true/> <key>MinimumOSVersion</key> <string>${IPHONEOS_DEPLOYMENT_TARGET}</string> <key>NOTE</key> <string>This file was generated by Qt/QMake.</string> <key>UILaunchStoryboardName</key> <string>LaunchScreen</string> <key>UISupportedInterfaceOrientations</key> <array> <string>UIInterfaceOrientationPortrait</string> <string>UIInterfaceOrientationPortraitUpsideDown</string> <string>UIInterfaceOrientationLandscapeLeft</string> <string>UIInterfaceOrientationLandscapeRight</string> </array> </dict></plist>
Important note: if I hard code the CFBundleVersion and CFBundleShortVersionString in .plist file it works fine from Xcode, but in case of qt it's overwrite the file every time I'm trying to deploy.
PS. : Setting
QMAKE_FULL_VERSION = 1.1.1 QMAKE_SHORT_VERSION = 1.0
doesn't help
- replaces
-
QTCREATORBUG-23076 Xcode11/iOS13/Simulator requires CFBundleVersion (was: Deployment failure with simulator using iOS 13 with Xcode11 using QtCreator 4.10.1)
-
- Closed
-