Another day, another bizzare Xcode error.
While working on my newest app, Gym Calculator, I came across a very strange problem. I had initially set my Deployment Target to iOS 4.3. since I didn’t need any fancy new iOS 6 features. However, I couldn’t build, because my project was using Storyboards, which 4.3 doesn’t support. Xcode helpfully gave me the error message
Storyboards are unavailable on iOS 4.3 and prior
Right, no problem then! I’ll just switch to iOS 5 instead. And… same error. Ok, how about a clean and rebuild? Same error. Restart Xcode? Same error.
After some frustration and head-scratching, I stumbled across a long StackOverflow question discussing the problem. The answer that worked for me – hidden in a sea of less useful answers – was C Fraire’s:
The solution that worked for me was just to delete the ~/Library/Developer/Xcode/DerivedData directory for my project.
So in case anybody else runs into this problem, here’s your solution! (Or at least one potential solution that did the trick for me)