You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I see this library import XCTest: #if canImport(XCTest) import XCTest #else private func XCTFail(_ message: String = "", file: StaticString = #filePath, line: UInt = #line) { } #endif
and this is for unit test;
but if we want to use it in our main target, can we just remove the:
import XCTest
and adding the framework to the main build target? any concern?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I see this library import XCTest:
#if canImport(XCTest) import XCTest #else private func XCTFail(_ message: String = "", file: StaticString = #filePath, line: UInt = #line) { } #endifand this is for unit test;
but if we want to use it in our main target, can we just remove the:
import XCTest
and adding the framework to the main build target? any concern?
Beta Was this translation helpful? Give feedback.
All reactions