RedMadRobot / figma-export

Command line utility to export colors, typography, icons and images from Figma to Xcode / Android Studio project
MIT License
718 stars 114 forks source link

Can not export colors in 0.32.2 #160

Closed ink1804 closed 2 years ago

ink1804 commented 2 years ago

I tried to export colors with new version 0.32.2 but an error appears. AndroidExport/resource_bundle_accessor.swift:27: Fatal error: unable to find bundle named figma-export_AndroidExport zsh: trace trap figma-export colors in version 0.23.4 everything is ok. I tried many files, even from yours example and the result is the same.

Any idea whats happened?

subdan commented 2 years ago

Hello. I will check it out and get back to you.

subdan commented 2 years ago

How did you install FigmaExport: via homebrew or download zip from Releases page?

subdan commented 2 years ago

The error says that file figma-export_AndroidExport.bundle could not be found. This file contains Stencil templates FigmaExport uses since 0.32.0. If you use Homebrew this file is installed automatically. If you use manual installation from zip file please check that the bundle file located near the figma-export binary file.

What is you OS: macOS, Windows or Linux?

ink1804 commented 2 years ago

@subdan from homebrew, but i had to copy figma-export file into usr/local/bin, because android studio doesn't use default brew path. Mac os

subdan commented 2 years ago

So, you need to copy all the files to fix the issue.

image
subdan commented 2 years ago

Also try to add a symlink to figma-export file inside usr/local/bin

ink1804 commented 2 years ago

@subdan for real, i missed it! Now its working, thank you very much!