1、Project-> Targets-> Build Phases-> Link Binary with Libraries 中导入 XCTest.framework 并且把后面的Required改成Optional