Alexandru Caraus
08/05/2021, 6:20 PMLaurence Muller
08/06/2021, 12:58 AM> Task :shared:compileKotlinIos
> Task :shared:linkDebugFrameworkIos
> Task :shared:syncFramework
BUILD SUCCESSFUL in 35s
3 actionable tasks: 3 executed
But then as soon as it starts building the swift app (unmodified demo app):
CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler (in target 'iosApp' from project 'iosApp')
It keeps throwing a bunch of
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "Headers/shared.h"
^
/Users/xxx/Prototype/TestBaseApp/shared/build/cocoapods/framework/shared.framework/Headers/shared.h:1337:37: error: expected identifier
- (instancetype)initWithDEBUG:(BOOL)DEBUG APPLICATION_ID:(NSString *)APPLICATION_ID BUILD_TYPE:(NSString *)BUILD_TYPE FLAVOR:(NSString *)FLAVOR VERSION_CODE:(int32_t)VERSION_CODE VERSION_NAME:(NSString *)VERSION_NAME GIT_HASH:(NSString *)GIT_HASH MY_API_BUILD_ID:(NSString *)MY_API_BUILD_ID MY_API_CLIENT_ID:(NSString *)MY_API_CLIENT_ID MY_API_CLIENT_NAME:(NSString *)MY_API_CLIENT_NAME PLATFORM:(NSString *)PLATFORM OS:(NSString *)OS OS_VERSION:(NSString *)OS_VERSION PHONE_BRAND:(NSString *)PHONE_BRAND PHONE_TYPE:(NSString *)PHONE_TYPE __attribute__((swift_name("init(DEBUG:APPLICATION_ID:BUILD_TYPE:FLAVOR:VERSION_CODE:VERSION_NAME:GIT_HASH:MY_API_BUILD_ID:MY_API_CLIENT_ID:MY_API_CLIENT_NAME:PLATFORM:OS:OS_VERSION:PHONE_BRAND:PHONE_TYPE:)"))) __attribute__((objc_designated_initializer));
^
<command line>:16:15: note: expanded from here
#define DEBUG 1
^
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "Headers/shared.h"
^
/Users/xxx/Prototype/TestBaseApp/shared/build/cocoapods/framework/shared.framework/Headers/shared.h:1359:27: error: expected member name or ';' after declaration specifiers
@property (readonly) BOOL DEBUG __attribute__((swift_name("DEBUG")));
^
<command line>:16:15: note: expanded from here
#define DEBUG 1
^
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "Headers/shared.h"
and keeps repeating a few times complaining about the things in Headers/shared.h
and finally ending with:
/Users/xxx/Prototype/TestBaseApp/iosApp/iosApp/ContentView.swift:2:8: error: could not build Objective-C module 'shared'
import shared
^
** BUILD FAILED **
The following build commands failed:
CompileSwift normal x86_64 /Users/xxx/Prototype/TestBaseApp/iosApp/iosApp/iOSApp.swift
CompileSwift normal x86_64 /Users/xxx/Prototype/TestBaseApp/iosApp/iosApp/ContentView.swift
CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler
Any thoughts on if it is some kotlin syntax the compiler doesnt like or how I can make the compiler be a bit more verbose to point out what it is struggling with?
(I'm using kotlinVersion 1.5.21 and coroutines 1.5.0-native-mt)langara
08/06/2021, 8:56 AMcheck(coroutineContext[ContinuationInterceptor] === Dispatchers.Main) { "TreeUiModel.logic must run o main!" }
But how to do it outside? (from regular function without coroutine scope/context)Anutosh Datta
08/06/2021, 12:12 PMcocoapods {
summary = ""
homepage = ""
frameworkName = ""
pod("Mixpanel")
pod("FirebaseCore")
pod("FirebaseMessaging")
pod("SSZipArchive")
}
I get the following error when running gradle sync.
Exception in thread "main" java.lang.Error: /var/folders/ny/hf6sbtc5337bl6g_tcy7kcg80000gp/T/4577319926544642637.m:1:9: fatal error: module 'FirebaseCore' not found
at org.jetbrains.kotlin.native.interop.indexer.UtilsKt.ensureNoCompileErrors(Utils.kt:152)
at org.jetbrains.kotlin.native.interop.indexer.ModuleSupportKt.getModulesASTFiles(ModuleSupport.kt:68)
at org.jetbrains.kotlin.native.interop.indexer.ModuleSupportKt.getModulesInfo(ModuleSupport.kt:14)
at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.buildNativeLibrary(main.kt:515)
at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.processCLib(main.kt:266)
at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.interop(main.kt:76)
at org.jetbrains.kotlin.cli.utilities.InteropCompilerKt.invokeInterop(InteropCompiler.kt:45)
at org.jetbrains.kotlin.cli.utilities.MainKt.mainImpl(main.kt:38)
at org.jetbrains.kotlin.cli.utilities.MainKt.main(main.kt:60)Laurence Muller
08/08/2021, 12:12 AMiosTarget("ios") {
binaries {
framework {
baseName = "shared"
export("com.arkivanov.decompose:decompose:0.3.1")
export("com.arkivanov.essenty:lifecycle:0.1.2")
}
}
}
But what if I created my projects with the KMM plugin which by default sets it to the "CocoaPods dependency manager" how would I add those exports?
cocoapods {
summary = "Some description for the Shared Module"
homepage = "Link to the Shared Module homepage"
ios.deploymentTarget = "14.1"
frameworkName = "shared"
podfile = project.file("../iosApp/Podfile")
// How to include the same exports?
}
Hossein Amini
08/08/2021, 5:13 AMrkeazor
08/08/2021, 1:34 PMHossein Amini
08/09/2021, 6:11 AMaiidziis
08/09/2021, 10:40 AM[logging] file is not a database in "PRAGMA journal_mode"
error while compiling: PRAGMA journal_mode | error code SQLITE_NOTADB
co.touchlab.sqliter.interop.SQLiteExceptionErrorCode: error while compiling: PRAGMA journal_mode
Has anyone encountered the same issue?robjperez
08/09/2021, 10:42 AMifdef
?Gaurav Singh
08/09/2021, 6:46 PMrobstoll
08/09/2021, 10:24 PMMatthias Geisler
08/10/2021, 5:05 PMtylerwilson
08/10/2021, 6:19 PMNikola Milovic
08/11/2021, 6:36 AMHossein Amini
08/11/2021, 7:56 AMPaul Dhaliwal
08/11/2021, 4:39 PMkevindmoore
08/12/2021, 5:00 AMTask :shared:compileKotlinMetadata FAILED
robjperez
08/12/2021, 11:48 AMandroidAndroidTestRelease
autogenerated source set
• If I put the tests on androidTest/kotlin
I cannot run the tests because AS says “No task available”
• If I put the tests on androidAndroidTest/kotlin
then AS runs the tests, but it looks like the tests are not included in the apk so no tests are runKonyaco
08/12/2021, 2:50 PMv79
08/13/2021, 7:05 AMMarkRS
08/13/2021, 10:03 AMHossein Amini
08/13/2021, 3:53 PMHossein Amini
08/14/2021, 1:45 PMMichal Lepíček
08/16/2021, 8:10 AMMarkRS
08/16/2021, 10:45 AMFrancis Mariano
08/17/2021, 1:32 PMAkram Bensalem
08/18/2021, 1:40 PMwbertan
08/18/2021, 3:21 PMxcworkspace
and xcodeproj
) to AppCode with the KMM Plugin?
In the blog post announcing the plugin they mention this:
We’re working on a solution that will allow you to hook up an existingBut could not find anything else related to that.or.xcodeproj
to the Gradle DSL to make it possible to easily connect existing Xcode projects with the common and Android parts..xcworkspace
Jonas Frid
08/19/2021, 8:58 AMJonas Frid
08/19/2021, 8:58 AMlouiscad
08/19/2021, 9:09 AMJonas Frid
08/23/2021, 12:50 PMlouiscad
08/23/2021, 12:52 PMJonas Frid
08/23/2021, 12:54 PMlouiscad
08/23/2021, 12:54 PMJonas Frid
08/23/2021, 1:16 PM