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
Related
I am facing this error when I am trying to do a git push on Intellj.
It's a similar issue to this one but opposite ( That one is 'darwin-x64' binaries cannot be used on the 'darwin-arm64v8')
I have tried all the solution from that post but the git push still throwing the same error.
Below is the error I recevied when I do a git push.
Error in "/Users/xxx/Projects/cpss/node_modules/gatsby-transform
er-sharp/gatsby-node.js": 'darwin-x64' binaries cannot be used on the
'darwin-arm64v8' platform. Please remove the 'node_modules/sharp' directory and
run 'npm install' on the 'darwin-arm64v8' platform.
Error:'darwin-x64' binaries cannot be used on the 'darwin-arm64v8' platform.
Please remove the 'node_modules/sharp' directory and run 'npm install' on the
'darwin-arm64v8' platform.
I have tried to delete the node_modules/sharp and run npm install but it does not work.
Can someone explains to me how can I run npm install on 'darwin-arm64v8' platform?
Thank you.
The answer here resolved it for me:
Run brew reinstall vips. Then delete the node_modules folder and install all dependencies again (with npm install or yarn).
delete the node_modules/sharp and run npm install --arch=arm64 --platform=darwin sharp
https://sharp.pixelplumbing.com/install#cross-platform
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.
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 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.