File tree Expand file tree Collapse file tree 1 file changed +17
-12
lines changed Expand file tree Collapse file tree 1 file changed +17
-12
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments