RedMadRobot / figma-export

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

How do you build figma-export from source? #63

Closed NoahHines closed 3 years ago

NoahHines commented 3 years ago

Hello, I have some feature ideas I'd like to play with. I've forked and cloned the repo, but I can't figure out what commands to run to build a local binary.

What is the workflow to make changes and test? Thanks!

subdan commented 3 years ago

Hello.

  1. Double click on Package.swift file to open the project in Xcode.
  2. Wait until SPM completes installing dependencies.
  3. Edit Scheme figma-export image
  4. Choose Run and select Arguments. Add arguments and environment variables: image

    Environment variables:

Arguments:

Enable Working Directory option and specify a path to example project. Example /Users/subdan/Documents/RMR/projects/figma-export/Examples/Example

  1. Press CMD+R to compile and run figma-export for specified example project.

  2. See logs.

    image
NoahHines commented 3 years ago

Thanks Daniil! That worked perfectly.