Anybody facing this issue? When i make changes in ...
# ios
c
Anybody facing this issue? When i make changes in android studio and i head to Xcode to build using
command+b
then i get this error. I have to head back to android studio to run the project before i could build on Xcode
f
is cocoapods installed??
c
Yes it is installed
I can run pod install from android studio and terminal
m
you can run
pod install
but is cocoapods itself installed? you need cocoapods in order to run
pod …
commands
c
Cocoa pods is installed. When I run
pod
—`version` it return 1.12.1
n
Xcode build can have a different value of the
PATH
env var and hence can not be able find the executable.
c
How can I check that???
Fixed!. Had to downgrade cocoapods
a
for future reference, i would recommend you use this tool: https://github.com/Kotlin/kdoctor
c
Well I did, I got all checks right with Kdoctor And rightly so, because it works fine when running or building from Android Studio. But Xcode doesn’t work, I had to install cocoapods version 1.10.2 in the
/usr/local/bin
before Xcode could recognize pod
a
oh very sneaky, definately a gotcha
c
Yeah you wouldn’t notice unless you build from Xcode, or you just build from Android Studio then pod gradle task will be skipped on Xcode.
n
so it was a PATH issue most likely 👀
a
i would assume xcode would use the logged in users zsh, so it should inherit the correct path variables.
the only time it might be wrong is if the user had xcode open when they install cocoapods, and so xcode was on a different path
n
IIRC Xcode doesn’t pick up your shell’s path
c
I think @Andrew Reed might be right, I updated Xcode manually a while ago, I think that might be the issue