Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Name Change Issue - Xcode trying to build from old file name

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?

like image 403
user3294722 Avatar asked Nov 16 '25 11:11

user3294722


1 Answers

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.

like image 70
Kai Schaller Avatar answered Nov 18 '25 05:11

Kai Schaller



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!