Skip to main content
joshua_d_boyd
Participant
December 19, 2019
Question

Upgrading plugin project from CC2019 to CC2020 SDK, tool icons don't appear

  • December 19, 2019
  • 2 replies
  • 577 views

I upgraded my AI SDK to the 2020 version, and fixed the assorted compile errrors that occurred.  I am using XCode 10.3, and Illustrator 24.0.1.

 

I converted my icons to SVGs.  I added the create_pipl script to the MacOS build phase.  I also removed the old PNGs from the .r file, created the new IDToFile.txt file, and added the post build steps to copy the .pipl, IDToFile.txt, and various SVGs into the correct places in the Resource directory of the build output, using the MultiArrowTool project as my guide.

I also added the line:

        toolData.iconType = ai::IconType::kSVG;

after my line:

        toolData.normalIconResID = iconName[i];

mirroring what was done in the MultiArrowTool source code.

 

At this point, my tools appear in the toolbar, with their names, but their icons don't appear next to them.  I don't see any errors that appear at all relevent in the debug output in XCode.  I'm at a bit of a loss on what I might be missing.

This topic has been closed for replies.

2 replies

Inspiring
July 6, 2022

Hello,

although this entry is more than 2 years old, I would like to share my findings.

Maybe it will still help a future reader.

 

I also wanted to switch from PNG-icons to SVG-icons and used the sample-project "MultiArrowTool" as guide.

Then I had the same issue: My tools appeared in the toolbar, but their icons were not shown.

 

The solution was to change the names of the icon files.

Somehow the name of each SVG-icon file needs to follow this naming-scheme:

S_YourIconName_Lg_N@2x.svg

 

I have not investigated further why Illustrator needs such a naming-convention or what "_Lg_N@2x" means, but at least it was working in my case.

Hope it helps.

Inspiring
December 19, 2019

Hello,

 

I had the same problem.

To solve it, before launching Illustrator, your plug-in being in the plug-ins folder, right click on it and choose

Show package contents/Contents/Resources/

In the Resources folder, you'll see your icons and a svg folder. Move your icons into the svg folder.

Wihen you launch Illustrator, everything is OK.

 

 

joshua_d_boyd
Participant
December 27, 2019

My svg icons are already in Resources/svg. I guess "SVGs into the correct places in the Resource directory" could have been more explicit. I apologise.