CocoaPods: Don't use realpath utility in script phase

The realpath utility may not be found on the user's machine
so we get rid of using it.
This commit is contained in:
Ilya Matveev
2019-03-20 15:41:05 +07:00
parent 5b4d83e770
commit 4985b24b07
@@ -68,7 +68,7 @@ open class PodspecTask : DefaultTask() {
| :shell_path => '/bin/sh',
| :script => <<-SCRIPT
| set -ev
| REPO_ROOT=`realpath "${'$'}PODS_TARGET_SRCROOT"`
| REPO_ROOT="${'$'}PODS_TARGET_SRCROOT"
| ${'$'}REPO_ROOT/gradlew -p "${'$'}REPO_ROOT" syncFramework \
| -P${KotlinCocoapodsPlugin.TARGET_PROPERTY}=${'$'}KOTLIN_TARGET \
| -P${KotlinCocoapodsPlugin.CONFIGURATION_PROPERTY}=${'$'}CONFIGURATION \