Fix creating optional file#547
Conversation
|
Hi @KyoheiG3. I'm not sure what this fixes? |
| case .group: | ||
| if targetSource.optional { | ||
| // Is optional so if it doesn't exist just return an empty array | ||
| return [] |
There was a problem hiding this comment.
This isn't checking if a directory exists, so it would always return nothing
|
Hi @yonaskolb This pull request is my colleague's. How should we fix? |
|
I think there is a pre gen hook or at least it was mentioned in another issue. Right now I deal with this by either having blank files (we don't use swiftgen for storyboard so files are known in advance) or running swiftgen once before Xcode gen. |
|
Comments left in #546 |

Fixes #546.