krzyzanowskim / Natalie

Natalie - Storyboard Code Generator (for Swift)
http://blog.krzyzanowskim.com/2015/04/15/natalie-storyboard-code-generator/
MIT License
1.17k stars 74 forks source link

How do you handle when you delete storyboards? #127

Closed aabanaag closed 6 years ago

aabanaag commented 6 years ago

I deleted storyboard(s) from my project and Storyboards.swift is causing the build to fail. How do you fix the issue where you don't go manually and comment-out Storyboards.Board from all of the code?

phimage commented 6 years ago

Build failed? Why do not provide the errors, this could help

Then did you regenerate the file using natalie after deleting your storyboard?

aabanaag commented 6 years ago

image

sorry for the late response, got side tracked doing something else. anyways, here is the sample error. I'm using the build script to generate the storyboards.swift but since I deleted a storyboard it is throwing an error above. If I delete the storyboards.swift I would end-up commenting all of the references in my project for Storyboards.xxxx which is kinda cumbersome.

phimage commented 6 years ago

If you regenerate the Storyboards.swift file, you have BadgeViewController not in the same compilation target or not in your project but in your file system

You can specify the folder to look for storyboards files

aabanaag commented 6 years ago

Got it by manually regenerating the file from the terminal. I initially thought the build script can handle such task. Thanks by the way!