Localizable.string 文件中是否可能标记:(#pragma mark)

Is it Possible MARK: (#pragma mark) in Localizable.string file

Pragma 标记在 Localizable.strings 文件中不起作用。如果我在Localizable.strings中添加第二个MARK:(#pragma mark),xcode会引起编译时错误

error: read failed: The data couldn’t be read because it isn’t in the correct format.

见下图,当我添加第一个 pragma 标记 // MARK: MENU ITEMS 时,它没有显示任何错误。但是当我添加第二个标记 // MARK: EMAIL SETTINGS 时,它显示了上述错误。

我的意图很简单,Localizable.strings应该像下面这样组织有序。

This SO post 没有解决我的疑问,也没有得到详细的解释,而且它也太旧了。因此,如果有人遇到过这种情况,请提供您的 answers/suggestion。

是的,有可能。

您缺少一些必需的分号。我想它在幕后用于字符串终止或类似...

https://developer.apple.com/library/content/documentation/Cocoa/Conceptual/LoadingResources/Strings/Strings.html