-
Notifications
You must be signed in to change notification settings - Fork 564
IOS tests and info.plist #2426
Comments
Could you provide an example of |
I'm trying to do a test with netowrk, and it fails because by default IOS doesn't allow unsecure(or old ssl vertions, or not trusted cert) connnections. I'm not expert at IOS, maybe there is some other way to bypass it |
|
Okay. I'll try this some time later when I have the time. Don't close the issue for now |
You can try this Gradle task proposed by Aleks Nestserau: task iosTest {
def device = project.findProperty("iosDevice")?.toString() ?: "iPhone 8"
dependsOn 'linkTestDebugExecutableIos'
group = JavaBasePlugin.VERIFICATION_GROUP
description = "Runs tests for target 'ios' on an iOS simulator"
doLast {
def binary = kotlin.targets.ios.compilations.test.getBinary('EXECUTABLE', 'DEBUG')
def infoPlistSrc = file("$rootProject.projectDir/src/iosTest/resources/Info.plist")
def infoPlistDest = file("$binary.parentFile/Info.plist")
Files.copy(infoPlistSrc.toPath(), infoPlistDest.toPath(), StandardCopyOption.REPLACE_EXISTING)
exec {
commandLine 'export', 'SIMCTL_CHILD_CFNETWORK_DIAGNOSTICS=3'
commandLine 'xcrun', 'simctl', 'spawn', device, binary.absolutePath
}
}
} |
According to migrating issue tracking to YouTrack, closing this issue in favour of KT-37818 which describes test resources as a more general feature. |
Currently when running ios test with command
xcrun simctl spawn iPhone 8 text.kexe
generatedtest.kexe.DYSM/Contents/info.plist
desn't affect the test environment in any way. Is it supposed to work or do we have to find some other way to run tests with modifiedinfo.plist
?The text was updated successfully, but these errors were encountered: