Cannot run on the selected destinationとは何ぞや…

とあるSDKを.frameworkからソースに差し替える機会があったのだけど、作業終えてBuildしたら↓のダイアログが…。(スクリーンショット撮り忘れた)

          • -

Cannot run on the selected destination


The selected destination does not support the architecture for which the selected software is built. Switch to a destination that supports that architecture in order to run the selected software.

          • -


調べたら、出現原因は多々あるとか何とか。
今回は下記で解決できた。

1. TARGETSのBuild Setting内で各種パスを正規にした後、ウインドウ下のValidate Settingsアイコンを押す

2.Users/your_usr_name/Library/Developer/Xcode/DerivedData/ の下にあるアプリに関係するデータを削除

3.シミュレータ(又は実機)にインストールされているアプリを削除

4.Xcodeを再起動

5.Clean & Build

http://d-studio.sakura.ne.jp/wordpress/?p=400