SwiftGen: Images command fails for asset catalogs with an empty folder

@AliSoftware I need your help as I am not able to generate the source code for image asset catalog for my iOS app based on swift3. When I run the command swiftgen images App/Assets.xcassets -t swift3 --output App/Asset.swift always got the message error: failed to render template invalidInputType. I am not able to understand whats wrong with it.

I have installed the swiftgen through the homebrew and I hope it has installed the latest version. Moreover I have checked the app image asset but find no issue with them. Any idea why it is happening

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 26 (10 by maintainers)

Most upvoted comments

@AliSoftware Nothing was wrong with swiftgen. there was a blank folder in image asset catalog folder which was not letting generate the source code. As I deleted it and run the command everything started working with grace.

Thanks for your effort +1