Closed pavelko3lov closed 3 years ago
Which version of FigmaExport do you use?
figma-export --version
I've removed fontExtensionDirectory
property in 0.12.0 version. Please update FigmaExport to the latest version.
Thanks, I've updated figma-export to 0.18.5 and now have slightly another error:
Error: keyNotFound(CodingKeys(stringValue: "xcodeprojPath", intValue: nil), Swift.DecodingError.Context(codingPath: [CodingKeys(stringValue: "ios", intValue: nil)], debugDescription: "No value associated with key CodingKeys(stringValue: \"xcodeprojPath\", intValue: nil) (\"xcodeprojPath\").", underlyingError: nil))
appreciate for any help.
I added xcodeprojPath
parameter to FigmaExport since 0.13.0. Read documentation for actual config.
Okay) thanks
Now:
2020-12-18T21:13:26+0300 info com.redmadrobot.figma-export : Using FigmaExport to export colors. 2020-12-18T21:13:26+0300 info com.redmadrobot.figma-export : Fetching colors. Please wait...
Error: keyNotFound(CodingKeys(stringValue: "color", intValue: nil), Swift.DecodingError.Context(codingPath: [CodingKeys(stringValue: "nodes", intValue: nil), _JSONKey(stringValue: "739:0", intValue: nil), CodingKeys(stringValue: "document", intValue: nil), CodingKeys(stringValue: "fills", intValue: nil), _JSONKey(stringValue: "Index 0", intValue: 0)], debugDescription: "No value associated with key CodingKeys(stringValue: \"color\", intValue: nil) (\"color\").", underlyingError: nil))
Where I can find documentation about this part ?
The error says that you have incorrect Figma's Color Style. Read Design requirements.
Did you publish color styles to the team library?
All the Color Styles in your FIgma file should consist of only solid colors. There shouldn't be gradients or bitmap fills.
Could you please give me an access to your Figma file so I can check it?
Thanks, I'm ready to close the issue. But we cannot export images:
2020-12-21T15:00:17+0300 info com.redmadrobot.figma-export : Using FigmaExport to export images to Xcode project. 2020-12-21T15:00:17+0300 info com.redmadrobot.figma-export : Fetching images info from Figma. Please wait... Error: Components not found in the Figma file. Have you published Components to the Library?
In Figma we have Images in separate Page. Could this be the reason. ?
What is your Figma plan? Free, Professional or Organization? FigmaExport uses Shareable team libraries which available only for Professional and Organization plan.
It's Professional.
Ensure that you have published all the images to your team library.
Open Team Library:
Choose your Library:
Ensure that the Library contains all the images:
Ok, Thank you. We will try to move images to the same page as icons.
When I export I get this error. What I can do?
Using FigmaExport to export colors.
It is in your Example iOS Demo Project.