XCode 7: Unable to Convert OCUnit to XCTest

2019-05-13 23:31发布

I upgraded the XCode to 7.0 and ran into compilation issues. XCode asked me to convert my test target to use XCTest and I followed the wizard screen. I'm unable to find any test targets and cannot finish converting.

Does any one know how to fix this ?

Thanks.

enter image description here

enter image description here

enter image description here

1条回答
趁早两清
2楼-- · 2019-05-13 23:59

Make sure you have selected the scheme of your test target (in the top-left scheme selector), then select Edit -> Convert -> To XCTest... This will make Xcode recognize the appropriate target.

查看更多
登录 后发表回答