Error loading [plugin]:  dlopen([plugin]: no suitable image found.  Did find:
[plugin]: code signature in [plugin] not valid for use in process using Library Validation: library load disallowed by system policy

I used to code sign and notarize Adobe InDesign plugins without any problems until last year.

I am facing an issue with code signing while building a plugin for the latest Adobe InDesign. The build is done, but when I open InDesign with the plugin, there's a problem

I use this code for codesign —> 

check_call_with_env(['codesign',

'--deep','--verify',

'--verbose','--force','--timestamp',

'-o','runtime',

'--sign', ‘XYZ Pty Ltd',

env.script_root + ‘[plugin]/Versions/A/']

, env.build_env)

I am getting below message in my Notarization report.

{

 "logFormatVersion": 1,

 "jobId": "865d5a5a-ddeb-4642-a6cf-852bb97ae062",

 "status": "Invalid",

 "statusSummary": "Archive contains critical validation errors",

 "statusCode": 4000,

 "archiveFilename": "macos_QuickPrintInDesignCC19.InDesignPlugin_749.zip",

 "uploadDate": "2023-11-29T13:29:30Z",

 "sha256": "22a34d0e26d16af9f94bfe909c76bed3d155cc796521318e03ad810bca0806bd",

 "ticketContents": null,

 "issues": [

  {

   "severity": "error",

   "code": null,

   "path": "macos_QuickPrintInDesignCC19.InDesignPlugin_749.zip/QuickPrintInDesignCC19.InDesignPlugin/QuickPrintInDesignCC19",

   "message": "The signature of the binary is invalid.",

   "docUrl": "Resolving common notarization issues | Apple Developer Documentation

   "architecture": "x86_64"

  }

 ]

}


I found this error in my system log. “code signature in [app] not valid for use in process using library validation: library load disallowed by system policy”


Can anyone help me in resolving this issue? 

What steps do I need to take to fix this?

Thanks in advance for the help.


Mac mini (M1, 2020)

Posted on Nov 29, 2023 6:56 AM

Reply

Similar questions

7 replies

Nov 29, 2023 7:21 AM in response to Faizan__

Faizan__ wrote:

Can anyone help me in resolving this issue? 

I recommend contacting Apple Developer support and opening a DTS ticket.

What steps do I need to take to fix this?

You have to correct your code signing errors. But since nobody knows the details of what you are doing, they can't provide much assistance. You can securely provide more details to Apple. I can tell you right away that your code signing is wrong. You shouldn't be using "--deep". If you want more information without opening a DTS ticket, there's a help URL right there in your error report.

Dec 27, 2023 9:06 PM in response to MrHoffman

Thank you MrHoffman for your response.

I have gone through the doc with the help of this I made changes but the issue persist.

You know what is strange in all the thing is that i used same line of code for codesign to Adobe Illustrator 2024 which do the codesign properly without any issue.

Below is the code used for codesign to Adobe Illustrator 2024.


check_call_with_env(['/usr/bin/codesign',
							'--deep','--verify',
							'--verbose','--force','--timestamp',
							'-o','runtime',
							'--sign', 'XYZ Pty Ltd',
							env.script_root + '/[plugin].aip']
							, env.build_env)

Dec 27, 2023 9:14 PM in response to etresoft

Thank you etresoft.

Yes I don't get any specific details about the error occured during codesign.

I just commented the code of codesign, build the plugins then only i get the same error

Error loading [plugin]: dlopen([plugin]: no suitable image found. Did find:
[plugin]: code signature in [plugin] not valid for use in process using Library Validation: library load disallowed by system policy



So the conclusion is i don't have any specific reason why this error occured.

Feb 26, 2024 9:05 PM in response to Faizan__

Thank you everyone for you support

My issue had been resolved.


After working for long time on this issue, i tried to check every possibility, later i found when i copy my plugin to other folder there is issue while copying the file, my file got larger.

In reality there was no issue with Codesign and Notarization.



Thank you so much @MrHoffman and etresoft for your help

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Error loading [plugin]:  dlopen([plugin]: no suitable image found.  Did find:
[plugin]: code signature in [plugin] not valid for use in process using Library Validation: library load disallowed by system policy

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.