• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Xcode and Git - renaming classes by changing case.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Xcode and Git - renaming classes by changing case.


  • Subject: Xcode and Git - renaming classes by changing case.
  • From: Alex Zavatone <email@hidden>
  • Date: Wed, 08 Jul 2015 10:22:31 -0400

Xcode 6.3

Git repo.

Refactor a class from myclassThatIsImproperlyCased to MyClassThatIsImproperlyCased.

This changes the filename by only changing the case, not the spelling of the files.

Commit the file, make changes, continue.  Repeat

Quit and restart Xcode and reload the project.

Select the class and look at the Assistant Editor in Comparison mode.

Xcode now states "The file does not exist in the index."

WTF.




Does anyone have a good strategy dealing with Xcode and Git when renaming classes where the spelling of the class does not change, but only the case?

I've looked through the tips on Stack Overflow and even though I'm able to temporarily add an commit the desired files to my local Git repo and push to the remote, as soon as I quit and relaunch Xcode I will click on the file and look at its history in the Assistant Editor and I get "This file does not exist in the index."

We have classes done offshore that start with lowercase letters and I've refactored them to start with an uppercase letter.

With many of the classes we've had to refactor because of poor casing of classes, Xcode will always fail to find the file in its Git repo, but only after you quit and restart Xcode.

Now we're stuck with team members not able to make changes to the classes and commit them.  Refactoring the classes now have lost the association between the .m and .h files so while I can refactor the class name in the @implementation to change the spelling, the class name in the header s completely ignored.

Any ideas here?  This is a pretty serious issue to be in a product at version 6.3

Thanks in advance.

Alex Zavatone


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Xcode and Git - renaming classes by changing case.
      • From: Joar Wingfors <email@hidden>
  • Prev by Date: Re: Weird ".datc5c7.a42" Xcode build directory at the root of my project dir
  • Next by Date: Re: Xcode and Git - renaming classes by changing case.
  • Previous by thread: Re: Weird ".datc5c7.a42" Xcode build directory at the root of my project dir
  • Next by thread: Re: Xcode and Git - renaming classes by changing case.
  • Index(es):
    • Date
    • Thread