:wave: it’s me again how does one use `XCFramewor...
# ios
n
👋 it’s me again how does one use
XCFramework
extension function from
build.gradle
(no KTS)? Importing
import org.jetbrains.kotlin.gradle.plugin.mpp.apple.XCFramework
doesn’t work:
unable to resolve class org.jetbrains.kotlin.gradle.plugin.mpp.apple.XCFramework
r
I mean who writes Groovy in 2021
n
I’m too lazy to upgrade the whole project to kts honestly 😂
r
Can’t you import
import org.jetbrains.kotlin.gradle.plugin.mpp.apple.XCFrameworkTaskKt.XCFramework
?
n
Unfortunately, no:
unable to resolve class org.jetbrains.kotlin.gradle.plugin.mpp.apple.XCFrameworkTaskKt.XCFramework
oh wait
import static
works, thanks @ribesg
👍 1
m
Thank you, it was very helpful! just to clarify it here (as it took me sometime to get it 🙂 ) this how you import it in `build.gradle`:
Copy code
import static org.jetbrains.kotlin.gradle.plugin.mpp.apple.XCFrameworkTaskKt.XCFramework
I hope this will help a newbie like me.
to mention, what Nikolay proposed works but not what exists in docs..it seems we need to update that. ( I am using Kotlin 1.5.30)
n
@Mejdi thanks for sharing! Last time I checked
XCFrameworkConfig
wasn’t public though.
hmmm no it wasn’t, my bad
@Mejdi then I suggest to follow the docs
m
I tried that, but it did not work for me. Yours did..
n
@Mejdi I see, glad to have helped!
🙌 1