Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.12.7, 5.15.6, 6.2.4
-
XCode 13, iOS 14
-
-
94207621ee (qt/qtbase/dev) 94207621ee (qt/tqtc-qtbase/dev) 2b8938edeb (qt/qtbase/6.4) 2b8938edeb (qt/tqtc-qtbase/6.4) edca76bea8 (qt/qtbase/6.3) edca76bea8 (qt/tqtc-qtbase/6.3) 73278a6038 (qt/tqtc-qtbase/5.15) 47f8ef31d1 (qt/tqtc-qtbase/6.2)
Description
Defining below in .pro works fine with XCode 12
QMAKE_INFO_PLIST = $$PWD/Info.plist TRANSLATE_ja.files = $$PWD/ja.lproj/InfoPlist.strings TRANSLATE_ja.path = ja.lproj TRANSLATE_en.files = $$PWD/en.lproj/InfoPlist.strings TRANSLATE_en.path = en.lproj QMAKE_BUNDLE_DATA += TRANSLATE_ja TRANSLATE_en
plist is translated and the structure in .app is
en.lproj/InfoPlist.strings ja.lproj/InfoPlist.strings
However, this does not work with XCode 13.
plist is not translated and the result in .app is
en.lproj/en.lproj/InfoPlist.strings ja.lproj/ja.lproj/InfoPlist.strings
It works fine with XCode 13 if TRANSLATE_xx.path is not set, that is in .pro
TRANSLATE_ja.files = $$PWD/ja.lproj/InfoPlist.strings TRANSLATE_en.files = $$PWD/en.lproj/InfoPlist.strings QMAKE_BUNDLE_DATA += TRANSLATE_ja TRANSLATE_en
Sample code is attached qtbug98417.zip
Attachments
Issue Links
- relates to
-
QTBUG-35318 Xcode generator may wrongly put QMAKE_BUNDLE_DATA in Resources subdir
- Closed
For Gerrit Dashboard: QTBUG-98417 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
415925,3 | qmake: Document Xcode behavior when bundling translation files | dev | qt/qtbase | Status: MERGED | +2 | 0 |
416221,2 | qmake: Document Xcode behavior when bundling translation files | 6.4 | qt/qtbase | Status: MERGED | +2 | 0 |
416222,2 | qmake: Document Xcode behavior when bundling translation files | 6.3 | qt/qtbase | Status: MERGED | +2 | 0 |
416225,2 | qmake: Document Xcode behavior when bundling translation files | tqtc/lts-5.15 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |
416226,2 | qmake: Document Xcode behavior when bundling translation files | tqtc/lts-6.2 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |