Tag: xcode

Xcode: Could not read from remote repository

I am trying to connect Xcode with Git (Bitbucket). I read this question/”tutorial”: In XCode 4 how do I add a remote GitHub repository to an existing local project? I follow all steps but I have a problem. In Xcode 4.6.1 I always obtain this error: “fatal “my_Repo” does not appear to be a git […]

Git in Xcode 6.3: Master branch showing new files from other branches in red and won't compile

I am using Xcode’s integrated Source Control with Git and I have the following problem: I have a perfectly working master branch and I want to work on two new features. So I create two new branches, where I add one new file at each branch. Now when I switch back to the master branch […]

I have deleted my project.pbxproj file using git checkout — <file>. Should I delete the branch locally and pull from origin?

I have gotten myself into some hot water regarding source control. I had just gotten a feature branch to work that another developer on my team had created and developed, which required adding some files. He then added some additional code to the project, and I wanted to revert to the version of the branch […]

Xcode snapshot fails when using git lfs

I have git set up with the git-lfs extension. When using Xcode 6 to do a search and replace then it uses git internally to take a snapshot of the project before doing the replace. Now that I am using lfs the snapshot fails with the message: error: copy-fd: write returned Broken pipe error: cannot […]

Unable to add Git repository hosted on OS X Server

I created a repository on OS X Server called myTestRepo. For HTTPS Access, I am allowing logged in users to read and write. When I try to add this repository in Xcode, I get an error. In repository address, if I enter ssh://iMac/git/myTestRepo.git I get the following error Could not read from remote repository. If […]

Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo

I am using Mac OS X 10.9.5 with git version 2.1.2. Entering git push I receive: Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo. fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. I have run sudo xcodebuild […]

Lots of conflicts in Pods project after using CocoaPods

I am just starting using CocoaPods to integrate some libraries to my project. When I and my teammates both run pod install to install the new library everything seems fine. However, when I am pulling her code from our repository I got a huge amount of conflicts in Pods project. 535 to be exact. I […]

How to delete files or folders in a git repository using Xcode?

My project had several folders that accidentally got added to my GitHub repository. I could delete them (one file at a time) from the GitHub website but that is tedious for a large number of files. I tried using git on the command line but it was conflicting with the Xcode source control updates. I […]

How to connect one code into two git repositories?

I have an iOS project in my Xcode. I want to push my changes into two separate git repositories. (One is repository in our local network and the other one is a repository in my servers on Internet). Is there any options to connect the code to two repositories?

How to remove static library from source control?

I followed this guide:http://www.raywenderlich.com/41377/creating-a-static-library-in-ios-tutorial to create a static library and added it as a subproject to my main project. When I tried to push after committing(Source Control->Push), I see my static library in addition to my main project included in the push. I want my static library to be part of my project and only […]

Git Baby is a git and github fan, let's start git clone.