Cordova ios BackupWebStorage 问题

600 阅读1分钟

BackupWebStorage

Started backup to iCloud! Please be careful.
Your application might be rejected by Apple if you store too much data.
For more information please read "iOS Data Storage Guidelines" at:
https://developer.apple.com/icloud/documentation/data-storage/
To disable web storage backup to iCloud, set the BackupWebStorage preference to "local" in the Cordova config.xml file

解决步骤

  1. 打开你的目标/platforms/ios/cordova/defaults.xml
  2. preference name="BackupWebStorage" value="cloud" 改成 preference name="BackupWebStorage" value="none"
  3. 保存并重新构建 ios 应用

NSInvalidArgumentException

NSInvalidArgumentException', reason: '*** -[NSURL URLByAppendingPathComponent:isDirectory:]: component, components, or pathExtension cannot be nil.

遇到这个问题有很多情况引起,我的原因是因为使用了

cordova-hot-code-push-plugin 热更新然而没有使用 crodova-hcp build 导致

# border-radius 加上 overflow:hidden 失效问题

如果一个父元素设置了overflow:hidden属于的同时还设置了border-radius属性,那么如果想隐藏超出的子元素,四个圆角处会出现超出圆角依然显示的bug;

这是一个诡异的错误,网上解决方案多、咋,但是都不太好用,目前还没发现比较好都解决方案。