Command /bin/sh failed with exit code 23
I resolved the same issue, I removed "Build" folder once in my project.
Same issue: upgraded to swift 2, and cocoapods -.38.2 now getting build error Command /bin/sh failed with exit code 23
But I can't use "Clean Build Folder", so I removed "Build" folder in my Mac Finder.