Trying to get existing KMM project to build on Int...
# multiplatform
m
Trying to get existing KMM project to build on Intel Mac, but stuck on the following. This error appears both when attempting to run Gradle Sync from Android Studio and when running
./gradlew :shared:podInstall
on command line (both terminal and Android Studio)
Copy code
Execution failed for task ':shared:podInstall'.
> 'pod install' command failed with code 1.
  Error message:
  
         Please, check that podfile contains following lines in header:
         source '<https://cdn.cocoapods.org>'
  
          Please, check that each target depended on shared contains following dependencies:
Running
pod install
from terminal in iOS project folder works well.
locale
on both Android Studio & terminal output
LANG="en_US.UTF-8"
.
cocoapods (1.11.2)
and
cocoapods-generate (2.2.2)
versions seem to be fine. Android Studio version is
2020.3.1
and Xcode
13.2.1
. Any tips on fixing the issue?
Also, might or might not be related, but getting the following when attempting to run the project in Xcode:
Copy code
REPO_ROOT="$PODS_TARGET_SRCROOT"
                "$REPO_ROOT/../gradlew" -p "$REPO_ROOT" $KOTLIN_PROJECT_PATH:syncFramework                     -Pkotlin.native.cocoapods.platform=$PLATFORM_NAME                     -Pkotlin.native.cocoapods.archs="$ARCHS"                     -Pkotlin.native.cocoapods.configuration=$CONFIGURATION
The operation couldn't be completed. Unable to locate a Java Runtime.
Please visit <http://www.java.com> for information on installing Java.

Command PhaseScriptExecution failed with a nonzero exit code
k
Let’s try to use kdoctor 🙂 install it via
brew install kdoctor
and run
kdoctor
show me the output. it will help to diagnose the problem
m
Thanks 👍 Didn’t know such a tool exist, it reported some issues so looking to solve those now and see if that fixes the issues 👍