I was trying to run the project but facing some Gradle build issues related to Cocoapods. I checked with kdoctor cocoapods is installed properly and I'm able run other projects. These 2 issues I'm getting in build logs. Let me know if I'm missing anything.
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':shared:podBuildMokoSocketIoIphoneos'.
> Executing of 'xcodebuild -project Pods.xcodeproj -scheme mokoSocketIo -sdk iphoneos -configuration Release' failed with code 65 and message:
Command line invocation:
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -project Pods.xcodeproj -scheme mokoSocketIo -sdk iphoneos -configuration Release
User defaults from command line:
IDEPackageSupportUseBuiltinSCM = YES
Build settings from command line:
SDKROOT = iphoneos17.0
ComputeTargetDependencyGraph
note: Building targets in dependency order
note: Target dependency graph (3 targets)
Target 'mokoSocketIo' in project 'Pods'
➜ Explicit dependency on target 'Socket.IO-Client-Swift' in project 'Pods'
Target 'Socket.IO-Client-Swift' in project 'Pods'
➜ Explicit dependency on target 'Starscream' in project 'Pods'
Target 'Starscream' in project 'Pods' (no dependencies)
==============================================================================
2: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':shared:podBuildMokoSocketIoIphonesimulator'.
> Executing of 'xcodebuild -project Pods.xcodeproj -scheme mokoSocketIo -sdk iphonesimulator -configuration Release' failed with code 65 and message:
Command line invocation:
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -project Pods.xcodeproj -scheme mokoSocketIo -sdk iphonesimulator -configuration Release
User defaults from command line:
IDEPackageSupportUseBuiltinSCM = YES
Build settings from command line:
SDKROOT = iphonesimulator17.0
ComputeTargetDependencyGraph
note: Building targets in dependency order
note: Target dependency graph (3 targets)
Target 'mokoSocketIo' in project 'Pods'
➜ Explicit dependency on target 'Socket.IO-Client-Swift' in project 'Pods'
Target 'Socket.IO-Client-Swift' in project 'Pods'
➜ Explicit dependency on target 'Starscream' in project 'Pods'
Target 'Starscream' in project 'Pods' (no dependencies)
GatherProvisioningInputs
CreateBuildDescription
Here's the kdoctor output:
➜ moko-socket-io-sample git:(main) ✗ kdoctor
Environment diagnose (to see all details, use -v option):
[✓] Operation System
[✓] Java
[✓] Android Studio
[✓] Xcode
[✓] Cocoapods
Conclusion:
✓ Your system is ready for Kotlin Multiplatform Mobile Development!
this issue was due to xcode 15 incompatibility, bumping kotlin multiplatform gradle plugin version to 1.9.10 and ios.deploymentTarget = "12.0" resolved this issue, will create a PR tomorrow!
I was trying to run the project but facing some Gradle build issues related to Cocoapods. I checked with kdoctor cocoapods is installed properly and I'm able run other projects. These 2 issues I'm getting in build logs. Let me know if I'm missing anything.
Here's the kdoctor output: