简体   繁体   中英

iOS app cannot read info.plist

I made a copy of my app folder and saved it to another directory on my desktop. Now, my original app (or the copy) cannot run because it says the info.plist cannot be read from:

could not read data from '/Users/xxxxxxxx/Desktop/Development/Apps/EUS/EUS Calculator/EUS Calculator/EUS Calculator-Info.plist': The file “EUS Calculator-Info.plist” couldn't be opened because there is no such file.

But, the EUS Calculator-Info.plist is at that path. I've looked through SO and the Google and can't seem to find a solution. How can I resolve this?

Select your target and then select the Build Settings. In there is a section called "Packaging"

Edit the Info.plist File setting. It should be relative to your project file.

Based on your comments

I never moved it, I simply made a copy. The original is on my Desktop... Desktop/Development/Apps/...I made a copy, pasted that into Desktop/GIT/ and ever since then I have been getting this error

and your error says

could not read data from '/Users/xxxxxxxx/Desktop/Development/Apps/EUS/EUS Calculator/EUS Calculator/EUS Calculator-Info.plist': 
The file “EUS Calculator-Info.plist” couldn’t be opened because there is no such file.

so it seems that the info.plist is pointing to the original one.

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