@@ -60,6 +60,36 @@ Most of the APIs are the same as socket.io-client-java, here are some difference
6060
6161## Development
6262
63+ You can open this project in Android Studio, but please setup iOS example project first:
64+
65+ ``` bash
66+ brew install cocoapods xcodegen
67+ # if you have installed them earlier, you need to remove them at first,
68+ # or run brew link --overwrite xcodegen cocoapods
69+
70+ cd example/iosApp
71+ xcodegen
72+ pod install
73+ ```
74+
75+ Otherwise you may see error like below:
76+
77+ ``` bash
78+ > Task :example:shared:podInstall FAILED
79+
80+ FAILURE: Build failed with an exception.
81+
82+ * What went wrong:
83+ Execution failed for task ' :example:shared:podInstall' .
84+ > ' pod install' command failed with code 1.
85+ Error message:
86+
87+ Please, check that podfile contains following lines in header:
88+ source ' https://cdn.cocoapods.org'
89+
90+ Please, check that each target depended on shared contains following dependencies:
91+ ```
92+
6393To check coverage details, run ` ./gradlew :kmp-socketio:jvmTest --info && ./gradlew koverHtmlReport ` ,
6494then check ` kmp-socketio/build/reports/kover/html/index.html ` .
6595
@@ -75,12 +105,7 @@ Open the project (the repo root dir) in Android studio, and run the example.andr
75105### iOS
76106
77107``` bash
78- brew install cocoapods xcodegen
79- # if you have installed them earlier, you need to remove them at first,
80- # or run brew link --overwrite xcodegen cocoapods
81-
82108cd example/iosApp
83- xcodegen
84109pod install
85110# open iosApp.xcworkspace in Xcode, and run it.
86111```
0 commit comments