I converted my storyboard from old project with about 30 scenes to Size Classes-enabled mode in Xcode 6. After setting constraints for at least one scene I am trying to compile project and Storyboard compile time is reaaly long. I separated storyboard to two storyboards to recompile only edited one, but looks like they are recompiled both every time (again, even though only one of them was edited):
Is there a way to set option to compile only edited Storyboard, or only pointed Storyboard? Also maybe another options are available, will glad to read in answers!
Possible solution would be to remove reference of the storyboard and add it when required. This should reduce the compilation time as it's not part of the build phase.
Other option is to remove the storyboard from "Copy Bundle Resources" found in the Build Phases tab
Seperating story boards solved compile time problem for me. I seperated my storyboard (which contains more than 40 ViewControllers) module by module so now i have 8 storyboards instead of 1 and my compile time got like 10 times faster :)
You can call your views from seperate storyboards like this in Swift :
let sb = UIStoryboard(name: "MyOtherModuleStoryBoardFileName", bundle: nil)
let targetVC = sb.instantiateViewControllerWithIdentifier("MyTargetVC") as! MyTargetViewController
self.presentViewController(targetVC, animated: true, completion: nil)
Hope it helps ;)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With