Kitchen Sink ようやく!

【環境】
・xcode4.3.2
iOS5.1
・titanium sdk2.1.0

ずっとこのエラーがでて困っていたけど、ようやく解消したのでまとめ。

dyld: Library not loaded: @rpath/DevToolsFoundation.framework/Versions/A/DevToolsFoundation
Referenced from: /Developer/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/iPhoneSimulatorRemoteClient.framework/Versions/A/iPhoneSimulatorRemoteClient   
Reason: image not found

結局Xcode.appを

/Developer/Applications

から

/Applications

に置き変えたらすんなり解決した。

やったことは、

①最新ビルドを取得
http://builds.appcelerator.com.s3.amazonaws.com/index.html

②取得したファイルを
~/Library/Application Support/Titanium
配下に上書き

Xcode>Preferences>Downloads>Command Line Toolsをインストール

④ターミナルから

sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer

※ここでもともとインストールしてたパス

/Developer/Applications/Xcode.app/Contents/Deceloper

を指定していたけどエラーが出ていた。
パス指定を間違えていました。/Developerにインストールしている場合
/Developer を指定することで正常に動作しました


⑤あとはTitanium studioでクリーンしてビルドでOKだった


このあたりいろいろ参考にさせてもらいました
https://jira.appcelerator.org/browse/TISTUD-1196
http://www.iphonedevsdk.com/forum/off-topic/35948-xcode-crash.html
http://developer.appcelerator.com/blog/2012/03/titanium-and-xcode-4-3-revisited.html