您想在 Podfile 中添加类似以下内容的代码 pod 'XCTest+OHHTTPStubSuiteCleanUp', '~> 1.0'
target 'MyApp' do
...
end
target 'MyAppTests' do
pod 'XCTest+OHHTTPStubSuiteCleanUp', '~> 1.0'
end
然后在终端或 CocoaPods.app 中运行 pod install
或者要测试运行,请运行以下命令
pod try XCTest+OHHTTPStubSuiteCleanUp