Forum > macOS / Mac OS X

I'm new, just created my first MacOS application

(1/1)

tearsfornations:
I compiled a program but when I copy the .app file from the project folder to Applications and open it, it won't start. I get a message:
You can’t open the application “JKClock.app” because it may be damaged or incomplete.
But it works fine when I double-click the project1.app file in the project folder.

I am new to macos and somewhat new to lazarus.

Thanks,

TRon:
I am not familiar with macos either. Wiki to the resque: https://wiki.freepascal.org/Deploying_Your_Application#macOS_Deployment

Josh:
it sounds as though the app in the bundle is a link to the executable?
if you open/explore your bundle you may find the app is a link, if so copy the actual executable to the location of the link.

VTwin:
As Josh said, the app only contains a link to the executable. Replacing the link (Control click "Show Package Contents") with the actual executible is required.

There are a few complications when compiling for M1 Macs because of increased security. Ask and I can provide what works for me.

Navigation

[0] Message Index

Go to full version