Search code examples
iosxcodeios6xcode4.6

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


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


Solution

  • 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