nestserau
12/17/2018, 11:30 AMNSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9807)
I understand that I need to add NSAllowsArbitraryLoads
into the Info.plist. But how do I do it with Kotlin? There is no Info.plist
.svyatoslav.scherbina
12/17/2018, 11:31 AMnestserau
12/17/2018, 11:36 AMsvyatoslav.scherbina
12/17/2018, 11:41 AMInfo.plist
.nestserau
12/17/2018, 12:20 PMsvyatoslav.scherbina
12/18/2018, 8:57 AMInfo.plist
and test binary into it, and then use the binary from this bundle.nestserau
12/18/2018, 9:12 AMnestserau
12/20/2018, 10:47 AMtask 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
}
}
}
svyatoslav.scherbina
12/20/2018, 11:37 AM