News for hackers. Stuff that matters.
Re:Swift 2 Apps in the App Store by jonnynezbo on Monday September 21, 2015 @04:22PM (#10254900)
+1 for mentioning the "Clean Build Folder" issue. I was stuck on that for about an hour yesterday, then I found this post:

http://stackoverflow.com/questions/32586144/upgraded-to-swif...

I didn't know about using the Alt key to reveal "Clean Build Folder", and I've been doing iOS dev for years. I'll add this to the list of unhelpful compile errors that are fixed by cleaning the build.

Re:Swift 2 Apps in the App Store by w4 on Monday September 21, 2015 @04:26PM (#10254915)
"Clean Build Folder" is basically the "turn it off, then turn it back on" of Xcode. Almost anytime you get a weird compiler error on a project that compiled fine moments ago, it's solved by "Clean Build Folder."

Definitely a good trick to know.

Re:Swift 2 Apps in the App Store by dv_says on Monday September 21, 2015 @04:39PM (#10254980)
Or for those who prefer automating, add this to ~/.bash_profile:

   alias nuke="rm -rf ~/Library/Developer/Xcode/DerivedData/"
Re:Swift 2 Apps in the App Store by vitd on Monday September 21, 2015 @05:33PM (#10255285)
That's pretty drastic. That nukes the derived data folder of all your Xcode projects. If you work on more than 1, using this to solve a problem in 1 will lead to needing to rebuild all of your projects. That seems a bit extreme for an issue in a single project.
Re:Swift 2 Apps in the App Store by seivan on Monday September 21, 2015 @05:27PM (#10255253)
I always advice people to put their DerivedData and build folder somewhere accessible. You can change it settings, don't use the default setting.
Re:Swift 2 Apps in the App Store by wingerlang on Tuesday September 22, 2015 @01:19AM (#10256753)
Good tip. As someone with quite a small main HDD I'll do this ASAP.
Re:Swift 2 Apps in the App Store by div on Monday September 21, 2015 @04:29PM (#10254927)
cmd+shift+k followed by cmd+alt+shift+k is a multiple-times-a-day incantation for me :)