Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.4.2, 6.4.3, 6.5.0
-
None
-
-
f00280337 (dev), 3bb806fd1 (6.5)
Description
Steps
```qmake
QMAKE_APPLICATION_BUNDLE_NAME = mybundle
```
The qmake TARGET is `MacBundleId`
Using default mac info.plist template
(eg Qt/6.4.2/macos/mkspecs/macx-clang/Info.plist.app)
In this template, the CFBundleExecutable value placeholder is ${EXECUTABLE_NAME}
Expected
(1) Qt Creator able to run mac project
(2) According to doc for QMAKE_APPLICATION_BUNDLE_NAME, its value should replace the ${EXECUTABLE_NAME} placeholder,
so info.plist should contain
```
<key>CFBundleExecutable</key>
<string>mybundle</string>
```
Actual
(1) The default run profile for mac created by Qt Creator doesn't work, because Qt Creator tries to run
build-MacBundleId-Qt_6_5_0_for_macOS-Debug/MacBundleId.app/Contents/MacOS/MacBundleId
whereas qmake created the executable at
build-MacBundleId-Qt_6_5_0_for_macOS-Debug/mybundle.app/Contents/MacOS/MacBundleId
My opinion: Qt Creator is right, qmake is wrong
(2) Info.plist
```
<key>CFBundleExecutable</key>
<string>MacBundleId</string>
```
Attachments
For Gerrit Dashboard: QTBUG-112668 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
471160,2 | qmake: Fix incorrect Info.plist replacement of EXECUTABLE_NAME | dev | qt/qtbase | Status: MERGED | +2 | 0 |
471216,2 | qmake: Fix incorrect Info.plist replacement of EXECUTABLE_NAME | 6.5 | qt/qtbase | Status: MERGED | +2 | 0 |