Skip to content

Commit 43ecebd

Browse files
committed
chore: readme
1 parent 38d3706 commit 43ecebd

File tree

1 file changed

+17
-12
lines changed

1 file changed

+17
-12
lines changed

README.md

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -210,27 +210,32 @@ class IOSGithubSearchViewModel: ObservableObject {
210210
- Android: open project by `Android Studio` and run as usual.
211211
- iOS
212212
```shell
213+
# Cd to root project directory
213214
cd GithubSearchKMM
214215

215-
# generate podspec files for cocopods intergration. with integration will be generated swift files for cocoapod
216-
./gradlew kSwiftsharedPodspec
217-
218-
# go to ios dir
219-
cd iosApp
220-
221-
# install pods
222-
pod install
223-
224-
# now we can open xcworkspace and build ios project
225-
# or open via XCode GUI
226-
open iosApp.xcworkspace
216+
# Setup
217+
sh scripts/run_ios.sh
227218
```
228219

229220
There's a *Build Phase* script that will do the magic. 🧞 <br>
230221
<kbd>Cmd</kbd> + <kbd>B</kbd> to build
231222
<br>
232223
<kbd>Cmd</kbd> + <kbd>R</kbd> to run.
233224

225+
When you see any error like this:
226+
```
227+
./GithubSearchKMM/iosApp/iosApp/ContentView.swift:4:8: No such module 'sharedSwift'
228+
```
229+
You can run `sh scripts/run_ios.sh` again and run the following commands:
230+
```shell
231+
# go to iosApp directory
232+
cd iosApp
233+
234+
# install pods
235+
pod install
236+
```
237+
Then, you can build and run inside XCode as usual.
238+
234239
# LOC
235240

236241
```shell

0 commit comments

Comments
 (0)