Qt-interest Archive, February 2007
Problem running a Qt application in Mac OS X
Message 1 in thread
Hi all. I have an app that compiles and links, and runs well within
my IDE environment. However, if I try to run the executable bundle
from Finder, or using "open" from the command line, if fails to
open. The message I get from clicking on it in the finder is as
follows:
You cannot open the application "QtClient.app"
because it may be damaged or incomplete.
However - if I go into the QtClient.app/Contents/MacOS/ directory,
and run the executable (QtClient), the application runs. I'm not
familiar enough with Mac OS X bundles, but here's what the PkgInfo
looks like:
APPL????
and my Info.plist file looks as follows:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://
www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleExecutable</key>
<string>"QtClient"</string>
<key>CFBundleGetInfoString</key>
<string>Created by Qt/QMake</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>NOTE</key>
<string>Please, do NOT change this file -- It was generated by Qt/
QMake.</string>
</dict>
</plist>
Any help is appreciated. I'm building on OS X 10.4.8, using open-
source Qt built as frameworks. This problem occurs in both Debug and
Release binaries.
-Bruno