https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
a

Alexander Suraphel

12/30/2021, 2:42 PM
I just tried to create a new KMM project with Android studio and got this error when it tried to build:
'pod install' command failed with code 1.
Error message:
Please, check that podfile contains following lines in header:
source '<https://cdn.cocoapods.org>'
How do fix this?
p

Paul Weber

12/30/2021, 6:35 PM
I had that problem last week as well while switching to cocoapods. Installing an earlier version of cocoapods helped for me. I think I went with
1.10.0
The Project should work out of the box without further config, btw. I tested that last week and it went fine (after switching to another cocoapods version).
a

Alexander Suraphel

12/30/2021, 6:36 PM
Hmm the wizard probably generates a version that has a problem. I’ll try your suggestion when I switch. Thanks!
p

Paul Weber

12/30/2021, 6:37 PM
Does the wizard install cocoapods? I think you have to do that manually, no?
a

Alexander Suraphel

12/30/2021, 6:39 PM
You’re right. I was planning to do the android stuff first so didn’t want to bother configuring cocoapods now. But that’s what I was missing
j

Jeff

01/04/2022, 5:46 AM
@Paul Weber how do you switch to an earlier version of cocoapods using brew. Still stuck with this error.
3 Views