我们有一个MobileFirst7.0混合应用程序项目,包括iOS和安卓本地环境。
我们希望在从git服务器签出该项目之后,使用windows 7上的移动第一个cli 7.0来构建项目并生成构建时资源。当它开始解析info.plist of iOS项目时,就失败了。
下面的错误消息是从mfcli获得的:
[Error:
BUILD FAILED
D:\programs\IBM\MobileFirst-CLI7\mobilefirst-cli\node_modules\generator-worklight-server\lib\build.xml:135: The following error occurred while executing this line:
D:\programs\IBM\MobileFirst-CLI7\mobilefirst-cli\node_modules\generator-worklight-server\lib\build.xml:341: The following error occurred while executing this line:
D:\programs\IBM\MobileFirst-CLI7\mobilefirst-cli\node_modules\generator-worklight-server\lib\build.xml:351: The following error occurred while executing this line:
D:\programs\IBM\MobileFirst-CLI7\mobilefirst-cli\node_modules\generator-worklight-server\lib\build.xml:330: Failed building application: com.worklight.builder.exception.WorklightBuildException: com.worklight.builder.exception.WorklightBuildRuntimeException: Resource Manager - Problem reading info.plist file 1-byte UTF-8 �ǦC���L�Ħ줸�� 1�C Nested exception: 1-byte UTF-8 �ǦC���L�Ħ줸�� 1�C
Total time: 18 seconds
]“资源管理器-Problem读取info.plist文件1字节UTF-8”是什么意思?
windows 7上的git本地存储库被设置为core.autocrlf = true。
info.plist文件中有繁体汉字,因此这个问题可能与字符设置有关。
发布于 2015-08-05 10:11:13
经过进一步的调查,我们发现这个问题肯定与mfcli有关。
windows上的可能mfcli不接受Info.plist中的非ascii代码字符。通过在ios项目中为info.plist文件应用本地化字符串,我们可以很容易地解决这个问题。
发布于 2015-07-28 12:41:22
发布于 2015-07-28 10:38:58
MFP CLI不更改文件的编码。
这听起来像是Git服务器--也许它是托管在Windows上的事实--确实影响了文件的编码。
文件应该是UTF-8。
https://stackoverflow.com/questions/31670258
复制相似问题