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
switching between local and prod config using git
I would like to switch configuration (such as DB host, imports and so on) between local dev and prod. which is the best way to use git?
git stash save "message"(create the local config) and
git stash apply(to apply) PROBLEM how can I revert to prod config?
git commit(create the local config) and
git cherry-pick --no-commit #HASHreverting is easier
Create a branch and track it with a different repository branch
I'm currently part of a very large open-source project. I'm assigned to work on few features and I'd like to create a branch for each new feature, and once it's done, merge it with the master branch.
For the sake of working from different machines since I move a lot, I decided to push the feature branches to my private repository, say the original repository is
originand my private repository is
Currently I cloned the project and created 2 branches from
feature2-branch. When I tried to push the branches to my
privaterepository, I get an error because the project contains files that exceed +100mb. (Github max file size limitation)
I changed my
.gitignoreto ignore the big files, but it seems since they're committed in previous/history commits, they still get pushed and cause the error.
Is there a way to push only the files in my new commits without pushing all the history commits? I'm guessing that's not an option because that will cause a merge refusal if I try to make a pull request on a different machine (different histories can't be merged I believe)
I'm no expert in Git, so I'm looking for an advise on what's the best way to handle such scenarios?
P.S Currently I just make sure to copy the files I changed and put them in a cloud storage, and copy them back and forth to the project on different machine, but that's tedious and impractical work.
Thanks in advance, cheers.
git-svn, trunk-only checkout and remote branch that contains a hash mark in name
I'm using a trunk-only checkout of a Subversion repository with non-standard layout. I need to checkout a remote branch to work on an issue. The branch has the name
branches/issues/#4711. I am trying to use the solution described here:
[svn-remote "svn"] url = https://example.com/repos/projectname/trunk/sources fetch = :refs/remotes/git-svn [svn-remote "svn-issue-4711"] url = https://example.com/repos/projectname/branches/issues/#4711 fetch = :refs/remotes/git-svn-issues-#4711
Unfortunately I get an error message:
W: Filesystem has no item: '/repos/projectname/!svn/rvr/6221/branches/issues' path not found at /usr/share/perl5/Git/SVN.pm line 153. W: Ignoring error from SVN, path probably does not exist: (160013): Filesystem has no item: '/repos/projectname/!svn/rvr/600/branches/issues' path not found W: Do not be alarmed at the above message git-svn is just searching aggressively for old history. This may take a while on large repositories
It seems the parser aborts at the hash mark, so I also tried to use some escaping, for example
&0434711, but these yield the error as well. What can I do to checkout this branch using
git-svn? How to escape the branch name properly?
- uploaded file in branch but cannot be found in release
- After git commit returns no error, no change is reflected to github private repo
Multiple commands produce error - Cocoapods multiple targets & platforms
I'm building an iOS app which I want to update with the newest Siri Shortcuts, all is working fine when building on device and testing but I get errors when archiving.
This is the error I'm getting:
error: Multiple commands produce '/Users/tomspee/Library/Developer/Xcode/DerivedData/Company-hhmrvgkwkpelmlewuxvhclfggdtc/Build/Intermediates.noindex/ArchiveIntermediates/Company/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/Alamofire.framework': 1) Target 'Alamofire-iOS12.0' has create directory command with output '/Users/tomspee/Library/Developer/Xcode/DerivedData/Company-hhmrvgkwkpelmlewuxvhclfggdtc/Build/Intermediates.noindex/ArchiveIntermediates/Company/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/Alamofire.framework' 2) Target 'Alamofire-iOS10.0' has create directory command with output '/Users/tomspee/Library/Developer/Xcode/DerivedData/Company-hhmrvgkwkpelmlewuxvhclfggdtc/Build/Intermediates.noindex/ArchiveIntermediates/Company/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/Alamofire.framework'
I've got 4 of these errors, all look the same but for different Pod.
The multiple platforms is explainable because of the main project platform begin iOS 10.0 but for the Siri Shortcuts Intent and Intent UI I need to use platform iOS 12.0. Still this seems to give a problem.
This is my Podfile:
source 'https://github.com/CocoaPods/Specs.git' source 'https://bitbucket.org/company/company-specs.git' def sharedPods pod 'Alamofire' pod 'AlamofireObjectMapper' pod 'KeychainSwift' pod 'ObjectMapper' end target 'Project' do platform :ios, '10.0' use_frameworks! sharedPods pod 'AlignedCollectionViewFlowLayout', :git => 'https://github.com/mischa-hildebrand/AlignedCollectionViewFlowLayout.git' pod 'Crashlytics' pod 'Charts', '3.0.4' pod 'Device.swift' pod 'Fabric' pod 'Firebase/Core' pod 'Firebase/Messaging' pod 'ImageSlideshow', '~> 1.3' pod 'Kanna', :git => 'https://github.com/tid-kijyun/Kanna.git', :branch => 'feature/v4.0.0' pod 'MagicalRecord', '2.3.2' pod 'CompanySupportLib', '1.1.3' pod 'Starscream' pod 'SwiftSVG', '~> 2.0' pod 'VPAttributedFormat', '1.2.5' pod 'youtube-ios-player-helper', '0.1.6' target 'ProjectTests' do inherit! :search_paths pod 'Firebase' end end target 'Project WatchOS Extension' do platform :'watchos', '3.0' use_frameworks! sharedPods end target 'Project Today' do platform :ios, '10.0' use_frameworks! sharedPods end target 'Project Intent' do platform :ios, '12.0' use_frameworks! sharedPods end target 'Project IntentUI' do platform :ios, '12.0' use_frameworks! sharedPods end target 'Project Own Framework' do platform :ios, '10.0' use_frameworks! sharedPods end post_install do |installer_representation| installer_representation.pods_project.targets.each do |target| target.build_configurations.each do |config| config.build_settings['ONLY_ACTIVE_ARCH'] = 'NO' config.build_settings['SWIFT_VERSION'] = '4.0' if config.build_settings['SDKROOT'] == 'watchos' config.build_settings['WATCHOS_DEPLOYMENT_TARGET'] = '4.0' end end end end
Cocoapods - FirebaseAnalytics only installed when using FirebaseCore
So, this question is not about how to fix something, but about how it is working this way.
I want to use FirebaseMessage in my app for push notifications, which have a dependency FirebaseCore. I started just adding FirebaseMessage to my Podfile
I got installed:
Installing Firebase (5.4.1) Installing FirebaseCore (5.0.6) Installing FirebaseInstanceID (3.1.1) Installing FirebaseMessaging (3.0.3) Installing GoogleToolboxForMac (2.1.4) Installing Protobuf (3.6.0)
Okey, problem here is that I get a warning when building the project, because FirebaseAnalytics is missing. No problem, I can add:
pod 'Firebase/Messaging' pod 'Firebase/Core'
Installing Firebase (5.4.1) Installing FirebaseAnalytics (5.0.1) Installing FirebaseCore (5.0.6) Installing FirebaseInstanceID (3.1.1) Installing FirebaseMessaging (3.0.3) Installing GoogleToolboxForMac (2.1.4) Installing Protobuf (3.6.0) Installing nanopb (0.3.8)
...and I get nanopb and FirebaseAnalytics extra.
Why is this happening? Looking at the podspecs, FirebaseCore has no dependencies related to FirebaseAnalytics: https://github.com/CocoaPods/Specs/blob/master/Specs/8/b/d/FirebaseCore/5.0.6/FirebaseCore.podspec.json
I would like to find what tells cocoapods to install the FirebaseAnalytics pod, and why it only happens when I specifically install FirebaseCore.
IOS POD INSTALLING ISSUE while trying to make connection using socket io client swift
I'm trying to install pod Socket.IO-Client-Swift, but it installs another pod with it and I get an error in CoomnCrypto in Starscream pod.
Here are the screens for what happen with me and the steps for installing pods
i am using Using Swift 4 and xcode 9.4