andrewreitz
09/14/2025, 8:41 PMcompose.ios.resources.sync=false to the gradle.properties reason. When I click the run button I just get the message "Build failed in 1 sec" on the messages tab, and if I check the build tab it shows everything was successful. No other output. Any help would be greatly appreciated.Ezekiel Adetoro
09/15/2025, 9:11 AMerror: Cannot query the value of this provider because it has no value available. * What went wrong:
Execution failed for task ':composeApp:syncComposeResourcesForIos'.
> Cannot query the value of this provider because it has no value available. And in XCode, I have this error: /KMP/iosApp/iosApp/ContentView.swift:3:8 No such module 'ComposeApp' . I have tried to apply many solution i foound online which does not work. I tried to use ./gradlew composeApp:syncComposeResourcesForIos I got: > Task :composeApp:syncComposeResourcesForIos FAILED. * What went wrong:
Execution failed for task ':composeApp:syncComposeResourcesForIos'.
> Error while evaluating property 'xcodeTargetArchs' of task ':composeApp:syncComposeResourcesForIos'.
> Could not infer iOS target architectures. Make sure to build via XCode (directly or via Kotlin Multiplatform Mobile plugin for Android Studio) . What am I doing wrong? How can I solve this issue?ferdialif02
09/17/2025, 5:18 AMMarek Niedbach
09/17/2025, 3:05 PMCard(modifier = Modifier.testTag("card").clickable {}) {
Text("Foo", modifier = Modifier.testTag("title"))
Text("Bar", modifier = Modifier.testTag("subtitle"))
}
stops working, whats more - the “Foo” nor “Bar” is not exposed as “label” on the iOS. I tried juggling with mergeDescendants but nothing helps. Any idea how to have both the clickable container and the accessibility access to the inner components?Shariff
09/17/2025, 8:37 PM@Composable
fun PhoneNumberTextField(
phoneNumber: String,
onValueChange: (String) -> Unit,
modifier: Modifier = Modifier,
isError: Boolean = false
) {
val numericRegex = Regex("[^0-9]")
RadiusOutlinedTextField(
modifier = modifier,
value = phoneNumber,
onValueChange = {
val stripped = numericRegex.replace(it, "")
// Allow editing by limiting to 10 digits only during input
onValueChange(if (stripped.length > 10) {
stripped.substring(0, 10)
} else {
stripped
})
},
placeholder = "Phone Number",
singleLine = true,
visualTransformation = NanpVisualTransformation(),
keyboardOptions = KeyboardOptions(keyboardType = KeyboardType.Phone),
isError = isError
)
}
class NanpVisualTransformation : VisualTransformation {
override fun filter(text: AnnotatedString): TransformedText {
val trimmed = if (text.text.length >= 10) text.text.substring(0..9) else text.text
var out = if (trimmed.isNotEmpty()) "(" else ""
for (i in trimmed.indices) {
if (i == 3) out += ") "
if (i == 6) out += "-"
out += trimmed[i]
}
return TransformedText(AnnotatedString(out), phoneNumberOffsetTranslator)
}
private val phoneNumberOffsetTranslator = object : OffsetMapping {
override fun originalToTransformed(offset: Int): Int =
when (offset) {
0 -> offset
// Add 1 for opening parenthesis.
in 1..3 -> offset + 1
// Add 3 for both parentheses and a space.
in 4..6 -> offset + 3
// Add 4 for both parentheses, space, and hyphen.
else -> offset + 4
}
override fun transformedToOriginal(offset: Int): Int =
when (offset) {
0 -> offset
// Subtract 1 for opening parenthesis.
in 1..5 -> offset - 1
// Subtract 3 for both parentheses and a space.
in 6..10 -> offset - 3
// Subtract 4 for both parentheses, space, and hyphen.
else -> offset - 4
}
}
}Ezekiel Adetoro
09/22/2025, 6:03 PMJames Robinson
09/24/2025, 10:59 AMwisha khn
09/24/2025, 5:28 PMiQQator
10/01/2025, 9:16 AMMateus Bauer
10/07/2025, 1:54 AMUncaught Kotlin exception: org.jetbrains.compose.resources.MissingResourceException
I am facing this issue whenever I build the release XcFramework and try to run it. I don't know what's happening, since I am using the following settings(and that shoudn't happen):
composeMultiplatform = "1.9.0"
kotlin = "2.2.20"
It was supposed to should work fine after CMP 1.8.2.
Also, I can confirm that the resources are present in both simulator and arm64 frameworks, inside the XcFramework. I am running out of options, already read all things related and checked everything.Kevin S
10/09/2025, 5:01 PMLazyRow). I am then wrapping it in a ComposeUIViewController and then wrapping that in a UIViewControllerRepresentable on the Swift side. The problem is that I cannot get the height to fit. By default without any modifiers it doesn't show up at all. Then if use scaledToFit / scaledToFill there's a large space under the actual component. I've determined that the blank space underneath is on the SwiftUI side. I've tried various methods to get it working but nothing seems to work out well. The closest I got was following John O'Reillys post about it, which gets the correct height but has a long delay before showing the UI. Any suggestions?
This is with Compose Plugin 1.8.2.Ernestas
10/10/2025, 8:30 AMJames Bowler
10/15/2025, 4:34 AMRafael Costa
10/23/2025, 5:05 PMComposeUIViewController -> stack trace in the 🧵, as far as I can see, it happens on kfun:androidx.compose.ui.util#trace call.
Is there any known issue on testflight builds? or anything special that it does that could hint at why this happens?Jonathan
10/25/2025, 5:19 PMSupportingPaneScaffold on iOS? I'm encountering a weird bug when rotation the device and the Scaffold seems to be placed in an invalid state where the Main pane and the Supporting are both visible when only a single pane should be visible. There also appears to be a bug in how the ThreePaneScaffoldNavigator reports the supporting pane is hidden/visible after an orientation change.
This does not happen on Android.
I'm using version 1.2.0-beta01 of the adaptive libraries. But I've tested this behavior all the way down to version 1.1.0 .
Has anyone encountered this bug and or found a solution or work around?ferdialif02
11/05/2025, 3:51 AMUIKitView(
factory = {
val webView =
wkwebviewInstance(
url = url(),
token = token,
onSizeChange = {
},
backgroundColor = backgroundColor,
)
webView.navigationDelegate = coord
webView.UIDelegate = coord
webView
},
modifier =
Modifier
.fillMaxWidth()
.wrapContentHeight()
.background(Color.Transparent),
update = { webView ->
webView.backgroundColor = backgroundColor.toUiColor()
webView.loadHTMLString(url(), null)
},
properties = UIKitInteropProperties(placedAsOverlay = true),
)Saurabh Gupta
11/05/2025, 6:12 AMCould not find or use auto-linked framework 'MSAL': framework 'MSAL' not found
Could not parse or use implicit file '/Applications/Xcode-16.2.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/Frameworks/SwiftUICore.framework/SwiftUICore.tbd': cannot link directly with 'SwiftUICore' because product being built is not an allowed client of it
Undefined symbol: _OBJC_CLASS_$_MSALInteractiveTokenParameters
Undefined symbol: _OBJC_CLASS_$_MSALResult
Undefined symbol: _OBJC_CLASS_$_MSALWebviewParameters
Linker command failed with exit code 1 (use -v to see invocation)Here are my other configuration - 1. Android Studio Narwhal 4 2. XCode 16.2 3. kotlin = "2.2.21" 4. agp = "8.13.0" 5. composeMultiplatform = "1.9.2" 6. MSAL - "2.3.0"
Saurabh Gupta
11/06/2025, 3:25 AMFRAMEWORK_SEARCH_PATHS in the Build settings of the iOSApp target to the MSAL.framework inside composeApp/build/cocoapods/synthetic/ios/build/Debug-iphonesimulator/MSAL However, now my app installs but crashes immediately because it is not able to find the MSAL framework not found in the installed app. See errors below -
Library not loaded: @rpath/MSAL.framework/MSAL
Referenced from: <31B76893-6B17-3B79-A07A-88B847BB3EAD> /private/var/containers/Bundle/Application/D9250FBD-9976-419A-9B63-8D53A65A6C5B/CokeGPT.app/CokeGPT.debug.dylib
Reason: tried: '/private/var/containers/Bundle/Application/D9250FBD-9976-419A-9B63-8D53A65A6C5B/CokeGPT.app/Frameworks/MSAL.framework/MSAL' (no such file), '/private/var/containers/Bundle/Application/D9250FBD-9976-419A-9B63-8D53A65A6C5B/CokeGPT.app/MSAL.framework/MSAL' (no such file), '/private/var/containers/Bundle/Application/D9250FBD-9976-419A-9B63-8D53A65A6C5B/CokeGPT.app/Frameworks/MSAL.framework/MSAL' (no such file), '/private/var/containers/Bundle/Application/D9250FBD-9976-419A-9B63-8D53A65A6C5B/CokeGPT.app/MSAL.framework/MSAL' (no such file), '/private/var/containers/Bundle/Application/D9250FBD-9976-419A-9B63-8D53A65A6C5B/CokeGPT.app/Frameworks/MSAL.framework/MSAL' (no such file)Saurabh Gupta
11/06/2025, 6:04 AMDirect integration
You can connect the iOS framework directly from the Kotlin Multiplatform project by adding a special script to your Xcode project. The script is integrated into the build phase of your project's build settings.
This integration method can work for you if you do not import CocoaPods dependencies in your Kotlin Multiplatform project.
If you use the Kotlin Multiplatform IDE plugin, direct integration is applied by default.
For more information, see Direct integration.
CocoaPods integration with a local podspec
You can connect the iOS framework from the Kotlin Multiplatform project through CocoaPods, a popular dependency manager for Swift and Objective-C projects.
This integration method works for you if:
• You have a mono repository setup with an iOS project that uses CocoaPods
• You import CocoaPods dependencies in your Kotlin Multiplatform project
To set up a workflow with a local CocoaPods dependency, you can either edit the scripts manually.
For more information, see CocoaPods overview and setup.
Mark
11/08/2025, 9:24 AMFontStyle.Italic on iOS (default device font) it’s an extreme (looks double) level of italic. This happens regardless when using SpanStyle or setting on Text composable. However, when combined with FontWeight.Bold then it looks normal-level italic (same as on Android) with bold weight, as expected. This looks really bad if you have a line of text all in italics but a mix of bold and normal weights. Here you can see the different weights applied to letter “I”. First, is no weight (normal), followed by W100….W900ursus
11/08/2025, 11:57 PMmaterial 3 expressive (or do I have to wait for jetbrains to support it)Mark
11/09/2025, 10:39 AMsunbreak
11/10/2025, 7:23 AMsunbreak
11/10/2025, 7:24 AMsunbreak
11/10/2025, 7:25 AMferdialif02
11/11/2025, 4:19 AM@OptIn(ExperimentalTime::class)
@Composable
fun PagerWkWebViewTest() {
val state = rememberPagerState { 10 }
HorizontalPager(state = state) {
Column(horizontalAlignment = Alignment.CenterHorizontally) {
PlatformSpecificWebView(
modifier =
Modifier
.fillMaxWidth()
.height(100.dp)
.background(Color.Transparent)
.clickable {
}.animateContentSize(),
url = {
loadHtmlDataIntoWebView(
"<p>Unknown</p>",
isAnswer = true,
isOptions = true,
)
},
token = "",
popBack = {},
isLiveClass = false,
examMode = true,
backgroundColorExam = Color.White,
optionExamId = -1,
isOption = false,
)
TextField(
value = "",
onValueChange = {},
modifier = Modifier.fillMaxWidth().padding(horizontal = 16.dp),
)
}
}
}
val coord =
remember {
WKWebViewExamCoordinator(onSizeChange = {
heightWebView = it.dp
})
}
if (examMode) {
UIKitView(
factory = {
val webView =
wkwebviewInstance(
url = url(),
token = token,
onSizeChange = {},
backgroundColor = Color.Transparent,
)
webView.navigationDelegate = coord
webView.UIDelegate = coord
webView
},
modifier = Modifier.fillMaxWidth().height(heightWebView),
update = { webView ->
webView.backgroundColor = backgroundColor.toUiColor()
webView.loadHTMLString(url(), null)
},
onRelease = {
println("onRelease called on ${url()}")
it.stopLoading()
it.removeFromSuperview()
it.navigationDelegate = null
it.UIDelegate = null
},
properties = UIKitInteropProperties(placedAsOverlay = false),
)dhia chemingui
11/11/2025, 9:56 AMpod("GoogleMaps") {
version = "~> 8.0.0"
git("<https://github.com/googlemaps/ios-maps-sdk>")
extraOpts += listOf("-compiler-option", "-fmodules")
}
framework {
baseName = frameworkName
isStatic = false
}
version = "1.16.2"
ios.deploymentTarget = "17.2"
homepage = "<https://example.com/composeApp>"
license = "MIT"
summary = "Shop App"
podfile = project.file("../iosApp/Podfile")
platform :ios, '17.2'
use_modular_headers!
use_frameworks!
target 'iosApp' do
pod 'composeApp', :path => '../ComposeApp'
pod 'GoogleMaps', '~> 8.0.0'
# pod 'MyFatoorah', :git => '<https://dev.azure.com/myfatoorahsc/_git/MF-SDK-iOS-Demo>'
end
ld: framework 'GoogleMapsBase' not found
I cant know whydhia chemingui
11/11/2025, 9:59 AMdhia chemingui
11/11/2025, 12:03 PMMark
11/27/2025, 7:31 AM