Could not launch ”xxxx”

2014年3月4日

最近、またXcodeで開発することがあったのだが、なんか実機で起動できなくなってしまった!!
やはり、最底辺は、Windo○sと戯れていろということか。
Could not launch ”xxxxx.app”
No such file or directory (/Users/[username]/Library/Developer/Xcode/DerivedData/アプリ名-saodfijaosdfjaosdijfa/Build/Products/Debug-iphoneos/xxxxx.app/xxxxx)
てな感じのエラーになっている。
試しに上記のディレクトリを覗いてみると、む?ちゃんとxxxxxあるな。
Xcodeを立ち上げなおしても、マシンを再起動しても治らない。
う~ん。困った。やはり、ここは、グーグル先生の出番だろう。
早速、見つけた。どうやら、DerivedDataフォルダを一回消したほうがいいらしい。
http://rakuishi.com/iossdk/4515/
ということで、以下で無事解決!!

$ cd /Users/[username]/Library/Developer/Xcode
$ rm -rf DerivedData

Objective-c

Posted by koheizi