how do i fix broken Xcode 'git blame' / 'git log' panel? - xcode6

for a while, i've been happy to have the capability in Xcode to use git log & git blame in the comparison panel.
at some point in the recent past, this panel has stopped showing anything.
in 'blame' mode, the panel is blank and the same color as my text editor.
in 'log' mode, the panel is white, as it normally is when it is showing me the git log for a while, but there's nothing in the panel.
i've tried turning off source control and turning it back on.
i've tried doing that and quitting Xcode and starting it back up, and various combinations of that.
i tried deleting & re-installing Xcode.
git blame in SourceTree still works in the repos associated with my Xcode projects (there are three repos, one per target), as does git blame. but not inside Xcode.
i am looking for answers as to how i can re-establish my Xcode environment to show 'git blame' and 'git log' .

Related

Commenting keyboard shortcut broken in Xcode 8.3.3

I restarted, rebuilt, changed app name, cleared derived data, reboot again. I literally just deleted and re-downloaded Xcode. I have read and followed dozens of posts across the internet to no avail.
I am unable to try sudo /usr/libexec/xpccachectl as I am missing that command. I tried 'installing additional components' in terminal but that asks for Xcode to have accessibility permission from system preferences. I add it to the list. Run the install components command and it just asks again.

ConnectionKit app not opening on other Computers

I created a Mac app that uses ConnectionKit to connect to a server using FTP. Today I went to export the file and use it on another computer only to find that the app does not open entirely on a different computer.
On the development computer, the app functions completely, but on another computer, it opens, the icon stops bouncing in the dock, and the name of the app is shown in the menu bar, but the first view controller and window are never opened.
The menu is also not visible. It just shows the app title and nothing else.
I assume that this has to do with ConnectionKit, but I checked the package contents of the exported bundle and ConnectionKit is in there under Frameworks.
Here are the steps I took to include it.
I downloaded ConnectionKit using git clone
I downloaded each git submodule using git submodule update --recursive --init
I dragged the ConnectionKit.xcodeproj file to my Frameworks directory in the project explorer
I added ConnectionKit from the workspace into the "Link Binary with Libraries" section
I added a new "Copy Files" build phase.
I changed the destination to "Frameworks"
I added the ConnectionKit.framework from the Products of the ConnectionKit.xcodeproj to the copy files phase.
The build phases tab looks like this:
This doesn't seem to work. The application just sits there and doesn't launch the app on any computer other than the development computer.
What am I doing wrong here?
You need to run the app in Xcode under the debugger on one of these other computers. It sounds very likely that you are getting a raise at launch. Seeing the raise in the debugger would doubtless shed light on the cause, which might or might not even have anything to do with ConnectionKit. :-> You could also look at the console logs generated by your app, in Console.app (in Applications/Utilities/), but actually getting the raise in the debugger is generally more useful unless the problem is something very obvious.

XCode automatically commmits any changes to Git

I have a project in XCode 5.1.1 and the source is in a Git repository. I use SourceTree for managing the Git repository. Lately I noticed that changes to Images.xcassets would automatically get committed with some old commit message.
At first I thought it might be the Git client so I tried closing the Git client and also tried ither clients but it was still happening. I am now sure that its XCode which is causing this. Has someone faced this issue and how to solve it?
I don't think it is your Xcode. Xcode is very simple in handling git. It doesn't do any commits by itself, it doesn't switch your branches (if you don't select the appropiate menu item). It works only on the current branch - when a new file is created, it is added to git, when a file is deleted, it is deleted from git.
Note you can completely turn off Source Control in Xcode Preferences but I guess your problem lies elsewhere.
I saw some people meddling with pre-build/post-build tasks in Xcode to do strange stuff but the most likely cause is a bad state of git branches - bad merging, forcing commits etc. Then the same commit message can appear multiple times but it's just a result of how git tries to synchronize local and remote repositories when forced to.

In GitHub for Windows, how to stop tracking a repository when "stop tracking this repository' menu item is grayed out?

In my GitHub for Windows, there are two repositories that always appear on the list of GitHub repositories. One was created by me. The other was a project I stopped watching long ago.
I want to remove these items form the list of GitHub repos in GitHub for Windows.
When I move my mouse over the repo name, the pop-up menus says I can clone it etc, but 'stop tracking repository' is grayed out.
I have tried cloning the project. Then 'Stop tracking repository' is not grayed out. I click on this item. The repo does not disappear from the list of repos, but 'stop tracking...' is grayed out again,
Any suggestions on how to make these 'ghost' repos disappear from the list?
"Stop Tracking" is always grayed when used on the GitHub repo associated to my account.
It works only for my "Local repositories".
If you have deleted your repo on the GitHub side (or stopped wathcing a repo), and a "refresh" on the GitHub for Windows isn't enough to update your GitHub repo list, then you need to contact GitHub support.

How to force-install Xcode 4.3?

I've read through a number of existing StackOverflow questions about Xcode 4 installation woes, but none of them quite match my configuration.
I started off with a MacBook Air with apps sucked over from an older MacBook Pro. During the migration process, it would seem that Xcode.app was pulled over, but /usr/include and friends were left behind.
So, I tried to install Xcode from the app store earlier, and got no feedback except for minutes of 'INSTALLING', with no status and no noticeable network load. I shut down (was running out of battery) and tried again later -- same behavior.
Then, I ran sudo /Developer/Library/uninstall-devtools --mode=all to clean things up, rebooted, and tried again. Now, when I click the 'install' button in the app store, I'm prompted for my credentials, I see a little spinner for a second in the top-left of the window, and the UI reverts to its original state ("Install" as an option, etc.). Subsequent clicks on "Install" trigger the spinner for a second, but have no other noticeable side effects.
Are there any other rituals I should perform to clean my computer of whatever invalid state it's in so that I can get Xcode re-installed so that I can get /usr/include etc. back so that I can start compiling again?
You might try installing the Xcode 4.3 dmg available from https://developer.apple.com/downloads/index.action. At least Installer.app has a log window that might show some useful errors if it fails.
Or if you want to keep trying the App Store version, open Console.app and watch the "All Messages" log while trying the install.