AMoreaux / Sketch-Icons

🚀 Generate a dynamic icon library
https://sketchicons.com
MIT License
879 stars 45 forks source link

Sketch-Icons Error, Import does not do anything #61

Closed reneconrad closed 4 years ago

reneconrad commented 4 years ago

I have a problem when I tried importing .svg files. The plugin log tells me this

TypeError: context.api is not a function. (In 'context.api()', 'context.api' is null)

Is there anything I can do to fix this?

Here is my device Information: MacOS version : 10.15.4 Sketch Version : Version 66.1

Thank you very much.

uxvnpacheco commented 4 years ago

same here

AMoreaux commented 4 years ago

Hi,

Since Apple releases the Catalina version, they have added new security to execute some type of code (like framework written in Objective-C). To disable this security on the developer side, Apple asks to be part of the Apple developer program at 99$. 
If you had ever seen this message it may be the origin of the problem.

Screenshot 2020-05-28 at 18 56 52

To fix that you need to

  1. Uninstall Sketch Icons
  2. Close sketch
  3. Reinstall Sketch Icons
  4. Go to Preference system > security and privacy > general > click on “Allow anyway” Screenshot 2020-05-28 at 19 16 22

    After that, you can reopen Sketch, run Sketch Icons. You will see the last warning modal. Click on open. And voilĂ .

uxvnpacheco commented 4 years ago

Hi, thank you for your feedback.

But unfortunately it didn't solve the problem.

:/

AMoreaux commented 4 years ago

I released version 5.0.1 which should solve the problem.

uxvnpacheco commented 4 years ago

@AMoreaux Awesome! Everything works fine now.

I released version 5.0.1 which should solve the problem.

reneconrad commented 4 years ago

Thank you so much @AMoreaux Now it works!