美文网首页
react native - IOS -- 踩坑篇

react native - IOS -- 踩坑篇

作者: _若无 | 来源:发表于2020-07-10 10:16 被阅读0次
  • 错误❌ Unrecognized font family 'Material Icons'
    在使用react-native-vector-icons遇到的错误


    image.png
 版本:
 "react": "16.11.0",
 "react-native": "0.62.0",

✅ 解决办法✅
在info.plist插入一下代码
<key>UIAppFonts</key>
<array>
<string>AntDesign.ttf</string>
<string>Entypo.ttf</string>
<string>EvilIcons.ttf</string>
<string>Feather.ttf</string>
<string>FontAwesome.ttf</string>
<string>FontAwesome5_Brands.ttf</string>
<string>FontAwesome5_Regular.ttf</string>
<string>FontAwesome5_Solid.ttf</string>
<string>Foundation.ttf</string>
<string>Ionicons.ttf</string>
<string>MaterialIcons.ttf</string>
<string>MaterialCommunityIcons.ttf</string>
<string>SimpleLineIcons.ttf</string>
<string>Octicons.ttf</string>
<string>Zocial.ttf</string>
</array>

-错误 ❌ ios 添加证书提示:不能修改'System Roots'钥匙串


image.png

✅ 解决方案 ✅

选择“登录”或login按钮,直接将.cer/.p12文件拖进中间的各种钥匙列表中即可。
  • 问题❌ ios .cer无法导出.p12证书,.p12选项是灰色的

✅ 解决办法✅


image.png

再右击导出即可


image.png
  • 问题❌:
    Invalid Podfile file: syntax error, unexpected end-of-input, expecting end.
    image.png
    解决办法:
  • 问题❌:flatlist 引用出现:VirtualizedList: missing keys for items, make sure to specify a key or id property on each item or provide a custom keyExtractor.


    image.png

解决办法:
添加:

 _keyExtractor = (item, index) => item.id.toString();

引用


image.png

相关文章

网友评论

      本文标题:react native - IOS -- 踩坑篇

      本文链接:https://www.haomeiwen.com/subject/njuscktx.html