0

I recently changed the name of an iOS app of mine, or more exactly the name of an Xcode project. I am using Xcode 8.2.1.

The old name was OldAppName and the new one is MyApp.

I followed this video: https://www.youtube.com/watch?v=jRnVjtNLLLk as a basic guidance. The result is not bad, because I successfully changed the name of the project. And the app is building and running with a new name.

But I get some annoying warning like the following:

    file:...MyApp/OldAppName/AppDelegate.swift: warning: Missing file:
    ../MyApp/OldAppName/AppDelegate.swift is missing from working copy

If I search for OldAppName under Xcode I don't find anything.

But if I run the following command in the terminal (in my project folder):

find . -type f -exec grep -l OldAppName \{\} \;

I can see that OldAppName is still present in some files.

Is there something I can do to fix this issue?

Michel
  • 10,303
  • 17
  • 82
  • 179
  • Did adding your file to source control (git commit) solved your problem? – Inder Kumar Rathore Apr 04 '17 at 09:53
  • I did a few things following the post mentioned, but since it didn't work right away it is not clear to see what exactly solved my problem. It seems like the suggestion of removing the file(s) named UserInterfaceState.xcuserstate was the main thing. – Michel Apr 06 '17 at 08:08
  • Sorry I just noticed, the problem has come back. It seems like I need to get rid of the version control for good in order to see the error messages disappear. – Michel Apr 06 '17 at 08:19

1 Answers1

0

Open 'build phases' > 'copy bundle sources' and try to find your file name

Vyacheslav
  • 26,359
  • 19
  • 112
  • 194