Unit Test target doesn't run on Xcode 4.5

前端 未结 3 1521
无人共我
无人共我 2020-12-06 11:47

I\'m on the latest beta version of Xcode (Xcode 4.5 with iOS 6.0). I\'ve got an xcode project for an iphone app and I want to add a Unit Test target on it. I\'ve followed ca

相关标签:
3条回答
  • 2020-12-06 12:08

    I found that in order to get Xcode to attach to my unit tests, I had to use LLDB, GDB did not work.

    0 讨论(0)
  • 2020-12-06 12:25

    I returned to an earlier snapshot that I had - the only change being that the compiler was set to GDB instead of LLVM - and surprisingly enough that seems to have worked perfectly.

    Not sure why LLVM isn't working though.

    0 讨论(0)
  • 2020-12-06 12:32

    Xcode -> Preferences -> Locations -> Command Line Tools => Select the one matches with SDK.

    EDIT:

    EDIT 2: For some people, the above method works. If not, please try:

    It seems that this issue was a result of switching between more than one version of SDKs, and could be solved by specifying the current SDK as the active one with a terminal command(, which requires root privilege):

    $ sudo xcode-select --switch <path-to-your-current-xcode.app>
    
    0 讨论(0)
提交回复
热议问题