[Question] What is the trick to get github workflow to run Xcode with only a single pod install?
This is a bit random, but this repo is the only example (to my knowledge) of a working KMM xcode build. Based on this discussion on kotlin KMM slack, it seems you typically need to have a pod install step twice. However you have it working with only a single pod install. Is there anything specific (e.g. in xcode project) that you've changed to get this to work?
https://github.com/icerockdev/moko-resources/blob/master/.github/workflows/compilation-check.yml#L34
The pod support has always been kind of funky. On a completely new build, you need to run pod install multiple times, as you’ve found. The actual thing is you run pod install, which sets up the Xcode run script, when that first xctest run runs a gradle command that fails, but does init something. Running pod install agian then copies a shell framework. After that, the Xcode run script gradle succeeds. Not sure if/how that gets resolved, but it’s been a thing for a while. Obviously worse on CI.
hi @EamonKeane
we have automatic run of kotlin compilation before pod install. see here - https://github.com/icerockdev/moko-resources/blob/31103b4fa7bca2445487b9f9aafa9cc8085af3ca/sample/ios-app/Podfile#L19