When I run the `copyFramework` task from the new M...
# multiplatform
t
When I run the
copyFramework
task from the new MPP Mobile sample, I get the following error :
Could not get unknown property 'configuration.build.dir' for task ':app:copyFramework' of type org.gradle.api.DefaultTask.
Do you have any idea why it happens ?
r
Are you calling it directly or running the xcode build? That task is designed to be called as part of the xcode build process, where it passes that property as a command-line arg.
👍 1
t
Yeah was calling it directly. I was looking all over the gradle documentation for that property 😓 Thanks
r
You could also pass the command-line arg manually if you want. That property should just be telling it where to copy to. But it doesn’t make much sense outside the context of an xcode build
t
Yeah I got it. Hmm nevermind I found it Just one more thing, I’m looking at the XCode project from the sample and I don’t see where it calls gradle in the pbxproj
r
See also https://kotlinlang.org/docs/tutorials/native/mpp-ios-android.html which does essentially the same stuff in a slightly different way
👍 3
❤️ 1