phldavies
07/20/2020, 4:31 PMTensorFlowLiteC
and/or TensorFlowLiteObjC
from my iosMain
but when I build in XCode it always complains about undefined symbols when linking. For example, adding pod("TensorFlowLiteC")
to the KaMPKit Starter and adding println(TfLiteVersion().toKString())
to the initKoin {}
block in KoiniOS.kt
results in
Showing All Messages
Undefined symbols for architecture x86_64:
"_TfLiteVersion", referenced from:
_cocoapods_TensorFlowLiteC_TfLiteVersion_wrapper17 in result.o
ld: symbol(s) not found for architecture x86_64
when building in XCode (from the gradle output)
I’m stumped as to what to look into next.Marko Mitic
07/20/2020, 5:25 PMJoão Gonçalves
07/20/2020, 11:00 PMserebit
07/21/2020, 9:20 PMsalomonbrys
07/22/2020, 8:04 AMnw_parameters_create_secure_tcp(
NW_PARAMETERS_DISABLE_PROTOCOL, // No TLS
NW_PARAMETERS_DEFAULT_CONFIGURATION // Default TCP config
)
However, iOS gives me a very weird error:
_nw_parameters_configure_protocol_disable_block_invoke _nw_parameters_configure_protocol_disable called directly, dumping backtrace:
[x86_64] libnetcore-1880.120.4
0 libnetwork.dylib 0x00007fff5118d1f8 __nw_create_backtrace_string + 120
1 libnetwork.dylib 0x00007fff5100a898 _nw_parameters_configure_protocol_disable_block_invoke + 120
2 PhoenixShared 0x00000001099af1b5 _70686f656e69783a70686f656e69782d736861726564_knbridge41 + 37
3 PhoenixShared 0x0000000109972eac kfun:fr.acinq.phoenix.io.BlockFunctionImpl16.invoke#internal + 220
4 PhoenixShared 0x0000000109972fbf kfun:fr.acinq.phoenix.io.BlockFunctionImpl16.$<bridge-UNNN>invoke(platform.darwin.NSObject?){}#internal + 95
5 PhoenixShared 0x000000010997342b _70686f656e69783a70686f656e69782d736861726564_knbridge47 + 251
6 libnetwork.dylib 0x00007fff5100d7b6 nw_parameters_create_secure_tcp + 342
...
Anyone knows what the frack ?natario1
07/23/2020, 11:17 AMe: Could not find "library" in [/Users/natario/Projects/project/project-name, /Users/natario/.konan/klib, /Users/natario/.konan/kotlin-native-macos-1.3.72/klib/common, /Users/natario/.konan/kotlin-native-macos-1.3.72/klib/platform/android_arm64].
But nothing I have is called "library", does anyone have any hints?
If I run the task with --info I can see the command that is failing (it's huge, but this should be the core part... ...kotlin-native.jar org.jetbrains.kotlin.cli.utilities.MainKt cinterop -o...
). None of the arguments to this is called "library", I just see some -library <http://path.to|path.to>.klib
which are the libraries that are being cinterop-ed.Elka
07/24/2020, 11:44 AMdyld: Library not loaded: /usr/lib/libate.dylib
Referenced from: /private/var/containers/Bundle/Application/59E0AF1E-EF30-4E00-8C12-C85768FA992A/Example.app/Frameworks/Core.framework/Core
Reason: image not found
The Kotlin framework is a FAT framework. (targets arm32 and arm64)spierce7
07/24/2020, 7:34 PMBig Chungus
07/24/2020, 8:37 PMcaffeine
07/24/2020, 9:27 PMBig Chungus
07/25/2020, 10:43 AMBig Chungus
07/27/2020, 1:07 AMraniejade
07/28/2020, 7:55 AM1.4.0-rc
, the compilation of our project after a single line change has significantly increased, from 30-40secs in 1.3.71
and to 3mins+
in 1.4.0-rc
. It looks like it's doing a full build every time.. Does anyone have the same experience?msink
07/28/2020, 11:25 AMlibui
have opaque pointers, say typedef struct uiArea uiArea;
Previously it was impored as typealias uiArea = CPointed
And now (in 1.4.0-rc) it is just missed in output of klib contents ...
, and so not available by Ctrl-B in IDEA, and inspection by F2 complains "Cannot resolve symbol 'uiArea'".Jurriaan Mous
07/29/2020, 9:56 AMException in thread "main" java.nio.file.NoSuchFileException: libobjectiveRocks-macOS.a
at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
at sun.nio.fs.UnixCopyFile.copy(UnixCopyFile.java:526)
at sun.nio.fs.UnixFileSystemProvider.copy(UnixFileSystemProvider.java:253)
at java.nio.file.Files.copy(Files.java:1274)
at org.jetbrains.kotlin.konan.file.File.copyTo(File.kt:64)
Build.gradle:
https://github.com/marykdb/rocksdb-multiplatform/blob/kotlin-1.4/build.gradle.kts
Cinterop file (MacOS)
https://github.com/marykdb/rocksdb-multiplatform/blob/kotlin-1.4/src/nativeInterop/cinterop/rocksdbMacOS.def
I already opened a Youtrack issue over a week ago but had no answer. Would love to try the release candidate on my main project but this is holding me back.
https://youtrack.jetbrains.com/issue/KT-40508Nick
07/29/2020, 1:35 PMxcodebuild -project Pods.xcodeproj -scheme Boulangerie-iOS -sdk iphoneos -configuration Release
is executed. It’s not finding all the header files. Error: “fatal error: ‘com/dough/profitability/calculation/Zoner.h’ file not found”.
Relevant part of the podspec:
s.preserve_paths = "ios/src"
s.header_mappings_dir = "ios/src/objc"
s.public_header_files = "ios/src/objc/**/*.h"
s.source_files = "ios/src/objc/**/*.{h,m}"
s.resources = 'ios/src/resources/**/*'
s.dependency 'J2Objc', '~> 2.6'
s.dependency 'AFNetworking', '~> 4.0.1'
s.xcconfig = {
'HEADER_SEARCH_PATHS' => '"${PODS_ROOT}/Headers/Private/Boulangerie-iOS"/**'
}
Anyone know how I can get this to work?Victor Grigorev
07/29/2020, 1:51 PMBig Chungus
07/29/2020, 4:20 PMJustin
07/29/2020, 9:39 PMArdian
07/30/2020, 5:09 AMfork
system call but I don't think the fork
function is available. However, I see it being mentioned in the below SO posts. Is there something I'm missing?
https://stackoverflow.com/questions/57190228/using-kotlin-native-how-can-i-execute-an-external-os-executable-or-path-comman
https://stackoverflow.com/questions/51460921/kotlin-native-execute-an-executablealeksey.tomin
07/30/2020, 8:36 AMcan't open file
For C I've found the solution - OemToCharA
function but it doesn't work for me
fileName = memScoped {
val bytes = allocArray<CHARVar>(aFileName.length * 2)
OemToCharA(aFileName, bytes)
bytes.toKString()
}
fileName contains wrong charsantrax
07/31/2020, 8:51 AMclass TestNsObj: NSObject() {
init {
println("is frozen: $isFrozen")
}
}
fun runTest() {
val a = TestNsObj()
}
output: is frozen: true
Couldn't find any official info about that. Do I miss smth? Btw if I remove subclassing from NSObject the object is not frozen.Paul Woitaschek
07/31/2020, 9:29 AMNico Buescher
07/31/2020, 10:00 PMe: Could not find "posix" in [/Users/[user]/Developer/IdeaProjects/kgl/kgl-glfw, /Users/[user]/.konan/klib, /Users/[user]/.konan/kotlin-native-prebuilt-macos-1.4-rc1-40/klib/common, /Users/[user]/.konan/kotlin-native-prebuilt-macos-1.4-rc1-40/klib/platform/macos_x64].
I checked in the klib directory, and in 1.3.72 there is a “posix” folder inside ~/.konan/kotlin-native-macos-1.3.72/klib/platform
, and in 1.4.0-RC, that folder is called “org.jetbrains.kotlin.native.platform.posix”. Anyone know what’s going on there? I’m working with the new hierarchical mpp setup if that makes a differenceBig Chungus
08/01/2020, 10:20 AMBig Chungus
08/01/2020, 10:41 AMkotlin.mpp.enableGranularSourceSetsMetadata=true
Big Chungus
08/02/2020, 8:05 AMserebit
08/04/2020, 5:16 PM.konan/cache
directory from being deleted, like a Gradle property of some sort? This is for CI, where caching the tarballs directly and unpacking them each time would be optimal.Romain Dubreucq
08/05/2020, 5:14 PMOmar Mainegra
08/05/2020, 6:44 PMNSURLSession
in a test, but it keeps failing for every host I tested with
The certificate for this server is invalid.I came across this thread, but it looks a bit outdated and it didn't work for me https://kotlinlang.slack.com/archives/C3SGXARS6/p1545046248234300