Reputation: 235
I've changed the name of my project from "BSV22" to "BSVC". I renamed the project by going to project navigator and double-clicking the title. I accepted changes to all the file names. When I then run the project I get the following error:
could not read data from '/Users/bobpreston/Desktop/BSV22/BSV22/BSV22-Info.plist':
The file “BSV22-Info.plist” couldn’t be opened because there is no such file.
it's pretty obvious why Xcode can't find the old file "BSV22-Info.plist"...because it was renamed when Xcode changed all the file names during the project rename. my question is why is Xcode still trying to build from that old file? it should be compiling from the new filename "BSVC-Info.plist" - and also how do i fix the issue? what else do i have to do?
Upvotes: 4
Views: 2394
Reputation: 15015
While renaming the project name from old name below are the steps:-
1) Changing the name from testing to testing123 and enter.
2) After that it will show the below window. So just click on the rename button
3) After that clean your build and run.
Upvotes: 0
Reputation: 443
In your target Build Settings, check the Packaging
section for the row called Info.plist File
. Make sure it has been updated to use the new filename.
Upvotes: 5