字符串文件不能以 ASCII 属性 列表打开 Xcode?
String file don't open as ASCII Property List in Xcode?
并想更新我的 ZDCChatStrings.bundle 中的字符串 ios.ZDCChat.noAgentsMessage。
如果我右键单击捆绑包中的字符串文件并 select 打开为 > ASCII 属性 列表,它会出错并且无法打开。
错误说:
Tried to create a document (class: IDEPlistDocument) and got a
document with a different, non-conforming fileType back instead.
这是 Localizable.strings 文件如何在我这边打开的屏幕截图,如果我按原样更改其中的任何内容,它也会停止工作。
这是无法在 Xcode 中正确打开的字符串文件 - 因此我无法更改其中的字符串:
https://github.com/zendesk/zendesk_sdk_chat_ios/blob/master/ZDCChatStrings.bundle/en.lproj/Localizable.strings
感谢任何帮助。
两种解决方案:
skaak 在上面的评论中建议的解决方案也有效,即
将扩展名更改为 .plist,它使文件可读,可以更新。
但是如果你不想改变扩展名,想替换字符串文件中的字符串,那么可以使用:/usr/libexec/PlistBuddy -c
并想更新我的 ZDCChatStrings.bundle 中的字符串 ios.ZDCChat.noAgentsMessage。 如果我右键单击捆绑包中的字符串文件并 select 打开为 > ASCII 属性 列表,它会出错并且无法打开。
错误说:
Tried to create a document (class: IDEPlistDocument) and got a document with a different, non-conforming fileType back instead.
这是 Localizable.strings 文件如何在我这边打开的屏幕截图,如果我按原样更改其中的任何内容,它也会停止工作。
这是无法在 Xcode 中正确打开的字符串文件 - 因此我无法更改其中的字符串: https://github.com/zendesk/zendesk_sdk_chat_ios/blob/master/ZDCChatStrings.bundle/en.lproj/Localizable.strings
感谢任何帮助。
两种解决方案:
skaak 在上面的评论中建议的解决方案也有效,即 将扩展名更改为 .plist,它使文件可读,可以更新。
但是如果你不想改变扩展名,想替换字符串文件中的字符串,那么可以使用:/usr/libexec/PlistBuddy -c