16 11 月, 2011

Copy .strings file Error Validation failed: The data couldn’t be read because it has been corrupted.

XCode中iOS项目字符串资源InfoPlist.strings添加多语言支持后,修改中文资源中字符串常量为汉字后编译出现标题中的错误,解决方法为修改各语言资源中的文本格式,使其结构一致,如出错时的中英文资源是这样的:

{

CFBundleDisplayName = “\U71af\U72a2+”;

}

{

CFBundleDisplayName = Game+;

}

修改英文资源为这样即可解决:

{

CFBundleDisplayName = “Game+”;

}