fcosta
06/20/2019, 4:13 PMCocoaPods
? The documentation says that if the module uses CocoaPods
libraries, it can be build only from Xcode
. đolonho
06/20/2019, 4:19 PMsvyatoslav.scherbina
06/20/2019, 6:14 PMsvyatoslav.scherbina
06/20/2019, 6:36 PMPaul Idstein
06/20/2019, 7:45 PMsvyatoslav.scherbina
06/21/2019, 7:42 AM_generatedSuites
is not the only blocker for running Kotlin tests from Xcode with XCTest. For example, the framework doesnât include tests by default, i.e. _generatedSuites
is empty. Do you have any suggestions on how to deal with this?Paul Idstein
06/21/2019, 2:06 PMimport XCTest
@testable import iOSDeviceTest
class iOSDeviceTestTests: XCTestCase {
func testKotlinNativeFramework() {
XCTAssert(runAllKotlinNativeTests() == 0)
}
}
fun runAllTests() = kotlin.native.internal.test.testLauncherEntryPoint(emptyArray())
Finally, this is how we generate the âtest.frameworkâ in MPP Plugin
iosArm64("ios") {
binaries {
framework('test', [RELEASE]) {
compilation = compilations.test
linkerOpts += ['-framework', 'UIKit']
}
}
}
svyatoslav.scherbina
06/21/2019, 2:48 PMfcosta
07/05/2019, 1:34 PMtargets {
final def iOSTarget = System.getenv('SDK_NAME')?.startsWith("iphoneos") ? presets.iosArm64 : presets.iosX64
fromPreset(iOSTarget, 'ios') {
binaries {
framework('client')
framework('test') {
compilation = compilations.test
linkerOpts += ['-framework', 'UIKit']
}
}
}
}
Am I doing it right?