XCode:4.6 Lion:10.8 IOS 6.1 error: SBTarget is invalid

alexqinbj picture alexqinbj · Jan 29, 2013 · Viewed 8.3k times · Source

XCode:4.6 Lion:10.8 IOS 6.1 error: SBTarget is invalid , how to solve this?

Answer

alexqinbj picture alexqinbj · Mar 7, 2013

After hundreds of times testing, I find a way that can help the programme run, here is it:

  • When you first meet SBTarget is invalid, choose Product --> Clean
  • Run again, this time you may also get error: SBTarget is invalid, it doesn't matter.
  • Turn off the XCode totally, 'totally' means that the Xcode icon should not appear in the Dock.
  • Double click your project file(xxx.xcodeproj , the blue one) to start Xcode, run again. (Do not Clean this time), and it runs ok.

Let me know if this can help you or you have any other methods. Thx