在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
`get_ip` does not specify a Swift version and none of the targets (`Runner`) integrating it have 或者 `xxx` does not specify a Swift version and none of the targets (`Runner`) integrating it have
复制这个库(例如get_ip)的代码,重新新建flutter项目,将代码复制到新的项目里面,再上传到公司的git仓库中,打tag,再依赖,再去pod install,即可。 git tag -a 0.0.1 -m "改写get_ip库..." git push --tags 总结一下,pub中的库有很多,但是经常会有flutter的版本和java/kotlin、objectC/Swift的版本冲突和不兼容的情况出现,特别是在flutter混合开发(原生项目和flutter混合的项目)的过程中会出现类似这种不兼容的情况,完全可以自己动手去改写这些pub库,不要认为很难,动手去做就完了。 |
请发表评论