I'm having a hard time to build my app on iOS when...
# multiplatform
n
I'm having a hard time to build my app on iOS when I add some Multiplatform dependency (Firebase Kotlin sdk). Gradle script is just failing silently. Is there any sane way to debug this? Starting to loose my mind here.
a
probably
Copy code
./gradlew assemble
in a terminal would show the real error message?
n
I will try, thanks. Would that show the errors for building on iOS?
l
Executing the
check
task sure would try to build the iOS build, along with any other.
n
Ok, thanks!
check
is passing but building on iOS is failing 😞
l
What about the
build
task?
n
Yeah, working too. I wasn’t explicit, but the app is working on Android.
The iOS framework is supposedly built correctly, but when I try to run the app using Xcode/AppCode, the gradle script that it runs to build the framework fails.
l
The build task should run the iOS build. I think there's a misconfiguration
n
That’s weird, I’ve been able to run the app on the iOS simulator before adding the library that’s causing problems.
l
Note that there's no first party Firebase Kotlin SDK that works on iOS
n
No, I know, this one is “fan” made: https://github.com/GitLiveApp/firebase-kotlin-sdk/issues
k
what’s the error you’re getting when running your app via Xcode?
n
Depends on what I try, but basically: • If I just add the library, it complains about a module missing, for example: ‘FirebaseAuth’. The library depends on this one but my app doesn’t. • If I manually add those pods: The build just fails silently 😞 .