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

Charles Prado

03/30/2021, 11:38 PM
Hello everyone. I'm trying to run the iOS project of my KMM project using CocoaPods. But I always get an error when Xcode tries to run this script
Copy code
set -ev
                REPO_ROOT="$PODS_TARGET_SRCROOT"
                "$REPO_ROOT/../gradlew" -p "$REPO_ROOT" :shared:syncFramework \
                    -Pkotlin.native.cocoapods.target=$KOTLIN_TARGET \
                    -Pkotlin.native.cocoapods.configuration=$CONFIGURATION \
                    -Pkotlin.native.cocoapods.cflags="$OTHER_CFLAGS" \
                    -Pkotlin.native.cocoapods.paths.headers="$HEADER_SEARCH_PATHS" \
                    -Pkotlin.native.cocoapods.paths.frameworks="$FRAMEWORK_SEARCH_PATHS"
The error doesn't say so much, only that:
Copy code
Command /bin/sh emitted errors but did not return a nonzero exit code to indicate failure
I tried then to run
./gradlew -p . :shared:syncFramework
directly from the terminal and it says that
Copy code
Task 'syncFramework' not found in project ':shared'.
Any ideas how can I solve that?
133 Views