Skip to main content
Participating Frequently
February 27, 2024
Answered

indesign C++ sdk run demo ?

  • February 27, 2024
  • 1 reply
  • 612 views

After making some simple modifications to the InDesign C++ SDK's built-in demo and recompiling it, why does InDesign prompt that the plugin is invalid? How can this issue be resolved?

This topic has been closed for replies.
Correct answer Manan Joshi

This is strange. Either the dev env is not setup right or the recompilation is not building it properly. Do the following

  • Clean the build and then recopile and see if it resolves the issue
  • Manually delete the build folders and then recompile if the first point does not work for you

If my suspicions are right then the plugin that works for you and the one that does not should have a file size difference.

-Manan

1 reply

Olivier Beltrami
Legend
February 27, 2024

@RDI33054067w5ck  You have to make sure that the major version of the SDK that you are using is the same as that of the version of InDesign that you are using. That is to say, if you are building your plugin with SDK version 17.2.0.18 then you need to be using InDesign version 17 (aka. 2022). Additionally, the minor version of your InDesign must be the same or greater than that of the SDK you are using.  Again, if you are building your plugin with SDK version 17.2.0.18 then you need to be using InDesign version 17.2 or above (but not 18 or 19).

Participating Frequently
February 28, 2024

The version is fine, and all the examples in 'sdksamples' can be executed. However, when I modify the code in the demo, even if I just add an empty line, Xcode can compile successfully, but InDesign shows the plugin as invalid

Manan JoshiCommunity ExpertCorrect answer
Community Expert
February 28, 2024

This is strange. Either the dev env is not setup right or the recompilation is not building it properly. Do the following

  • Clean the build and then recopile and see if it resolves the issue
  • Manually delete the build folders and then recompile if the first point does not work for you

If my suspicions are right then the plugin that works for you and the one that does not should have a file size difference.

-Manan

-Manan