Comments (5)
@DatL4g Hi, can u send reproducer?
from moko-resources.
Hey @ExNDY I can't provide a minimalistic reproducer right now but you can test it with https://github.com/DatL4g/AniFlow
Steps required to build:
- Clone as usual
- Create a
composeApp/sekret.properties
with the content below - Run
./gradlew generateSekret
once
sekret.properties content:
FIREBASE_PROJECT=test
FIREBASE_ANDROID_APPLICATION=test
FIREBASE_ANDROID_API_KEY=test
FIREBASE_IOS_APPLICATION=test
FIREBASE_IOS_API_KEY=test
ANILIST_CLIENT_ID=test
ANILIST_CLIENT_SECRET=test
After following these steps you should be able to reproduce the issue by just adding kotlin.mpp.enableCInteropCommonization=true
to the root gradle.properties
from moko-resources.
`
Task :composeApp:compileKotlinIosSimulatorArm64 FAILED
/Users/exndy/Documents/Projects/DELETE/AniFlow/composeApp/src/commonMain/kotlin/dev/datlag/aniflow/module/NetworkModule.kt:18:27: error: Unresolved reference: Sekret
/Users/exndy/Documents/Projects/DELETE/AniFlow/composeApp/src/commonMain/kotlin/dev/datlag/aniflow/module/NetworkModule.kt:131:28: error: Unresolved reference: Sekret
/Users/exndy/Documents/Projects/DELETE/AniFlow/composeApp/src/commonMain/kotlin/dev/datlag/aniflow/module/NetworkModule.kt:132:32: error: Unresolved reference: Sekret
/Users/exndy/Documents/Projects/DELETE/AniFlow/composeApp/src/iosMain/kotlin/dev/datlag/aniflow/module/PlatformModule.ios.kt:47:29: error: Unresolved reference: Sekret
/Users/exndy/Documents/Projects/DELETE/AniFlow/composeApp/src/iosMain/kotlin/dev/datlag/aniflow/module/PlatformModule.ios.kt:48:33: error: Unresolved reference: Sekret
/Users/exndy/Documents/Projects/DELETE/AniFlow/composeApp/src/iosMain/kotlin/dev/datlag/aniflow/module/PlatformModule.ios.kt:49:26: error: Unresolved reference: Sekret
/Users/exndy/Documents/Projects/DELETE/AniFlow/composeApp/src/iosMain/kotlin/main.kt:5:75: error: No value passed for parameter 'di'
/Users/exndy/Documents/Projects/DELETE/AniFlow/composeApp/src/iosMain/kotlin/main.kt:5:75: error: No value passed for parameter 'content'
error: Compilation finished with errors
`
ios part doesn't work. But...
![Снимок экрана 2024-04-27 в 15 33 57](https://private-user-images.githubusercontent.com/22731300/326165944-69c16dd3-6810-4228-a7c8-ea91bfab8570.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg3ODM3NTgsIm5iZiI6MTcxODc4MzQ1OCwicGF0aCI6Ii8yMjczMTMwMC8zMjYxNjU5NDQtNjljMTZkZDMtNjgxMC00MjI4LWE3YzgtZWE5MWJmYWI4NTcwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MTklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjE5VDA3NTA1OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWViMDc1ODdlMjYwN2U3ZTZlMjMzMzg4OWZjMDUxNDdlZjg3NDZjMzkxNjdhZmJiZDVhMTgxYjRjMWU1ZTUyYmQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.WQmjvNJQpd5X70NDdkrNLuBoWG6ZqucCQnQ8DcBHnlY)
But i can't reproduce your error
from moko-resources.
Fork with enabled flag: https://github.com/ExNDY/AniFlow/tree/with-cinterop
from moko-resources.
Alright it's a bit weird but seems to be some kind of IntelliJ (Cache?) problem.
Booted up Android Studio and the project configuration and build went fine.
Started IntelliJ Ultimate then and the problem is gone, even though I deleted the IntelliJ and Gradle cache multiple times previously.
I guess this issue can be closed then.
from moko-resources.
Related Issues (20)
- Cannot change attributes of dependency configuration ':xxx:iosX64CInteropApiElements' after it has been resolved HOT 11
- Resolving dependency configuration 'metadataCompilationApi' is not allowed as it is defined as 'canBeResolved=false' HOT 1
- Load image as plain resource by string on iOS
- Slow loading of string resource at first open of screen HOT 6
- Suggested improvements to CopyFrameworkResourcesToAppTask HOT 1
- 0.24.0-beta-4 incorrectly handles plurals with `"` character; displays as `\"` on iOS and doesn't display on Android. HOT 2
- Font caching Issue for ios HOT 9
- Crash when using MR.strings() in unit tests iOS HOT 9
- Are there plans to support linuxX64? HOT 1
- Remove unnecessary dependency HOT 1
- How do I get the text value on JVM? HOT 2
- Have a dumb question about a different approach to save resources directly in a Kotlin file :D HOT 1
- 0.24.0-beta-5 creates invalid unicode escape sequence HOT 8
- Can't use Moko resources for JVM target HOT 3
- Add dark mode variants for images HOT 2
- How use fonts in swift ui
- Svg icons with alpha color become black on iOS
- Unable to compile after trying to update to 0.24.0: Unable to find method GenerateMultiplatformResourcesTask.onlyIf HOT 5
- Formatted localization string from swift code
- Gradle Sync failing in Android Studio HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from moko-resources.