Closed litclimbing closed 4 months ago
Thanks, I'll try to fix it. Never tried for ios yet.
Sergey Chernov - Chat @ Spike [1m4ncb]
On June 22, 2022 at 16:15 GMT, Lit Climbing @.***> wrote:
When trying to use this with an iOS app I get the following build error.
Task :shared:compileKotlinIosX64 FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':shared:compileKotlinIosX64'. > Could not resolve all files for configuration ':shared:iosX64CompileKlibraries'. > Could not resolve net.sergeych:mp_stools:1.2.2. Required by: project :shared > No matching variant of net.sergeych:mp_stools:1.2.2 was found. 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 'native', attribute 'org.jetbrains.kotlin.native.target' with value 'ios_x64' but: - Variant 'commonMainMetadataElements' capability net.sergeych:mp_stools:1.2.2 declares a usage of 'kotlin-api' of a library: - Incompatible because this component declares a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'common' and the consumer needed a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native' - Other compatible attributes: - Doesn't say anything about its target Java environment (preferred optimized for non-jvm) - Doesn't say anything about org.jetbrains.kotlin.native.target (required 'ios_x64') - Variant 'jsIrApiElements-published' capability net.sergeych:mp_stools:1.2.2 declares a usage of 'kotlin-api' of a library: - Incompatible because this component declares a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'js' and the consumer needed a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native' - Other compatible attributes: - Doesn't say anything about its target Java environment (preferred optimized for non-jvm) - Doesn't say anything about org.jetbrains.kotlin.native.target (required 'ios_x64') - Variant 'jsIrRuntimeElements-published' capability net.sergeych:mp_stools:1.2.2 declares a library: - Incompatible because this component declares a usage of 'kotlin-runtime' of a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'js' and the consumer needed a usage of 'kotlin-api' of a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native' - Other compatible attributes: - Doesn't say anything about its target Java environment (preferred optimized for non-jvm) - Doesn't say anything about org.jetbrains.kotlin.native.target (required 'ios_x64') - Variant 'jsLegacyApiElements-published' capability net.sergeych:mp_stools:1.2.2 declares a usage of 'kotlin-api' of a library: - Incompatible because this component declares a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'js' and the consumer needed a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native' - Other compatible attributes: - Doesn't say anything about its target Java environment (preferred optimized for non-jvm) - Doesn't say anything about org.jetbrains.kotlin.native.target (required 'ios_x64') - Variant 'jsLegacyRuntimeElements-published' capability net.sergeych:mp_stools:1.2.2 declares a library: - Incompatible because this component declares a usage of 'kotlin-runtime' of a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'js' and the consumer needed a usage of 'kotlin-api' of a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native' - Other compatible attributes: - Doesn't say anything about its target Java environment (preferred optimized for non-jvm) - Doesn't say anything about org.jetbrains.kotlin.native.target (required 'ios_x64') - Variant 'jvmApiElements-published' capability net.sergeych:mp_stools:1.2.2 declares an API of a library: - Incompatible because this component declares a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'jvm' and the consumer needed a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native' - Other compatible attributes: - Doesn't say anything about its target Java environment (preferred optimized for non-jvm) - Doesn't say anything about org.jetbrains.kotlin.native.target (required 'ios_x64') - Variant 'jvmRuntimeElements-published' capability net.sergeych:mp_stools:1.2.2 declares a runtime of a library: - Incompatible because this component declares a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'jvm' and the consumer needed a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native' - Other compatible attributes: - Doesn't say anything about its target Java environment (preferred optimized for non-jvm) - Doesn't say anything about org.jetbrains.kotlin.native.target (required 'ios_x64') - Variant 'metadataApiElements' capability net.sergeych:mp_stools:1.2.2 declares a library: - Incompatible because this component declares a usage of 'kotlin-metadata' of a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'common' and the consumer needed a usage of 'kotlin-api' of a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native' - Other compatible attributes: - Doesn't say anything about its target Java environment (preferred optimized for non-jvm) - Doesn't say anything about org.jetbrains.kotlin.native.target (required 'ios_x64') - Variant 'nativeApiElements-published' capability net.sergeych:mp_stools:1.2.2 declares a usage of 'kotlin-api' of a library, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native': - Incompatible because this component declares a component, as well as attribute 'org.jetbrains.kotlin.native.target' with value 'macos_x64' and the consumer needed a component, as well as attribute 'org.jetbrains.kotlin.native.target' with value 'ios_x64' - Other compatible attribute: - Doesn't say anything about its target Java environment (preferred optimized for non-jvm) - Variant 'nativeMetadataElements-published' capability net.sergeych:mp_stools:1.2.2 declares a library, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native': - Incompatible because this component declares a usage of 'kotlin-metadata' of a component, as well as attribute 'org.jetbrains.kotlin.native.target' with value 'macos_x64' and the consumer needed a usage of 'kotlin-api' of a component, as well as attribute 'org.jetbrains.kotlin.native.target' with value 'ios_x64' - Other compatible attribute: - Doesn't say anything about its target Java environment (preferred optimized for non-jvm) It looks like there isn't an ios_x64 compatible build.
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>
please try version 1.2.3-SNAPSHOT
. It has iOS targets added. No specific iOS code (for example no native iOS date/time conversion - could you add it?), but most of it should work.
Looks like its ok with it now. Please reopen if you'll have further problems
lack of iosSimulator variant.
Could not resolve all dependencies for configuration ':shared:iosSimulatorArm64CompileKlibraries'.
Same
Could not resolve all dependencies for configuration ':shared:iosArm64CompileKlibraries'.
Ok I published some ios variants to maven pls check. The problem is my old Mac is not always with me. Pls help me sort it out
I need somebody to try to add it to some ios project and see how it will work. You can contact me at telegram https://t.me/real_sergeych
I need somebody to try to add it to some ios project and see how it will work. You can contact me at telegram https://t.me/real_sergeych
Should we use 1.2.3-SNAPSHOT? It missing ios_simulator_arm64.
fixed in 1.4.7, now all targets are supported, including experimental wasmJs.
When trying to use this with an iOS app I get the following build error.
It looks like there isn't an ios_x64 compatible build.