Qt-interest Archive, August 2007
OSX - LSOpenFromURLSpec
Message 1 in thread
Every now and then I get this and I have no idea what causes it:
-I double click a bundle I created and I get the error message:
"you cannot open the application "myapp" because it may be damaged or
incomplete."
-I run:
% open myapp.app
from the command line and I get this error:
LSOpenFromURLSpec() returned -10827 for application (null) urls
file://localhost/Users/username/Code_Related/myapp/myapp.app/.
But...
If I run:
% myapp.app/Contents/MacOs/myapp
it works fine.
Again this problems comes and goes and I have no idea where to begin...
Thanks...
-Willy
--
[ signature omitted ]
Message 2 in thread
Which version of Qt do you have? I had this problem with 4.2.3., when I
used XCode for the project. 4.3.0 works fine even with XCode.
Willy P wrote:
> Every now and then I get this and I have no idea what causes it:
>
> -I double click a bundle I created and I get the error message:
> "you cannot open the application "myapp" because it may be damaged or
> incomplete."
>
> -I run:
> % open myapp.app
> from the command line and I get this error:
>
> LSOpenFromURLSpec() returned -10827 for application (null) urls
> file://localhost/Users/username/Code_Related/myapp/myapp.app/.
>
> But...
>
> If I run:
> % myapp.app/Contents/MacOs/myapp
>
> it works fine.
>
> Again this problems comes and goes and I have no idea where to begin...
>
> Thanks...
>
> -Willy
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>
>
>
>
--
[ signature omitted ]
Message 3 in thread
I'm using 4.2.2
On 8/16/07, Jens Idelberger <dayang140272@xxxxxxx> wrote:
> Which version of Qt do you have? I had this problem with 4.2.3., when I
> used XCode for the project. 4.3.0 works fine even with XCode.
> Willy P wrote:
> > Every now and then I get this and I have no idea what causes it:
> >
> > -I double click a bundle I created and I get the error message:
> > "you cannot open the application "myapp" because it may be damaged or
> > incomplete."
> >
> > -I run:
> > % open myapp.app
> > from the command line and I get this error:
> >
> > LSOpenFromURLSpec() returned -10827 for application (null) urls
> > file://localhost/Users/username/Code_Related/myapp/myapp.app/.
> >
> > But...
> >
> > If I run:
> > % myapp.app/Contents/MacOs/myapp
> >
> > it works fine.
> >
> > Again this problems comes and goes and I have no idea where to begin...
> >
> > Thanks...
> >
> > -Willy
> >
> > --
> > To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with "unsubscribe" in the subject or the body.
> > List archive and information: http://lists.trolltech.com/qt-interest/
> >
> >
> >
> >
>
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>
>
--
[ signature omitted ]
Message 4 in thread
I figured it out. A bunch of people on other sites were complaining
about damaged "Info.plist" files and getting the same behaviour I was
mentioning. I fiddled around with it for while and got it to work.
In Info.plist there is a line that looks like:
<string>"myAppName"</string>
Change it to:
<string>myAppName</string>
So no quotes and it's fine.
For good measure you may also want to delete the line that says:
<string>Please, do NOT change this file -- It was generated by
Qt/QMake.</string>
;)
This only seems to be a problem when I build my deployment bundle. So
in my deployment script I just copy the modified Info.plist on top the
one they created...
Hope this helps someone one day...
-Willy
On 8/16/07, Willy P <willy.lists@xxxxxxxxx> wrote:
> I'm using 4.2.2
>
>
> On 8/16/07, Jens Idelberger <dayang140272@xxxxxxx> wrote:
> > Which version of Qt do you have? I had this problem with 4.2.3., when I
> > used XCode for the project. 4.3.0 works fine even with XCode.
> > Willy P wrote:
> > > Every now and then I get this and I have no idea what causes it:
> > >
> > > -I double click a bundle I created and I get the error message:
> > > "you cannot open the application "myapp" because it may be damaged or
> > > incomplete."
> > >
> > > -I run:
> > > % open myapp.app
> > > from the command line and I get this error:
> > >
> > > LSOpenFromURLSpec() returned -10827 for application (null) urls
> > > file://localhost/Users/username/Code_Related/myapp/myapp.app/.
> > >
> > > But...
> > >
> > > If I run:
> > > % myapp.app/Contents/MacOs/myapp
> > >
> > > it works fine.
> > >
> > > Again this problems comes and goes and I have no idea where to begin...
> > >
> > > Thanks...
> > >
> > > -Willy
> > >
> > > --
> > > To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with "unsubscribe" in the subject or the body.
> > > List archive and information: http://lists.trolltech.com/qt-interest/
> > >
> > >
> > >
> > >
> >
> >
> > --
> > To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with "unsubscribe" in the subject or the body.
> > List archive and information: http://lists.trolltech.com/qt-interest/
> >
> >
>
--
[ signature omitted ]
Message 5 in thread
> I figured it out. A bunch of people on other sites were complaining
> about damaged "Info.plist" files and getting the same behaviour I was
> mentioning. I fiddled around with it for while and got it to work.
>
[...]
>
> This only seems to be a problem when I build my deployment bundle. So
> in my deployment script I just copy the modified Info.plist on top the
> one they created...
>
> Hope this helps someone one day...
>
> -Willy
How about reporting this to qt-bugs@xxxxxxxxxxxxx so they can fix it? :)
Cheers,
Peter
--
[ signature omitted ]
Message 6 in thread
It always seems to get "fixed" when I play w/ my .pro file. I'm not
sure which qmake variables are affecting it. If someone could narrow
this down it would be great. It's working again right now, but I'm
sure it won't be soon...
-Willy
On 8/16/07, Willy P <willy.lists@xxxxxxxxx> wrote:
> Every now and then I get this and I have no idea what causes it:
>
> -I double click a bundle I created and I get the error message:
> "you cannot open the application "myapp" because it may be damaged or
> incomplete."
>
> -I run:
> % open myapp.app
> from the command line and I get this error:
>
> LSOpenFromURLSpec() returned -10827 for application (null) urls
> file://localhost/Users/username/Code_Related/myapp/myapp.app/.
>
> But...
>
> If I run:
> % myapp.app/Contents/MacOs/myapp
>
> it works fine.
>
> Again this problems comes and goes and I have no idea where to begin...
>
> Thanks...
>
> -Willy
>
--
[ signature omitted ]