Skip to content

Error compiling kotlin for ios "Could not resolve dev.gitlive:firebase-auth:1.3.1." #218

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
AlexWink opened this issue Sep 13, 2021 · 2 comments · Fixed by #220
Closed

Comments

@AlexWink
Copy link

AlexWink commented Sep 13, 2021

Hello, I've encountered the package download error with the version 1.4.2 but even with the 1.3.1, I can't find a way to launch the ios project as I face this issue:

``Execution failed for task ':shared:compileKotlinIos'.

Could not resolve all files for configuration ':shared:iosCompileKlibraries'.
Could not resolve dev.gitlive:firebase-auth:1.3.1.
Required by:
project :shared
> No matching variant of dev.gitlive:firebase-auth:1.3.1 was found. The consumer was configured to find a usage of 'kotlin-api' of a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native', attribute 'org.jetbrains.kotlin.native.target' with value 'ios_simulator_arm64' but:
- Variant 'debugApiElements-published' capability dev.gitlive:firebase-auth:1.3.1 declares an API of a component:
- Incompatible because this component declares a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' and the consumer needed a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native'
- Other compatible attribute:
- Doesn't say anything about org.jetbrains.kotlin.native.target (required 'ios_simulator_arm64')
- Variant 'debugRuntimeElements-published' capability dev.gitlive:firebase-auth:1.3.1 declares a runtime of a component:
- Incompatible because this component declares a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' and the consumer needed a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native'
- Other compatible attribute:
- Doesn't say anything about org.jetbrains.kotlin.native.target (required 'ios_simulator_arm64')
- Variant 'iosArm64ApiElements-published' capability dev.gitlive:firebase-auth:1.3.1 declares a usage of 'kotlin-api' of a component, 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 'ios_arm64' and the consumer needed a component, as well as attribute 'org.jetbrains.kotlin.native.target' with value 'ios_simulator_arm64'
- Variant 'iosX64ApiElements-published' capability dev.gitlive:firebase-auth:1.3.1 declares a usage of 'kotlin-api' of a component, 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 'ios_x64' and the consumer needed a component, as well as attribute 'org.jetbrains.kotlin.native.target' with value 'ios_simulator_arm64'
- Variant 'jsApiElements-published' capability dev.gitlive:firebase-auth:1.3.1 declares a usage of 'kotlin-api' of a component:
- 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 attribute:
- Doesn't say anything about org.jetbrains.kotlin.native.target (required 'ios_simulator_arm64')
- Variant 'jsRuntimeElements-published' capability dev.gitlive:firebase-auth:1.3.1:
- 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 attribute:
- Doesn't say anything about org.jetbrains.kotlin.native.target (required 'ios_simulator_arm64')
- Variant 'metadataApiElements-published' capability dev.gitlive:firebase-auth:1.3.1 declares a usage of 'kotlin-api' of a component:
- 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 attribute:
- Doesn't say anything about org.jetbrains.kotlin.native.target (required 'ios_simulator_arm64')
- Variant 'releaseApiElements-published' capability dev.gitlive:firebase-auth:1.3.1 declares an API of a component:
- Incompatible because this component declares a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' and the consumer needed a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native'
- Other compatible attribute:
- Doesn't say anything about org.jetbrains.kotlin.native.target (required 'ios_simulator_arm64')
- Variant 'releaseRuntimeElements-published' capability dev.gitlive:firebase-auth:1.3.1 declares a runtime of a component:
- Incompatible because this component declares a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' and the consumer needed a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native'
- Other compatible attribute:
- Doesn't say anything about org.jetbrains.kotlin.native.target (required 'ios_simulator_arm64')``
Thanks

@tiagonuneslx
Copy link
Contributor

tiagonuneslx commented Sep 15, 2021

The title of this issue may be misleading. This library has full support for Apple M1 Silicon. I can confirm, you can use it and build it on M1 Mac, natively (after v1.4.2 [kotlin 1.5.30+]) or through Rosetta 2 (before v1.4.2).

I'm not sure why you're getting this error though...

@AlexWink AlexWink changed the title Support for Apple M1 Silicon chip Error compiling kotlin for ios "Could not resolve dev.gitlive:firebase-auth:1.3.1." Sep 15, 2021
@MartinRajniak
Copy link

Same here (although for Firestore),
I think the issue is that we are trying to run it on M1 Simulator (ios_simulator_arm64),
and (just guessing) this lib does not provide this target?

I had similar issue with coroutines until this has been solved (for reference)
Kotlin/kotlinx.coroutines#2908

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants