Nikolay Kasyanov
04/22/2021, 2:08 PMiosX64('iosX64').binaries.getByName('debugTest').linkerOpts('-framework Foundation')
but ld doesn’t seem to like this option:
The difference is that the class is from Foundation (NSURLSessionTaskTransactionMetrics) and is only available in iOS 10+. At the moment this class is only used in actual code but not in tests.
Btw, is there a way to see full ld invocations?Nikolay Kasyanov
04/22/2021, 2:10 PMNikolay Kasyanov
04/22/2021, 2:23 PMkonan.properties, -framework Foundation is already here in linkerKonanFlags.ios_x64.Nikolay Kasyanov
04/22/2021, 2:25 PMosVersionMin.ios_x64 = 10.0 doesn’t help eitherNikolay Kasyanov
04/22/2021, 2:27 PM13.0 helps, why thoNikolay Kasyanov
04/22/2021, 2:28 PMNikolay Kasyanov
04/22/2021, 2:30 PMNikolay Kasyanov
04/22/2021, 2:30 PMsvyatoslav.scherbina
04/22/2021, 3:40 PMbinary.linkerOpts("-ios_simulator_version_min", "13.0.0")Nikolay Kasyanov
04/22/2021, 3:51 PMNikolay Kasyanov
04/22/2021, 3:52 PMsvyatoslav.scherbina
04/23/2021, 9:20 AMNikolay Kasyanov
04/23/2021, 9:35 AMNikolay Kasyanov
04/23/2021, 12:58 PMNikolay Kasyanov
04/23/2021, 12:58 PMNikolay Kasyanov
04/23/2021, 12:58 PMld invocations could help 🤔svyatoslav.scherbina
04/23/2021, 1:02 PMso while trying to create an isolated reproducer, I just couldn’t. This doesn’t happen in a new project.I guess I have one:
~/.konan/kotlin-native-prebuilt-macos-1.4.32/bin/kotlinc-native -target ios_x64 test.kt -linker-option -ios_simulator_version_min -linker-option 10.0.0
where test.kt is
fun main() {
println(platform.Foundation.NSURLSessionTaskTransactionMetrics)
}Nikolay Kasyanov
04/23/2021, 1:30 PMsvyatoslav.scherbina
04/23/2021, 2:07 PM