iphone设备在stf平台不展示,报错string: undefined (not a string) at Field
2021-08-11 14:16 Tanwheey 阅读(219) 评论(0) 编辑 收藏 举报throw Error("Illegal value for " + this.toString(true) + " of type " + this.type.name + ": " + val + " (" + msg + ")");
因为没有该设备, "iPhone12,8": "iPhone SE" 添加到 DeviceType 中即可。
2021-08-11T05:34:09.844Z INF/ios-device 5738 [00008030-001278DC21E3802E] Fully operational
stf/node_modules/protobufjs/dist/ProtoBuf.js:2641 throw Error("Illegal value for "+this.toString(true)+" of type "+this.type.name+": "+val+" ("+msg+")"); ^ Error: Illegal value for Message.Field .DeviceIdentityMessage.model of type string: undefined (not a string) at Field. (stf/node_modules/protobufjs/dist/ProtoBuf.js:2641:27) at ...
原因:获取不到this.type.name,因为设备没有在lib/units/ios-device/support/TypeToModel.js中维护导致,添加设备即可。
已有设备记录: