Info.plist 和 Base 本地化:项目未编译 [英] Info.plist and Base localization: Project not compiling

查看:26
本文介绍了Info.plist 和 Base 本地化:项目未编译的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Info.plist上启用Base定位后,Xcode 为我保驾护航.

After enabling Base locaization on the Info.plist, Xcode bailed on me.

此后,它拒绝编译该项目,说明

Since then, it refuses to compile the project, stating

无法从'/Users/[redacted]/git/[redacted]/[redacted]/Info.plist'读取数据:无法打开文件Info.plist",因为没有这样的文件.

could not read data from '/Users/[redacted]/git/[redacted]/[redacted]/Info.plist': The file "Info.plist" couldn’t be opened because there is no such file.

这并不让我感到惊讶,因为它现在位于 /Users/[redacted]/git/[redacted]/[redacted]/Base.lproj/Info.plist.

Which does not surprise me, given that it now is in /Users/[redacted]/git/[redacted]/[redacted]/Base.lproj/Info.plist.

将文件移回文件系统会产生

Moving the file back in the Filesystem yields

/Users/[redacted]/git/[redacted]/[redacted]/Base.lproj/Info.plist:0:错误:读取数据:文件Info.plist"无法打开,因为有没有这样的文件.

/Users/[redacted]/git/[redacted]/[redacted]/Base.lproj/Info.plist:0: error: reading data: The file "Info.plist" couldn’t be opened because there is no such file.

这让我很惊讶.

如何解决这个问题?

推荐答案

好的.

似乎可以通过在项目目录中从项目中删除 Info.plist 来逆转本地化过程.Xcode 没有询问如何处理原始文件,因为它找不到它.

It seems the localization process can be reversed by removing Info.plist from the project while in the project directory. Xcode didn't ask what to do with the original file because it couldn't find it.

通过拖放将文件重新添加到项目中(显然不是复制,因为它已经存在)使其编译.

Re-adding the file to the project by drag and drop (not copying obviously, because it is already there) made it compile.

这篇关于Info.plist 和 Base 本地化:项目未编译的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆