Xcode 5.1打破了一些testing
由于更新到Xcode 5.1,我试图运行unit testing(XCTestSuite)时遇到了错误。 当我运行单独的testing方法时,在控制台上Error while reading test scope bundle
时出现Error while reading test scope bundle
并且没有结果。 当我运行testing文件的完整实现时,我看到:
Unable to get entitlements for client task. Error: Error Domain=NSPOSIXErrorDomain Code=-1 "The operation couldn't be completed. (POSIX error -1 - Unknown error: -1)"
然后testing似乎开始按预期运行。
如果您有一个名为MyApp Tests(注意空白)的testing目标,请尝试将该目标上的产品名称更改为MyApp_Tests。 产品名称将是MyApp_Tests.xctest,而不是MyApp Tests.xctest。
看起来像这是一个path问题。
我无法通过使用hjaltij的方法来运行单个testing,但添加了一个新的testing目标为我工作
TestNavigator>添加新的testing目标(加button)
然后在这个目标下创build新的testing类
- 类是在两者中实现的,其中一个将被使用。 哪一个未定义
- 带有固定页脚UIButton的TableView中的多个单元格类型
- XCTest:捆绑“目标testing”无法加载,因为它的可执行文件无法find
- 在取消分配时尝试加载视图控制器的视图。 CoreSpotlight
- 我如何使导航栏上的“添加”button做一些事情?
- 更新内部应用程序 – iOS企业开发人员计划
- 当试图在实际的Apple Watch上构build和运行WatchKit扩展时,如何避免“Error Launching”AppName“WatchKit Extension”错误?
- UISearchDisplayController显示父UITableViewController的Header Section
- Xcode 7不使用Git显示新的远程分支