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.
Related
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
I have a react-native application which comes with .xcodeproj file for ios.
I upgraded the project to use cocoapods which added .xcworkspace and updated .xcodeproj file.
Now anytime i try to upgrade react-native to latest version upgrading .xcodeproj is a nightmare.
Just curious if you are facing similar issues then what is the best practice you found to deal with upgrades?
Yes I had a lot of pain following the recommended ways. Finally, here's what I found to be a pain free way to do the upgrade:
$ rm package-lock.json (or npm-shrinkwrap.json, whichever you have)
Update package.json with the new version of React and React-Native dependencies
$ npm install
$ npm-shrinkwrap (if you had an npm-shrinkwrap.json)
$ rm Podfile.lock
$ pod install
Open workspace (*.xcworkspace) and build.
(This has worked fine when upgrading from 0.46.0 to 0.50.3 version for me)
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
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
I want to install specific project using pod install with Podfile.
if I execute pod install, other project is updating.
i just want to install specific project. is any idea?
It sounds like you want xcodeproj. Otherwise the other Podfile configuration options are in the same guide.