原文: Test/XCTest.h not found on old projects built in Xcode


问题描述:


fatal error: ‘XCTest/XCTest.h’ file not found

解决方法:


在报错的Target中的Building settings中FRAMEWORK_SEARCH_PATHS添加$(PLATFORM_DIR)/Developer/Library/Frameworks

1.jpeg