qt5base-lts/qmake/generators
Maximilian Blochberger bbad6440ae Ensure proper format of Info.plist
The Information Property List (Info.plist) is a property list that
contains information about macOS and iOS application and framework
bundles. There are multiple supported formats, those property lists can
be stored in, most notably XML and binary.

Problem
If the Info.plist file is edited with an external editor, such as Xcode,
it is possible that it is stored in binary format. A Makefile generated
by the qmake tool contains a call to sed, which works on text but not
binary files. Consequently, this call would fail.

Solution
Since Mac OS X 10.2, the plutil tool is available. It can be used to
convert the property lists into a specific format. The plutil tool is
now used to convert the plist to XML, so that the sed invocation
succeeds.

[ChangeLog][qmake] Fixed handling binary Info.plist files in generated
Makefiles by always converting them to XML before substituting
placeholders.

Fixes: QTBUG-45357
Change-Id: I066039301c391a5034710458500a096f09e5ca24
Pick-to: 6.2 6.4
Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
2022-10-19 12:06:09 +02:00
..
mac Port from qAsConst() to std::as_const() 2022-10-11 23:17:18 +02:00
unix Ensure proper format of Info.plist 2022-10-19 12:06:09 +02:00
win32 Port from qAsConst() to std::as_const() 2022-10-11 23:17:18 +02:00
makefile.cpp Port from qAsConst() to std::as_const() 2022-10-11 23:17:18 +02:00
makefile.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
makefiledeps.cpp Port from qAsConst() to std::as_const() 2022-10-11 23:17:18 +02:00
makefiledeps.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
metamakefile.cpp Port from container.count()/length() to size() 2022-10-04 07:40:08 +02:00
metamakefile.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
projectgenerator.cpp Port from container.count()/length() to size() 2022-10-04 07:40:08 +02:00
projectgenerator.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
xmloutput.cpp Port from container.count()/length() to size() 2022-10-04 07:40:08 +02:00
xmloutput.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00