Császár Ákos
12/21/2023, 1:12 PMcocoapods {
ios.deploymentTarget = "13.5"
pod("FirebaseAuth") {
version = "10.16.0"
}
version = "1.0"
summary = ""
homepage = ""
framework {
baseName = "ReserveAppFramework"
isStatic = true
}
}
The android studio recognizes the dependency but I still get this error during build:
ld: warning: Could not find or use auto-linked framework 'FirebaseAuth': framework 'FirebaseAuth' not found
ld: Undefined symbols:
_OBJC_CLASS_$_FIRAuth, referenced from:
in ComposeApp[arm64][2](ComposeApp.framework.o)
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Is there anything I missed?electrolobzik
12/24/2023, 7:50 PMMarc Reichelt
12/29/2023, 12:54 PMproject.yml
to generate the xcodeproj file. Did anyone manage to do this? I’m following the blog post https://blog.jetbrains.com/kotlin/2021/07/multiplatform-gradle-plugin-improved-for-connecting-kmm-modules/ to use the embedAndSignAppleFrameworkForXcode
task, but I can’t even get it working by manually adjusting the Xcode settings - it won’t find the module.
Did anyone achieve this using project.yml
? Thank you!Umesh Lohani
01/02/2024, 7:32 AMFramework 'TwilioConversationsClient' not found.
This is how I have added the pod information in the module's build.gradle
cocoapods {
summary = "Twilio Conversation"
homepage = "todo"
ios.deploymentTarget = "13.0"
framework {
baseName = "TwilioConversations"
}
pod("TwilioConversationsClient")
}
Any help here is appreciated.NicoLourenco
01/02/2024, 8:53 AMNoConnectionException
.
I've the feeling that this can happen if the call is made and the view is "exited" (when app enter background, or an other tab is selected) before the response arrives (I'm using async/await).
Anyone has faced the same issue or someone have a clue?Khanzada Kashif
01/08/2024, 7:31 PMonDisappear
modifier but it execute even when I go forward from the screen, I just wanna detect when user goes back from the screen.Mario Loncar
01/09/2024, 10:17 AMVlad
01/10/2024, 11:33 AMFarhazul Mullick
01/15/2024, 10:40 AMactual inline fun <reified T : ViewModel, reified S> Module.viewModelScopedDefinition(
qualifier: Qualifier?,
noinline definition: Definition<T>,
){
scope<S> {
scoped(qualifier = qualifier, definition = definition)
}
}
module {
viewModelScopedDefinition<ParentAuthViewModel, ParentAuthScope> {
ParentAuthViewModel(
parentGetOtpUseCase = get(),
......
)
}
}
class ParentAuthScope private constructor(): KoinScopeComponent{
override val scope: Scope by getOrCreateScope()
companion object: BaseScope<ParentAuthScope>() {
/**
* Create a new ParentAuthScope instance.
*/
override fun newInstance(): ParentAuthScope = run {
val instance = ParentAuthScope()
INSTANCE = instance
instance
}
}
fun close() {
if (scope.isNotClosed())
scope.close()
}
}
abstract class BaseScope<T: KoinScopeComponent> {
protected var INSTANCE: T? = null
fun instantiate(): T {
return if (INSTANCE != null) {
/**
* This scope reference is a container in which koin puts all the objects.
* This objects can be accessed via ex: [childAuthScope.scope.get<ChildAuthScope>()].
* If this container is closed i.e scope.close() is called and we are still trying to access
* objects using this scope then koin throws [ClosedScopeException].
* So we are creating a new reference of this class which will eventually create new scope-container.
* **/
if (INSTANCE?.scope?.closed == true) {
newInstance()
} else {
INSTANCE!!
}
}
else {
/** Create a new scope **/
newInstance()
}
}
protected abstract fun newInstance(): T
}
val viewModel = _remember_ *{* ParentAuthScope.instantiate().scope.get<ParentAuthViewModel>() *}*
This is throwing an exception when i run iOS build can anyone help? This what my stack-trace looks like
org.koin.core.error.InstanceCreationException
Could not create instance for '[Scoped:'packageName.ParentAuthViewModel',scope:q:'packageName.commonauth.di.ParentAuthScope']' Uncaught Kotlin exception: org.koin.core.error.InstanceCreationException: Could not create instance for '[Scoped:'packageName.viewmodel.ParentAuthViewModel',scope:q:'packageName.ParentAuthScope']'
at 0 shared 0x1092be273 kfun:kotlin.Exception#<init>(kotlin.String?;kotlin.Throwable?){} + 143
at 1 shared 0x109d6e523 kfun:org.koin.core.error.InstanceCreationException#<init>(kotlin.String;kotlin.Exception){} + 143
at 2 shared 0x109d6fd47 kfun:org.koin.core.instance.InstanceFactory#create(org.koin.core.instance.InstanceContext){}1:0 + 1623
at 3 shared 0x109d70a9b kfun:org.koin.core.instance.ScopedInstanceFactory#create(org.koin.core.instance.InstanceContext){}1:0 + 495
at 4 shared 0x109d7157b kfun:org.koin.core.instance.ScopedInstanceFactory.get$lambda$0#internal + 375
at 5 shared 0x109d7163f kfun:org.koin.core.instance.ScopedInstanceFactory.$get$lambda$0$FUNCTION_REFERENCE$0.invoke#internal + 95
at 6 shared 0x109d71763 kfun:org.koin.core.instance.ScopedInstanceFactory.$get$lambda$0$FUNCTION_REFERENCE$0.$<bridge-UNN>invoke(){}#internal + 91
at 7 shared 0x10a34c08f kfun:kotlin.Function0#invoke(){}1:0-trampoline + 99
at 8 shared 0x109d85233 kfun:org.koin.mp.KoinPlatformTools#synchronized(org.koin.mp.Lockable;kotlin.Function0<0:0>){0§<kotlin.Any?>}0:0 + 391
at 9 shared 0x109d71123 kfun:org.koin.core.instance.ScopedInstanceFactory#get(org.koin.core.instance.InstanceContext){}1:0 + 1095
at 10 shared 0x10a3ed51b kfun:org.koin.core.instance.InstanceFactory#get(org.koin.core.instance.InstanceContext){}1:0-trampoline + 67
at 11 shared 0x109d793f3 kfun:org.koin.core.registry.InstanceRegistry#resolveInstance(org.koin.core.qualifier.Qualifier?;kotlin.reflect.KClass<*>;org.koin.core.qualifier.Qualifier;org.koin.core.instance.InstanceContext){0§<kotlin.Any?>}0:0? + 363
at 12 shared 0x109d7f2ff kfun:org.koin.core.scope.Scope.resolveValue#internal + 855
at 13 shared 0x109d7eec7 kfun:org.koin.core.scope.Scope.resolveInstance#internal + 1519
electrolobzik
01/16/2024, 3:48 PMByteArray
from UIImage
?dephinera
01/18/2024, 10:19 AMUnable to find a specification for PrivatePod (~> 0.3.0) dependend upon by KMPModule
You have either:
* out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
* mistyped the name or version.
* not added the source repo that hosts the Podspec to your Podfile.
Specifying the pod repo explicitly for the pod like this
pod("PrivatePod") {
version = "~> 0.3.0"
source = git("<https://gitlab>.<domain>.com/path/repo.git") {
tag = "0.3.0"
}
}
Fails with
Cloning into '/var/folders/1f/5nn9gymd4650nfgfv6lbx2q80000gp/T/d20240118-10099-4kfdwq'...
fatal: could not read Username for '<https://gitlab>.<domain>.com': Device not configured
and the cocoapods gradle plugin doesn’t support ssh urlsRajashekhar Vanahalli
01/23/2024, 11:56 AM<0x101f0bbb0> Gesture: System gesture gate timed out.
Unknown chipRevisionID (0xffffffff)
Attempted to change to mode Portrait with an unsupported device (BackWideDual). Auto device for both positions unsupported, returning Auto device for same position anyway (BackAuto).
My Actual iOS implementation is like this
if (UIImagePickerController.isCameraDeviceAvailable(UIImagePickerControllerCameraDevice._UIImagePickerControllerCameraDeviceRear_)) {
val imagePickerController = UIImagePickerController()._apply_ *{*
sourceType =
UIImagePickerControllerSourceType._UIImagePickerControllerSourceTypeCamera_
cameraDevice =
UIImagePickerControllerCameraDevice._UIImagePickerControllerCameraDeviceRear_
cameraCaptureMode =
UIImagePickerControllerCameraCaptureMode._UIImagePickerControllerCameraCaptureModePhoto_
allowsEditing = false
delegate = object : NSObject(), UIImagePickerControllerDelegateProtocol,
UINavigationControllerDelegateProtocol {
override fun imagePickerController(
picker: UIImagePickerController,
didFinishPickingMediaWithInfo: Map<Any?, *>
) {
try {
val image =
didFinishPickingMediaWithInfo[_UIImagePickerControllerOriginalImage_] as UIImage
capturedImage.value = image._toBytes_()
picker.dismissViewControllerAnimated(true, null)
val filePath = _saveImageToLocalFile_(image = image)
_println_("Saved filePath: $filePath")
} catch (e: Exception) {
_println_("Error: ${e.message}")
}
}
override fun imagePickerControllerDidCancel(picker: UIImagePickerController) {
picker.dismissViewControllerAnimated(true, null)
}
}
}
UIApplication.sharedApplication.keyWindow?.rootViewController?.presentViewController(
imagePickerController,
true,
null
)
} else {
_println_("Camera is not available, so setting for gallery")
}
Pls let me know if anyone has solution for thisShivam Kanodia
01/23/2024, 7:29 PMCan anyone please guide me background uploading in IOS, in KMP.!!
Christopher Mederos
01/31/2024, 6:20 AMjQrgen
01/31/2024, 1:52 PMVlad
02/08/2024, 8:24 AMCODE_SIGN_ENTITLEMENTS = ../shared/src/XX/iOSApp.entitlements;
In the root project gralde.properties we have the property:
XX=myfolder
Is there are an easy way to marry those two?brandonmcansh
02/11/2024, 8:03 PM(no such file, not in dyld cache),
for the two libraries when running a barebones iOS app with the SDK swift package importedjQrgen
02/12/2024, 8:40 AMAkash
02/13/2024, 1:30 PM*let* scannerViewController = ImageScannerController(delegate: *self*)
scannerViewController.modalPresentationStyle = .fullScreen
self.present(scannerViewController, animated: *true*)
// for dismiss
self.dismiss(animated: *true*, completion: *nil*)
I am using kotlin multiplatformPaweł Kulikowski
02/27/2024, 10:10 AMjQrgen
02/28/2024, 8:18 PMMainViewControllerKt.backgroundSync()
is not blocking, it ultimately calls a kotlin multiplatform libraryribesg
03/06/2024, 12:10 PMbrandonmcansh
03/08/2024, 4:11 AMNaufal Azzaahid
03/09/2024, 2:25 AM.h
files.
Is there any way to generate the swift interface via command line?chandilsachin
03/09/2024, 8:00 AMUndefined symbols:
Linker command failed with exit code 1 (use -v to see invocation)
How do I make it work?
Thanks.Alex Murphy
03/11/2024, 7:07 PMHauke Radtki
03/12/2024, 9:24 AMtypealias
declarations from Kotlin are not usable in Swift, can someone confirm?Farhazul Mullick
03/12/2024, 1:01 PMtouchlab_justin
03/13/2024, 1:55 PMMaxime Vince
03/13/2024, 2:04 PM