ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  Code signing and notarization on the Mac.
Posted by TonyK on Oct-21-2022 17:53
Hi,

I've got an app on the Mac, placed the dylib and licence file in
/Contents/MacOS/
so they are in the same folder as the main application executable.

When I try and sign this, I always get an error about the licence file not being signed.
code object is not signed at all
In subcomponent: app/Contents/MacOS/chartdir.lic

I understand that this cannot be signed. Can the licence file be placed anywhere else so I can avoid the error and get the app signed?

Thanks in advance,

Tony.

  Re: Code signing and notarization on the Mac.
Posted by TonyK on Oct-21-2022 19:55
A bit more info.

I'm having to replace the signature on libchartdir.7.dylib and not include the chartdir.lic file. If I do this, I can sign the app and notarize the resulting DMG file successfully.

But if I include chartdir.lic in
app/Contents/MacOS/

The resulting DMG will not notarize.

This is driving me nuts!!! And I know it's not ChartDirector at fault, I just need some way to include the dylib, licence file and sign/notarize the app.

Tony.

  Re: Code signing and notarization on the Mac.
Posted by TonyK on Oct-21-2022 21:13
Some more developments.

I've just noticed the following function, which allows me to get rid of the licence file.
Chart::setLicenseCode("ABCD-ETC");

Apple refuses to notarize the app and installer if the licence file is in the app bundle, so going to experiment with this instead now.

Tony.

  Re: Code signing and notarization on the Mac.
Posted by TonyK on Oct-21-2022 21:40
Finally got things working again.

So for any others with this problem and you are using the redistributable ChartDirector licence on the Mac, don't include the licence file, use Chart::setLicenseCode instead.

Tony.