• 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
Re: Project Find - Replace Fails Silently - Watch Movie!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Project Find - Replace Fails Silently - Watch Movie!


  • Subject: Re: Project Find - Replace Fails Silently - Watch Movie!
  • From: Jerry Krinock <email@hidden>
  • Date: Fri, 24 Oct 2008 20:43:47 -0700


On 2008 Oct, 22, at 21:25, Neil wrote:

You might look into the old unix util "dos2unix"; it, run repeatedly through a shell script, might do the trick for you.

That's not installed on my system. I found the manual page for a linux system but it only handles one file at a time which wouldn't be any fun for a large project.


On 2008 Oct, 23, at 9:25, Dan Korn wrote:

If you're using some kind of source control, you should be able to have it set the line endings when you check out the source files. If you're not using SCM, well, you probably should.

Sorry, I'm not.

The only problem is when you copy-and-paste code from another file with different line endings, in which case you may need to temporarily use the setting in Xcode to "fix" them.

So, although I find this hard to believe that I would have to do such a thing in order to fix line endings for Xcode in the year 2008, I wrote a dorky perl script which recursively searches given directories, reports any files with indicated extensions (i.e. .h, .m) that have non-unix line endings, and then after you interact, fixes them. If anyone else is having line ending issues with Xcode and wants to try my dorky script, here it is...


http://sheepsystems.com/sourceCode/unixnewlines.html

_______________________________________________
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: Project Find - Replace Fails Silently - Watch Movie!
      • From: Jerry Krinock <email@hidden>
References: 
 >Project Find - Replace Fails Silently - Watch Movie! (From: Jerry Krinock <email@hidden>)
 >Re: Project Find - Replace Fails Silently - Watch Movie! (From: Dan Korn <email@hidden>)
 >Re: Project Find - Replace Fails Silently - Watch Movie! (From: Jerry Krinock <email@hidden>)
 >Re: Project Find - Replace Fails Silently - Watch Movie! (From: Neil <email@hidden>)

  • Prev by Date: Re: iPhone 2.2 SDK?
  • Next by Date: Re: Just starting off in obj C
  • Previous by thread: Re: Project Find - Replace Fails Silently - Watch Movie!
  • Next by thread: Re: Project Find - Replace Fails Silently - Watch Movie!
  • Index(es):
    • Date
    • Thread