Pod Install in Xcode project getting "command not found" error - xcode

I cloned a large git repository and tried to run it, but I keep getting the error No such module 'Google Maps.' In the project folder, there is the normal Xcode files and then a file called Podfile, a file called Podfile.lock, and a folder called Pods, with a lot of folders inside it such as "Google Maps". I think I need to run pod install from within the project folder, but when I go to Terminal, cd to the project folder, and type in pod install, I get the following error: -bash: pod: command not found. What am I doing wrong?

Try reinstalling Cocoapods:
sudo gem install -n /usr/local/bin cocoapods

Related

Clone and setup Repository from Bit Bucket to XCode

joined a new organisation. Never worked on react native repositories before.
I need a quick help on how to clone a React Native repository from bit bucket to Xcode and setup to work only on iOS module.
I have downloaded the repository and open the iOS Folder and opened projectname.xcworkspace file. It opened my project but so many files are missing. So I assume that it is not the right way to do. Please help.
I think you didn't use command of npm install or yarn install then after completed the above command you need to use cd ios(Go to ios directory) and pod install then you should open your projectname.xcworkspace file.
if you have package-lock.json then use npm install and if you have yarn.lock then use yarn install command.

about 'zsh react-native command not found' AFTER SETTING PATH

Some time ago, I had the command not found error when running expo, so I set path at ~/.bash_profile and so, after running source ~/.bash_profile, now I can call expo without problems.
Today, I tried running react-native link and the following error appeared:
zsh: react-native command not found
What else could I be doing wrong?
Maybe you don't have react native cli installed globally, which is good as it's not needed.
Check in the project directory if react-native is installed
so ./node_modules/react-native/ should exist and has something inside.
If so, you don't need to run react-native directly; try running through npx react-native or npm script.
If not, make sure you have react-native in package.json dependencies section, and run npm install to pull the react-native library folder.

Running RNTester

I am getting into React Native. I want to try running RNTester to check out the components they have. I had no issue runnning my other react project.
I tried the commands:
git clone https://github.com/facebook/react-native.git
cd react-native
npm install
and also run the project with open RNTester/RNTester.xcodeproj
The errors I got:
error message
my Xcode version: 9.0(9C40b)
clang version: Apple LLVM version 9.0.0 (clang-900.0.39.2)
Instead of running with RNTester.xcodeproj
I got around with CocoaPods.
run pod install in the RNTester folder
run the .xcworkspace file generated from the command

Unable to build Xcode project on circleCi

I'm using cocoapods v1.0.1. My build is successful in Xcode 7.2.1 but when I push the changes to git it fails on circleci.com.
error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.
I have tried every possible ways using this link and similar links but no success at all.
Already tried this link: Error:"The sandbox is not in sync with the Podfile.lock..." after installing RestKit with cocoapods
Try to add the following into your circle.yml file:
dependencies:
override:
- pod install
https://discuss.circleci.com/t/the-sandbox-is-not-in-sync-with-the-podfile-lock/5537

Xcode 7 workspace file could not be opened after installing cocoapods

I'm working on a project where i need cocoapods . I have installed pods . But the new workspace file doesn't open , with the error '... workspace could not be opened' . I tried closing Xcode before installing pods . It doesn't help either .
Thanks in advance !!!
May be there is an error in installing cocoapods.
You can try following commands.
pod repo remove master
pod setup
pod install --verbose
This will remove your pod first from your directory. Then start it again by command pod setup and pod install --verbose
-- verbose will show you what exactly happening in backend.

Resources