git checkout develop, then git checkout startingBranch caused me to not find dependencies
So I am able to run my app successfully without hitch while on
branchOne I wanted to work on another fix so I wanted to switch to
develop branch and then create a new branch off of develop.
git checkout develop, tried to run the app, then I got a warning that my project was not in sync with my
podfile.lock so it couldn't run the app. Then I did
git checkout firstBranch to switch back to
branchOne but when I try to run the app this time it fails because it cannot find dependencies.
Why is this happening?
See also questions close to this topic
How to permanently undo recent commits from git remote but keep it in my local?
I made a git repo (only a master branch) with one remote and one local. There are no other users who have cloned it but the remote path can be cloned by a few users.
My local clone is at commit #17 and I have pushed up til commit #12 to the remote. I’ve come to realize that every commit after #6 should not be shared and the remote needs to (for now) remain at #6.
I don’t want to lose all the commits 1-17 and the history but in order to reset the remote my understanding is I have to first reset local to #6 and push -f that. Is it possible for me to reset the remote to #6 while locally remaining ahead at 17 so that if someone clones the remote they can’t see the vulnerable commits?
My idea is that I would need to clone my local to a different local first so that the second local keeps all 17 commits and history before executing the reset followed by the push -f. Is this how one would approach this situation?
What does the ~ mean after the branch of a git rebase --onto?
In the example that the Git docs give for
git rebase --ontoits not clear about what the ~ means
A range of commits could also be removed with rebase. If we have the following situation:
enter code here E---F---G---H---I---J topicA
then the command
git rebase --onto topicA~5 topicA~3 topicA
would result in the removal of commits F and G:
This is useful if F and G were flawed in some way, or should not be part of topicA. Note that the argument to --onto and the parameter can be any valid commit-ish.
topicA~5mean 5 commits from the head of
topicA? (So counting backwards?)
I cant think of anything else that it would mean but I want to be sure before i try it on my repo.
- Confusing git conflicts
How to resolve a pullrequest review?
I created a pullrequest and reviewer reviewed it, posted comments and requested changes, I updated the pr with changes and resolved all the comment, but still at the bottom of the page, it shows someone requested changes and a red cross. Is there anyway options to resolve the request changes?
Downloaded Jekyll website from Github and it doesnt serve Locally
I created a website with Jekyll and uploaded it to github. This allowed me to host my site for free (It's mostly just a template at the moment) repo here:
It serves fine online with the domain name but I tried to download it and serve it locally but get the following errors:
Configuration file: none Source: C:/Users/isw/Desktop/Taijisoce/themallardcomplexion.github.io-master Destination: C:/Users/isw/Desktop/Taijisoce/themallardcomplexion.github.io-master/_site Incremental build: disabled. Enable with --incremental Generating... Build Warning: Layout 'post' requested in themallardcomplexion.github.io-master/_posts/2019-01-19-welcome-to-jekyll.markdown does not exist. Build Warning: Layout 'default' requested in themallardcomplexion.github.io-master/404.html does not exist. Build Warning: Layout 'page' requested in themallardcomplexion.github.io-master/about.md does not exist. Build Warning: Layout 'home' requested in themallardcomplexion.github.io-master/index.md does not exist. done in 0.587 seconds. Auto-regeneration: enabled for 'C:/Users/isw/Desktop/Taijisoce/themallardcomplexion.github.io-master' Server address: http://127.0.0.1:4000 Server running... press ctrl-c to stop.
It serves with no formatting and just shows a plain text site.... any ideas?
I have tried downloading the code via the Github app and downloading it as zip
Visual Studio project folder conventions
Newer versions of Visual Studio store projects in my C:\Users\Jonathan\source\repos folder instead of C:\Users\Jonathan\Documents\Visual Studio 2019\Projects. I prefer the old location under Documents but I decided to just accept the newer way so that I'm less likely to encounter conflicts.
Now I want to create a GitHub repository. But the default Local path is the same path where the project is stored. So without changing this path, I get the error Repository with same name already exists at this location.
So I've tried to just go along with the somewhat wacky folder conventions in Visual Studio, and now I get a conflict!
- Why do I need a local path in addition to my current project folder?
- Why is Visual Studio defaulting to the same path for both, and then giving me an error if I don't change it? What is the convention for these paths?
How to update cocoapods dependency?
I am trying to use this library: https://github.com/calm/KenBurns
The issue is this - When I try to add this cocoapod to my project I get the following warning.
[!] CocoaPods could not find compatible versions for pod "SDWebImage": In snapshot (Podfile.lock): SDWebImage (= 3.8.2, ~> 3.8.2)
In Podfile: SDWebImage (~> 4.0)
Specs satisfying the
SDWebImage (~> 4.0), SDWebImage (= 3.8.2, ~> 3.8.2)dependency were found, but they required a higher minimum deployment target.
I'm using SDWebimage already in my project separately and this cocoapod also has SDWebimage inside it as a dependency. My question is how do I solve this issue above? How do I update SDWebimage inside this cocoapod to match what I have in my project?
Thank you for the help! I never experienced this before using pods.
Uncomment the next line to define a global platform for your project platform :ios, '10.0'
target 'Sample-Project' do
Comment the next line if you're not using Swift and don't want to use dynamic frameworks use_frameworks!
# Pods for Sample-Project
pod 'SDWebImage', '~> 4.0'
React native module as part of the cocoa pod
I have to create one
frameworkmodule in react native which has to be distributed through cocoapod.
I have created podspec for the
React Libraryand have added
Reactas a dependency. Now, in my actual native app, when I am trying to consume my
Framework, all the dependencies are not pulled.
I am seeing in some blogs which suggested having Core, CxxBridge, DevSupport, RCTText as part of the subspec which has the local reference like below.
pod 'React', :path => 'reactNative/node_modules/react-native', :subspecs => [ 'Core', 'CxxBridge', # Include this for RN >= 0.47 'DevSupport', # Include this to enable In-App Devmenu if RN >= 0.43 'RCTText', 'RCTNetwork', 'RCTWebSocket', # needed for debugging ] # Explicitly include Yoga if you are using RN >= 0.42.0 pod "yoga", :path => "reactNative/node_modules/react-native/ReactCommon/yoga" # Third party deps podspec link pod 'DoubleConversion', :podspec => 'reactNative/node_modules/react-native/third-party-podspecs/DoubleConversion.podspec' pod 'glog', :podspec => 'reactNative/node_modules/react-native/third-party-podspecs/glog.podspec' pod 'Folly', :podspec => 'reactNative/node_modules/react-native/third-party-podspecs/Folly.podspec'
With the above approach, we cannot distribute as a framework as it is pointing to the local reference of all the dependency podspec which is present in
Can someone please help me to distribute my framework with all the react dependencies needed for execution
Cocoapods not applying ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES post pod install
I want to apply
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NOto all targets in the project, however the project file doesnt change and remains as
YES, im not overriding the value and no errors or cautions are thrown by cocoapods
post install script:
post_install do |installer_representation| installer_representation.pods_project.targets.each do |target| target.build_configurations.each do |config| config.build_settings['ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES'] = 'NO' config.build_settings['SWIFT_COMPILATION_MODE'] = 'wholemodule' config.build_settings['CLANG_ENABLE_CODE_COVERAGE'] = 'NO' end end end