Skip to content

Commit 628382e

Browse files
authored
Fix for copy script when using custom scheme configs
Fixes #795
1 parent 1b54291 commit 628382e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ In Xcode add `Build Phase` (at end of list) with script:
208208
-Pmoko.resources.CONTENTS_FOLDER_PATH="$CONTENTS_FOLDER_PATH" \
209209
-Pkotlin.native.cocoapods.platform="$PLATFORM_NAME" \
210210
-Pkotlin.native.cocoapods.archs="$ARCHS" \
211-
-Pkotlin.native.cocoapods.configuration="$CONFIGURATION"
211+
-Pkotlin.native.cocoapods.configuration="${KOTLIN_FRAMEWORK_BUILD_TYPE:-$CONFIGURATION}"
212212
```
213213

214214
`YourFrameworkName` is name of your project framework. Please, see on a static framework warning for get correct task name.
@@ -220,7 +220,7 @@ In Xcode add `Build Phase` (at end of list) with script:
220220
```shell script
221221
"$SRCROOT/../gradlew" -p "$SRCROOT/../" :yourframeworkproject:copyFrameworkResourcesToApp \
222222
-Pmoko.resources.PLATFORM_NAME="$PLATFORM_NAME" \
223-
-Pmoko.resources.CONFIGURATION="$CONFIGURATION" \
223+
-Pmoko.resources.CONFIGURATION="${KOTLIN_FRAMEWORK_BUILD_TYPE:-$CONFIGURATION}" \
224224
-Pmoko.resources.ARCHS="$ARCHS" \
225225
-Pmoko.resources.BUILT_PRODUCTS_DIR="$BUILT_PRODUCTS_DIR" \
226226
-Pmoko.resources.CONTENTS_FOLDER_PATH="$CONTENTS_FOLDER_PATH"

0 commit comments

Comments
 (0)