I have sort of managed to do it in a new v.4. project by installing the last repo version of CocoaPods (1.10.0.rc.1) by calling sudo gem install cocoapods --pre (https://stackoverflow.com/questions/39481636/updating-to-latest-version-of-cocoapods). The cmake paths problem seems to be solved there.
I do still have some linker errors with the Pods. Last night, I somehow managed to get rid of them by playing around with Framework Search Paths/Linker flags/framework embed options/architectures/cleaning and rebuilding project over and over etc. But today somehow it won’t compile again, argh, and since it was REALLY late last night, I can’t even remember the exact solution :/. The linker still doesn’t know the symbol FIRApp (Firebase).
Even if I get it working again, though, I’m still very unsure how to configure everything so that each and every re-run of cmake does not reset all the settings, so painstakingly adjusted :/.
I’m thinking of skipping pods entirely and manually integrating the frameworks. Might turn out to be even more of a hassle than now, though.
I’ll let you know if I manage to develop a reliable solution with deterministic steps .