https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
t

tarek

10/10/2018, 2:58 PM
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

russhwolf

10/10/2018, 3:19 PM
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

tarek

10/10/2018, 3:27 PM
Yeah was calling it directly. I was looking all over the gradle documentation for that property 😓 Thanks
r

russhwolf

10/10/2018, 3:28 PM
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

tarek

10/10/2018, 3:31 PM
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

russhwolf

10/10/2018, 3:45 PM
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