7

Xcode 4 Preview 4 displays "Build Succeeded", as show the image below there are 5 erros. Actually there are more than 5 errors, but it seems that Xcode doesn't build anymore. It happened when i built the project in xcode 3 while the xcode 4 was open with the same project. Anyone have an idea to overcome this bug and reestablish the Xcode??

alt text

I tried to restart the Xcode, restart the mac. I don't know how to clean up the build. The "clean all" option in Product menu is unable.

Thanks in advance.

4

4 に答える 4

2

Buildディレクトリに移動して、すべてを削除してみてください。

Xcode 3 の場合、ビルド ディレクトリは通常、メイン プロジェクト フォルダー内にあります。xcode 4 の場合、この質問で説明されているように、デフォルトで~/Library/Developer/Xcode/DerivedData.

また、ターゲットがシミュレーター内で実行されている場合、ターゲットをクリーンアップできないことに注意してください (ただし、この場合は当てはまらないようです)。

于 2010-12-05T19:06:11.007 に答える
-1

私にとっては、以下が機能しました:

  1. 「File Inspector」に移動し、「Target Membership」の下のターゲットのチェックを外します
  2. プロジェクトをビルドします (おそらくクリーン ビルドも)
  3. 「ターゲットメンバーシップ」の下でチェックされていないターゲットを確認します
  4. プロジェクトをビルドする
于 2019-06-17T18:46:29.233 に答える