Nero Nguyễn
07/01/2025, 6:18 PMPaulina Sobieszuk
07/02/2025, 8:03 AMExcellence kawej
07/02/2025, 11:33 AMAbhimanyu
07/02/2025, 4:05 PMBitter
07/02/2025, 4:55 PMlistOf(
iosX64(),
iosArm64(),
iosSimulatorArm64()
).forEach {
it.binaries.framework {
baseName = "shared"
isStatic = false
}
}
I get this strange "Cannot find Previews" error in my project as you can see in the screenshot.
Anyone else ?Vivek Modi
07/02/2025, 7:12 PMExcellence kawej
07/03/2025, 11:56 AM/Users/ctrltech/StudioProjects/Tmaterials/shared/src/commonMain/kotlin/com/geekpastor/shared/ui/components/singleComponents/AppBar.kt:67:35 Unresolved reference 'painterResource'.
As you can see, it's happening in commonMain module, and I've tried to find a multiplatform library for resources, but it seems to not be stable each time I have tried to install it, it causes other issues. Doo you have ay other solutions that you could suggest me???Rik van Velzen
07/03/2025, 1:05 PMSomehow I still can't use the composeResources in ios.
The project has multi-module set up with Kotlin 2.2, CMP 1.8.2 (& Skie 0.10.4), using an ios-umbrella.
When I run ios-umbrella:assembleDebugXCFramework on Android Studio side and inspect the generated .xcframework I can see that XCFrameworks are created for 2 targets:
ios-arm64
ios-arm64_x86_64-simulator
with one difference:
The ios-arm64 target contains a /Relocations/aarch64 folder (within ./dSYMs/....frameworkdSYM/Contents/Resources) with a [MyProjectName].yml file in it.
That yml file contains a list with an overview of drawable/font resources etc. and some addresses and size information.
The simulator target doesn't have this(?)
Since I am running my ios app via XCode in a simulator:
Does this have anything to do with that I am running into exceptions like below?:
Uncaught Kotlin exception: org.jetbrains.compose.resources.MissingResourceException: Missing resource with path: /Users/.../Library/Developer/CoreSimulator/Devices/A5C47791-3B4E-4A31-8DFC-7AED41EA2C83/data/Containers/Bundle/Application/47E8ED7F-1BAF-48E1-9E8A-E8EF14D38105/Sample.app/compose-resources/composeResources/....ui/font/pt-sans-regular.ttf
RadimJanda
07/03/2025, 2:41 PMPaolo Pasianot
07/03/2025, 3:58 PMKilian
07/04/2025, 10:31 AMDarryl Pierce
07/04/2025, 12:25 PMMichael Paus
07/04/2025, 3:57 PMAsyncImage(
model = ImageRequest.Builder(LocalPlatformContext.current)
.data(resolvedTalkImageUrls[currentImageIndex])
.crossfade(true)
.build(),
...
)
I currently testing this on desktop but later it is supposed to run on wasmJs too.zt
07/05/2025, 12:02 AM./build/test-output/$PLATFORM
PLATFORM
being an expect val which is set in each sourceset to the proper directory. Is there a better way to go about this maybe communicating with gradle somehow?Pavlos
07/05/2025, 11:08 AMBGAppRefreshTaskRequest
and a BGProcessingTaskRequest
), triggering it via //e -l objc -- (void)[[BGTaskScheduler sharedScheduler] _simulateLaunchForTaskWithIdentifier:@"{my_work_name}"]
works successfully. It just doesn't run by itself at all, I have the app running in 2 iPhones for 3+ days, with opening the app every day a lot of times, nothing.
Also nothing significant is being logged at Console.app in my Mac, the work just never starts, there aren't any exceptions or crashes at all. Also every setting is enabled successfully at both phones. It just doesn't run. If the iOS enforces that "because of low usage", then how is a new installer of my app supposed to use this functionality at all?
I would love your thoughts and if anyone has made it work:
Code continues in the thread 🧵👇Hemanth
07/05/2025, 11:59 AMGoutham Devaraju
07/05/2025, 2:04 PMRob
07/05/2025, 4:30 PMblakelee
07/06/2025, 4:42 AMKinar Sharma
07/06/2025, 10:39 AMviewModel: ScreenAViewModel = viewModel { ScreenAViewModel() }
I ran the Web app and it's failing at compilation with the following errors
e: user/Demo/composeApp/src/commonMain/kotlin/com/example/demo/screenA/ScreenA.kt:21:37 Unresolved reference 'compose'.
e: user/Demo/composeApp/src/commonMain/kotlin/com/example/demo/screenA/ScreenA.kt:32:33 Cannot infer type for this parameter. Specify it explicitly.
e: user/Demo/composeApp/src/commonMain/kotlin/com/example/demo/screenA/ScreenA.kt:32:33 Parameter 'viewModel' is uninitialized here.
e: user/Demo/composeApp/src/commonMain/kotlin/com/example/demo/screenA/ScreenA.kt:32:33 Unresolved reference. None of the following candidates is applicable because of a receiver type mismatch:
fun <T, R> DeepRecursiveFunction<T, R>.invoke(value: T): R
can please someone explain why is it failing?Ghasem Shirdel
07/06/2025, 5:16 PMsupportsMainMenu
, which I naturally don’t use anywhere in the iOSApp code. Is this being used in the background by Compose?
The second issue happens when the function stackTraceToString
is called — a leak occurs. Libraries like Napier and other logging libraries use this function. Is this problem only present in debug mode?
My Compose version is 1.8.1 and Kotlin version is 2.2.0.Jasmin
07/07/2025, 8:21 AMcommonMain/resources/files/frontend
.
How do I need to configure Gradle to bundle these assets in the XCFramework and access them via NSBundle
?
I know it must be possible somehow, because of the composeResources, which are getting correctly included.
Here is my current access code:
val basePath = NSBundle.mainBundle.resourcePath + "/files/frontend/"
Unfortunately, Moko resources isn't a fit for my use case since I also need to support the mingw
target, which it currently doesn't support.
Every help is appreciated 🙂Excellence kawej
07/07/2025, 10:44 AMUnresolved reference 'RemoveRedEye'.
Icon(
modifier = Modifier.fillMaxSize(),
imageVector = Icons.Filled.RemoveRedEye,
contentDescription = "Voir le produit",
tint = Color.White
)
While others are well-imported, like this one:
Icon(
modifier = Modifier.fillMaxSize(),
imageVector = Icons.Outlined.Delete,
contentDescription = "Supprimer du panier",
tint = Color.Red
)
bk9735732777
07/07/2025, 10:50 AMalias(libs.plugins.kotlinCocoapods)
and this is how i configured it
but i have this build error when i run itbk9735732777
07/08/2025, 3:03 AMCees Wiersma
07/08/2025, 7:16 AMPablo
07/08/2025, 9:50 AMincompatible : requires IDE build 243.* or earlier
Has someone faced this issue and solved it? Can't find info in google.Nikhil Pratap Singh
07/08/2025, 10:13 AM.konan/kotlin-native-prebuilt-macos-aarch64-2.2.0/tools/konan_lldb.py
Excellence kawej
07/08/2025, 10:23 AMMarkRS
07/08/2025, 11:00 AM