In my multiplatform project I'm using the followin...
# multiplatform
j
In my multiplatform project I'm using the following build phase script code to automatically upload dSyms to crashlytics
"${BUILD_DIR%/Build/*}/SourcePackages/checkouts/firebase-ios-sdk/Crashlytics/run"
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
So the value of $BUILD_DIR: In xCode:
/Users/joey/Library/Developer/Xcode/DerivedData/iosApp-avrzuwcdvbhdzkfvoegfmaxitrku
When building with KMM in gradle:
/Users/joey/git/<theappname>/build/ios
a
Hi @Joey, did you solve this issue? I have a similar problem
j
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
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
Thanks, I'll let me coworker know about that!
u
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?