Search code examples
macosqtqmakeinfo.plist

WARNING: Could not resolve Info.plist


I have a strange QMAKE warning:

WARNING: Could not resolve Info.plist: '../../../Qt/5.4/clang_64/mkspecs/macx-clang/Info.plist.app'. Check if QMAKE_INFO_PLIST points to a valid file.

I noticed this warning sometimes depending where I create my project in the filesystem:

  • ~/dev : the warning is triggered
  • ~/dev/test : the warning is not trigger

The consequence is that the Info.plist file is not created that make the bundle invalid.

Here is my configuration:

  • MacOS 10.9.5
  • Qt 5.4.1
  • Qt Creator 3.4.0

Solution

  • qmake creates the path to the default template Info.plist.app relative to the source directory of the project. Expected behavior would be to have it relative to the build directory. So I'd call it a Qt bug.

    In order to get rid of the error, you should have your build directory as a sibling of your source directory.