upgraded to swift 2, and cocoapods -.38.2 now getting build error Command /bin/sh failed with exit code 23
I had this same issues and I cleaned the Build Folder via:
Product -> hold ALT pressed -> Clean Build Folder
Removing derived data works too Xcode -> Preferences -> Locations -> tap on the derived data arrow -> Drag the derived data folder to trash