{"id":30144137,"url":"https://github.com/icerockdev/moko-doctor","last_synced_at":"2025-08-11T07:38:10.741Z","repository":{"id":39752696,"uuid":"400386548","full_name":"icerockdev/moko-doctor","owner":"icerockdev","description":"doctor script for checking the KMM developer's environment","archived":false,"fork":false,"pushed_at":"2023-08-06T11:04:31.000Z","size":621,"stargazers_count":6,"open_issues_count":4,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-07T05:04:01.040Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/icerockdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-08-27T04:21:58.000Z","updated_at":"2023-01-30T19:13:39.000Z","dependencies_parsed_at":"2022-08-28T06:20:12.011Z","dependency_job_id":null,"html_url":"https://github.com/icerockdev/moko-doctor","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/icerockdev/moko-doctor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icerockdev%2Fmoko-doctor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icerockdev%2Fmoko-doctor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icerockdev%2Fmoko-doctor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icerockdev%2Fmoko-doctor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/icerockdev","download_url":"https://codeload.github.com/icerockdev/moko-doctor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icerockdev%2Fmoko-doctor/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269849579,"owners_count":24485153,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-11T02:00:10.019Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-08-11T07:38:03.907Z","updated_at":"2025-08-11T07:38:10.718Z","avatar_url":"https://github.com/icerockdev.png","language":"Shell","readme":"# Mobile Kotlin doctor\nThis is a script for KMM developers that allows you to check whether your working environment is configured. \n\n# DEPRECATION ALERT\nKotlin already have own doctor application - [kdoctor](https://github.com/Kotlin/kdoctor), so please use kdoctor instead of moko-doctor.\n\n## What does the *doctor* check?\n- Is *Git* installed\n- Is *XCode* / *Xcode Command Line* installed\n- Is *Android Studio* installed\n- Is *Cocoa Pods* installed\n- is *Xcode* configured\n- is *Android Studio* configured\n- is the *environment variables* installed\n\n\n## Usage\n\nClone the repository for yourself and run the script:\n\n```bash\n./doctor.sh\n```\n\nor you can install it with the command:\n\n```bash\n/bin/bash -c \"$(curl -fsSL https://raw.githubusercontent.com/icerockdev/moko-doctor/main/install_doctor.sh)\"\n```\n\n## How do we set up the environment?\n\nYou can take a short lesson on setting up the environment [here](https://codelabs.kmp.icerock.dev/codelabs/kmm-icerock-onboarding-1-ru/index.html#1).\n\n## Xcode environments\n\nIn our projects, we run the *Gradle* build from *Xcode*. At the start of the build, the [*Gradle Daemon*](https://docs.gradle.org/current/userguide/gradle_daemon.html) is also launched. \nIf there are several *JDKs* on the computer, *Xcode* starts the build from the highest version.\n\nThe reason is that a shell ran from *Xcode* build phase is [non-interactive shell](https://www.vanimpe.eu/2014/01/18/different-shell-types-interactive-non-interactive-login/).\n\nIn order for Xcode to see the *JAVA_HOME* and *ANDROID_SDK_ROOT* variables that we have declared, you need to run the script:\n\n```bash\n./setup_xcode_environment.sh\n```\n\nThis script passes:\n- *JAVA_HOME* \n- *ANDROID_SDK_ROOT* \n- *GRADLE_USER_HOME*\n- *KONAN_DATA_DIR*\n\nvariables specified in your environment (in .zshrc or .bash-profile) to the *Xcode* environment , which is launched when the project is built.\n\nAfter rebooting the system, it can check this, it is enough to enter a couple of lines of build phases.\n\n![pods debub](images/podsDebug.png)\n\nRun the project build using *Cmd+B*. \n\nIn *Build* we see:\n\n![pods debub](images/buildSuccess.png)\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficerockdev%2Fmoko-doctor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ficerockdev%2Fmoko-doctor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficerockdev%2Fmoko-doctor/lists"}