Begum Turan
01/30/2023, 4:26 PMeygraber
01/30/2023, 10:14 PMitnoles
01/31/2023, 3:45 AMFriedger
01/31/2023, 9:42 AMynsok
01/31/2023, 4:12 PM:core
behaves like an umbrella, And I would like to create a separate module just with analytics. But While I run gradle task assembleXCFramework
I’m receiving this error:
output:
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_FIRCrashlytics", referenced from:
objc-class-ref in result.o
ld: symbol(s) not found for architecture arm64
Also extra information is printed into the console with this information:
> Task :core:linkDebugFrameworkIosArm64
w: Following libraries are specified to be exported with -Xexport-library, but not included to the build:
/Users/ynsok/AndroidStudioProjects/kmm-project/monitoring/build/libs/iosArm64/main/monitoring-cinterop-FirebaseCrashlytics.klib
Here is partial setup build.gradle.kts
for :monitoring
module
val xcf = XCFramework()
listOf(
iosX64(),
iosArm64(),
iosSimulatorArm64()
).forEach {
it.binaries.framework {
baseName = Module.Monitoring.simpleName
xcf.add(this)
}
}
cocoapods {
summary = "This module contains implementation of analytics and crashlytics"
name = Module.Monitoring.simpleName
ios.deploymentTarget = application.IOSConfig.deployment_target
version = application.IOSConfig.cocoapods_version
homepage = application.IOSConfig.cocoapods_homepage
license = application.IOSConfig.cocoapods_license
framework {
baseName = Module.Monitoring.simpleName
embedBitcode = org.jetbrains.kotlin.gradle.plugin.mpp.BitcodeEmbeddingMode.DISABLE
}
pod("FirebaseCrashlytics")
podfile = project.file("../iosApp/Podfile")
}
Here is partial setup build.gradle.kts
for :core
module
val xcf = XCFramework()
listOf(
iosX64(),
iosArm64(),
iosSimulatorArm64()
).forEach {
it.binaries.framework {
baseName = Module.Core.simpleName
export(project(Module.Monitoring.dependencyName))
xcf.add(this)
}
}
cocoapods {
summary = "The module contains core business logic for Pismo application"
name = Module.Core.simpleName
ios.deploymentTarget = application.IOSConfig.deployment_target
version = application.IOSConfig.cocoapods_version
homepage = application.IOSConfig.cocoapods_homepage
license = application.IOSConfig.cocoapods_license
framework {
baseName = Module.Core.simpleName
isStatic = false
embedBitcode = org.jetbrains.kotlin.gradle.plugin.mpp.BitcodeEmbeddingMode.DISABLE
export(project(Module.Monitoring.dependencyName))
}
podfile = project.file("../iosApp/Podfile")
}
Any Idea what is wrong with this configuration ?Anamika Trivedi
01/31/2023, 9:01 PMAnil Kumar
01/31/2023, 10:50 PMMateu
02/01/2023, 11:35 AMmbonnin
02/01/2023, 1:12 PMString
literal in Kotlin? Given multiplatform resources are not really a thing, how bad of an idea is it to store large texts/images in String
literals?Sebastian Sellmair [JB]
02/01/2023, 6:45 PMKirill Zhukov
02/02/2023, 6:17 AMmbonnin
02/02/2023, 11:12 AM*compileKotlinMetadata*
. In my task list, I have this:
compileCommonMainKotlinMetadata - Compiles the kotlin sources in compilation 'commonMain' (target metadata (common)) to Metadata.
compileKotlinMetadata - Compiles the kotlin sources in compilation 'main' (target metadata (common)) to Metadata.
What's the difference between these two? I don't have any 'main' sourceSet that I know aboutMichael Paus
02/02/2023, 1:38 PM> Task :shared:linkPodDebugFrameworkIosX64 FAILED
e: There are still 2 unbound symbols after generation of IR module <shared>:
Unbound public symbol IrConstructorPublicSymbolImpl: cafe.adriel.bonsai.core/BonsaiStyle.<init>|2287630319973089285[0]
Unbound public symbol IrSimpleFunctionPublicSymbolImpl: cafe.adriel.bonsai.core/BonsaiStyle.copy|-7573618836952580526[0]
More details can be found here: https://github.com/adrielcafe/bonsai/issues/11
Does anybody have an idea how to fix that or is this indeed a compiler/linker error?bnvinay92
02/02/2023, 3:54 PMCould not determine the dependencies of task ':my-module:compileKotlinMetadata'.
> Could not resolve all task dependencies for configuration ':my-module:metadataCompileClasspath'.
> Could not resolve com.squareup.workflow1:workflow-runtime:1.8.0-beta11.
Required by:
project :my-module
> The consumer was configured to find a usage of 'kotlin-api' of a library, preferably optimized for non-jvm, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'common'. However we cannot choose between the following variants of com.squareup.workflow1:workflow-runtime:1.8.0-beta11:
- iosArm64ApiElements-published
- iosSimulatorArm64ApiElements-published
- iosX64ApiElements-published
- jvmApiElements-published
- jvmRuntimeElements-published
< and so on and so forth >
I've seen this before when the library happened to be shipping a ktlint artifact as well but not sure what could be causing this apart from the kotlin version change.kitto
02/02/2023, 5:41 PM[ridicolous relative path].konan/kotlin-native-prebuilt-macos-aarch64-1.7.20/bin/cinterop -def App.def
and I get:
Exception in thread "main" java.lang.Error: /var/folders/80/ncv5m6mj2yq0zg6nnn0cl46c0000gn/T/8421264523268807030.c:1:10: fatal error: 'App.h' file not found
I called it from the folder where 'App.h' is located, and I have no idea about this path in error message. Does cinterop supposed to work on macOS right now? How can I make my chances of success better :xMichal Janos
02/03/2023, 3:04 PMUtsav Dave
02/03/2023, 3:34 PMMark Vogel
02/03/2023, 3:44 PMcommonMain
that does not support a specific platform such as Kotlin/JS, how can I exclude the dependency from jsMain
?jean
02/03/2023, 8:49 PMGradle -> build -> build
I get the following error :
Execution failed for task ‘myModuleallTests’.
> Failed to execute all tests:
myModulejsBrowserTest: java.lang.IllegalStateException: command ‘/Users/jeantuffier/.gradle/nodejs/node-v16.13.0-darwin-arm64/bin/node’ exited with errors (exit code: 1)If I use the command line
./gradlew build
it works without any error (if I hit command + enter, Intellij uses the same gradle dæmon than the UI, or whatever it does compared to just hitting enter, and crashes with the same error)Kirill Zhukov
02/03/2023, 9:30 PMShubham Singh
02/04/2023, 5:26 AMKoneko Toujou
02/05/2023, 2:32 AMandroidx.compose.ui.tooling.preview.Preview
for Android
androidx.compose.desktop.ui.tooling.preview.Preview
for Desktop
CommonMain
use @Preview
which resolves to the above at compilation/analysisbnvinay92
02/05/2023, 5:39 AMSeikoDes
02/06/2023, 2:38 AMandroidInstrumentedTest
doesn’t dependsOn commonTest
by default, is this a bug or desgin this?mohamed rejeb
02/06/2023, 2:27 PMAditya Kurkure
02/06/2023, 4:03 PMUndefined symbols for architecture [iOSTarget]:
Igor Bozin
02/06/2023, 5:33 PMMarko Novakovic
02/06/2023, 9:07 PMinterface AccountStore {
val account: Flow<Account>
}
class AccountStoreImpl(platformAccountStore: PlatformAccountStore) : AccountStore {
override val account = platformAccountStore.account
}
expect class PlatformAccountStore {
val account: Flow<Account>
}
AccountStore
is abstraction and it’s used for testing and PlatformAccountStore
is, as name says, where I will implement Android and iOS specific behavioursMod
02/07/2023, 6:09 AMexpect object EncryptionHelper {
fun md5(input: String): String
}
this is the Android part:
import java.math.BigInteger
import java.security.MessageDigest
actual object EncryptionHelper {
actual fun md5(input: String): String {
val md = MessageDigest.getInstance("MD5")
return BigInteger(1, md.digest(input.toByteArray())).toString(16).padStart(32, '0')
}
}
Inder singh
02/07/2023, 7:49 AM