Ios IBM Worklight:FT_Open_Face失败:使用自定义字体时出现错误2

Ios IBM Worklight:FT_Open_Face失败:使用自定义字体时出现错误2,ios,fonts,ibm-mobilefirst,Ios,Fonts,Ibm Mobilefirst,我一直在使用我的WL应用程序的两个版本;一个用于UAT,另一个用于生产。从几天开始,我只在UAT版本中得到这个错误。但是,两个版本的代码保持不变 正因为如此,UAT应用程序的字体变得不同了 我正在使用本顿和赫尔维蒂卡 @font-face { font-family: 'HelveticaNeueLTStd-Roman'; src: url('fonts/helveticaneueltstdroman/helveticaneueltstdroman.eot'); src: url('

我一直在使用我的WL应用程序的两个版本;一个用于UAT,另一个用于生产。从几天开始,我只在UAT版本中得到这个错误。但是,两个版本的代码保持不变

正因为如此,UAT应用程序的字体变得不同了

我正在使用本顿和赫尔维蒂卡

@font-face {
  font-family: 'HelveticaNeueLTStd-Roman';
  src: url('fonts/helveticaneueltstdroman/helveticaneueltstdroman.eot');
  src: url('fonts/helveticaneueltstdroman/helveticaneueltstdroman.eot?#iefix') format('embedded-opentype'), url('fonts/helveticaneueltstdroman/helveticaneueltstdroman.woff') format('woff'), url('fonts/helveticaneueltstdroman/helveticaneueltstdroman.ttf') format('truetype'), url('fonts/helveticaneueltstdroman/helveticaneueltstdroman.svg#helveticaneueltstdroman') format('svg');
}
@font-face {
    font-family: 'BentonSansBold';
    src: url('fonts/Benton/bentonsans-bold.eot');
    src: url('fonts/Benton/bentonsans-bold.eot') format('embedded-opentype'),
         url('fonts/Benton/bentonsans-bold.woff') format('woff'),
         url('fonts/Benton/bentonsans-bold.ttf') format('truetype'),
         url('fonts/Benton/bentonsans-bold.svg#BentonSansBold') format('svg');
}
@font-face {
    font-family: 'BentonSansRegular';
    src: url('fonts/Benton/bentonsans-regular.eot');
    src: url('fonts/Benton/bentonsans-regular.eot') format('embedded-opentype'),
         url('fonts/Benton/bentonsans-regular.woff') format('woff'),
         url('fonts/Benton/bentonsans-regular.ttf') format('truetype'),
         url('fonts/Benton/bentonsans-regular.svg#BentonSansRegular') format('svg');
}
下面是错误消息

May  9 10:56:22 iPhone abcApp[7054] <Error>: libMobileGestalt copySystemVersionDictionaryValue: Could not lookup ReleaseType from system version dictionary\
May  9 10:56:26 iPhone abcApp[7054] <Warning>: [LOG] ondeviceready event dispatched\
May  9 10:56:26 iPhone abcApp[7054] <Warning>: \{\
        appVersionPref = "1.0";\
        freeSpace = 13073145856;\
        wlSkinLoaderChecksum = "(null)";\
        wlSkinName = default;\
    \}\
May  9 10:56:26 iPhone abcApp[7054] <Warning>: [LOG] Application did not define an i18n messages object, skipping translation.\
May  9 10:56:26 iPhone abcApp[7054] <Warning>: [LOG] wlclient init started\
May  9 10:56:26 iPhone abcApp[7054] <Warning>: [LOG] Read cookies: null\
May  9 10:56:26 iPhone abcApp[7054] <Warning>: [LOG] CookieMgr read cookies: \{\}\
May  9 10:56:26 iPhone abcApp[7054] <Error>: FT_Open_Face failed: error 2.\
May  9 10:56:27 iPhone abcApp[7054] <Warning>: [LOG] Request [http://172.20.10.6:9082/myApp/apps/services/api/abcApp/iphone/init]\
May  9 10:56:30 iPhone abcApp[7054] <Warning>: [LOG] indicatorIdx =4122\
May 9 10:56:22 iPhone abcApp[7054]:libMobileGestalt CopySystemVersionDictionary值:无法从系统版本字典中查找ReleaseType\
5月9日10:56:26 iPhone abcApp[7054]:[LOG]ondeviceready事件已调度\
5月9日10:56:26 iPhone abcApp[7054]:\{\
appVersionPref=“1.0”\
自由空间=13073145856\
wlSkinLoaderChecksum=“(空)”\
wlSkinName=默认值\
\}\
5月9日10:56:26 iPhone abcApp[7054]:[LOG]应用程序未定义i18n消息对象,正在跳过转换\
5月9日10:56:26 iPhone abcApp[7054]:[LOG]wlclient初始化已启动\
5月9日10:56:26 iPhone abcApp[7054]:[LOG]读取cookies:null\
5月9日10:56:26 iPhone abcApp[7054]:[LOG]CookieMgr读取cookies:\{\}\
5月9日10:56:26 iPhone abcApp[7054]:FT_Open_Face失败:错误2\
5月9日10:56:27 iPhone abcApp[7054]:[LOG]请求[http://172.20.10.6:9082/myApp/apps/services/api/abcApp/iphone/init]\
5月9日10:56:30 iPhone abcApp[7054]:[LOG]指示符dx=4122\
我阅读并查找丢失的字体文件。但是所有的文件都在那里

任何建议,这里会出什么问题


谢谢

Abdul,正如您所说,这只发生在您的机器上,而不是其他开发人员的机器上,这听起来更像是一个环境问题


我还发现了以下问题:

您是在设备上还是在iOS模拟器上测试这两个应用程序?在构建和运行该项目之前,请尝试在Xcode中清理该项目,或/或确保重置模拟器。也许会有帮助。是的,在设备上测试。甚至删除了应用程序,然后重新安装,但没有任何好处。加上现在,有人在他的UAT版本的设备上有正确的字体,但在得到直接更新后,字体已经改变了。它看起来像是代码生成问题。我从consumer Studio 5.0.5中删除了iPhone环境,然后重新添加,并在控制台上重新上传了应用程序,现在当我得到更新时仍然面临问题。显示相同异常和字体的日志不正确。是否在应用程序中使用自定义字体?你如何定义它们?您需要更好地解释您的应用程序,它是什么,等等。。。用更多细节编辑问题。您是否在同一台设备上测试uat和生产应用程序?ios版本是什么?还要添加应用程序是如何为uat和生产构建的信息,原因可能有差异。非常感谢,Idan。基本上,我的简历已经损坏了字体文件:(所以我只是重新打印了一遍,效果很好。