This works fine in xCode, but in Android studio it points to my git repo that contains the project code, whereas xCode properly defines that as the directory in the derivedData. Is this perhaps an issue with how KMM builds the project when ran from Android Studio? As that for some reason $BUILD_DIR seems to have a different value when ran from the KMM build
Hi @Joey, did you solve this issue? I have a similar problem
j
Joey
04/20/2023, 9:42 AM
Unfortunately not. Have since been mostly working with a flutter app though, so I also didn't have the possibility to look further into it yet
a
Aleksei Panov
04/20/2023, 9:54 AM
As a workaround, you can specify the flag in the Xcode in the Run Script for “install builds only”, but in a such case this task will run only when do Product Archive
j
Joey
04/20/2023, 10:54 AM
Thanks, I'll let me coworker know about that!
u
ubuntudroid
06/20/2023, 5:17 PM
hm, this might actually be a much bigger problem going forward as it would affect ALL build phase scripts using environment variables like
BUILD_DIR
or
BUILT_PRODUCTS_DIR
or
BUILD_ROOT
etc.
Did you report this to the Kotlin MPP people @Aleksei Panov?