Xcode Find and replace in all project files

MacosXcode5

Macos Problem Overview


I need to replace NSLog with DDLogVerbose in all files in the current project I am working on… What is an easy method to do this? (the search navigator only has search in it).

Also I need to add a line at the beginning of all .m files. How is this done quickly? (There are over 500 such files.)

Macos Solutions


Solution 1 - Macos

Here are some pictures. In the toolbar search, you have to press 'Find' then a menu appears – pick replace. Now you can replace project-wide.

step 1 step 2

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
Questionuser426132View Question on Stackoverflow
Solution 1 - MacosSouleimanView Answer on Stackoverflow