简体   繁体   中英

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?

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM