Executable damaged or incomplete

Mac OSX specific forum
WilliamL
Addict
Addict
Posts: 1252
Joined: Mon Aug 04, 2008 10:56 pm
Location: Seattle, USA

Executable damaged or incomplete

Post by WilliamL »

I've spent a few hours trying to get a program to compile and am stymied. I get the same result in 5.73.

It runs fine in the IDE but when I compile it I get and app with a line thru it and the message.

Code: Select all

You can't open the application "RandomPicts.app" because it may be damaged or incomplete.
I've taken code out and it appears to compile once then not again.

Fortunately my other apps still compile.

I've never seen this before.
MacBook Pro-M1 (2021), Sequoia 15.4, PB 6.20
User avatar
mk-soft
Always Here
Always Here
Posts: 6246
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Executable damaged or incomplete

Post by mk-soft »

Without code, no one can say much.
Maybe there is a debug for a function or libraries are missing.
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
WilliamL
Addict
Addict
Posts: 1252
Joined: Mon Aug 04, 2008 10:56 pm
Location: Seattle, USA

Re: Executable damaged or incomplete

Post by WilliamL »

Yes, I was thinking a library was missing like the ExamineDesktops, or ExamineDirectories, or InitMovie, or image decoder, or timer function but I've used all of them before and never had a problem. It's just so odd that it runs fine but won't compile and the message seems to be saying that something wasn't added when it was compiled.

I know there isn't anything you can do from there and I will just have to go back to taking out code until it compiles and go from there.

Thanks for the reply.

I would rather it was my mistake than there was a problem with PureBasic. :)
MacBook Pro-M1 (2021), Sequoia 15.4, PB 6.20
WilliamL
Addict
Addict
Posts: 1252
Joined: Mon Aug 04, 2008 10:56 pm
Location: Seattle, USA

Re: Executable damaged or incomplete

Post by WilliamL »

ok, I think I've solved the problem.

I started a new program and copied the code from the file that didn't compile to the new (blank) program. I am completely guessing, but, from reading the error message, that some libraries (?) weren't added to the compiled version. I do not know how pb keeps track of the libraries (?) it includes in the compiled version but I am guessing that the original file was somehow corrupt. The new version was 'clean' and worked fine.
MacBook Pro-M1 (2021), Sequoia 15.4, PB 6.20
Post Reply