创建unit test文件

File->New->Target…->macOS Unit Testing Bundle,然后导入需要测试的类开始验证。
Object-C Commmand Line Tool 模式下使用unit test
Object-C Commmand Line Tool 模式下使用unit test
Object-C Commmand Line Tool 模式下使用unit test

解决’XCTest/XCTest.h’ file not found

Build Settings->Search Paths->Framework Search Paths添加:
$(PLATFORM_DIR)/Developer/Library/Frameworks
Object-C Commmand Line Tool 模式下使用unit test

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-06-26
  • 2021-10-27
  • 2021-10-09
  • 2021-06-29
  • 2021-06-04
  • 2022-01-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-13
  • 2022-12-23
  • 2021-08-06
  • 2022-12-23
  • 2021-05-25
相关资源
相似解决方案