Thank you so much for creating this tutorial! I’ve worked through the first tutorial yet hit a snag early on part 2 and was wondering if you could help:
Added the new ViewControllerTests file and set the Storyboard ID in the Identity Inspector, only to find that I get an NSInvalidArgumentException (??) Tried to check against the completed version and didn’t notice any difference. Is there possibly something else which may have been overlooked?
I have encountered this problem with Xcode several times in various projects. I have a number of things I try and eventually one works :]
In Xcode: Product menu → Clean
In Xcode: Product menu, hold down Option → Clean Build Folder
In Finder: go to ~/Library/Developer/Xcode/DerivedData and delete any folders relating to this project
In Xcode: clear the Storyboard ID, build the app, then re-enter the Storyboard ID making sure there are no invisible characters (I usually just copy & paste from the Class field).
Hopefully one of all of these will solve the problem.
This tutorial is more than six months old so questions are no longer supported at the moment for it. We will update it as soon as possible. Thank you! :]