I can't run a newly created app on Xcode. I used t...
# multiplatform
r
I can't run a newly created app on Xcode. I used the kmp android studio idea plugin. Its working if you run the app on android studio both iOS and android but when you run the iOS app on Xcode it does not work
Copy code
Environment diagnose:
[✓] Operation System
  ➤ Version OS: macOS 26.2
    CPU: Apple M4

[✓] Java
  ➤ Java (openjdk version "25.0.1" 2025-10-21)
    Location: /Users/renz/Library/Java/JavaVirtualMachines/openjdk-25.0.1/Contents/Home/bin/java
  i JAVA_HOME is not set
    Consider adding the following to ~/.zprofile for setting JAVA_HOME
    export JAVA_HOME=/Users/renz/Library/Java/JavaVirtualMachines/openjdk-25.0.1/Contents/Home

[!] Android Studio
  ! Android Studio (AI-253.29346.138.2531.14876573)
    Location: /Applications/Android Studio.app
    Bundled Java: openjdk 21.0.9 2025-10-21
    Kotlin Plugin: 253.29346.138.2531.14876573-AS
    Kotlin Multiplatform Mobile Plugin: not installed
    Install Kotlin Multiplatform Mobile plugin - <https://plugins.jetbrains.com/plugin/14936-kotlin-multiplatform-mobile>
  i Note that, by default, Android Studio uses bundled JDK for Gradle tasks execution.
    Gradle JDK can be configured in Android Studio Preferences under Build, Execution, Deployment -> Build Tools -> Gradle section

[✓] Xcode
  ➤ Xcode (26.2)
    Location: /Applications/Xcode.app
  i Xcode JAVA_HOME: /Users/renz/Library/Java/JavaVirtualMachines/openjdk-25.0.1/Contents/Home
    Xcode JAVA_HOME can be configured in Xcode -> Settings -> Locations -> Custom Paths

[!] CocoaPods
  ! CocoaPods configuration is not required, but highly recommended for full-fledged development
  ➤ ruby (ruby 3.2.2 (2023-03-30 revision e51014f9c0) [arm64-darwin25])
  ➤ ruby gems (3.4.10)
  ➤ cocoapods (1.16.2)
  ✖ CocoaPods requires your terminal to be using UTF-8 encoding.
    Consider adding the following to ~/.zprofile
    export LC_ALL=en_US.UTF-8
here is the error
f
You need to use the SDK 21, not 25
1
r
it worked thanks