美文网首页iOS收藏
flutter工程ios手动建桥文件

flutter工程ios手动建桥文件

作者: 码代码的小公举 | 来源:发表于2019-01-23 11:09 被阅读56次

情景:flutter项目下引入了第三方定位功能:geolocator: ^2.1.1
爆发错误:
apple mach-o linker error Could not find auto-linked library
Could not find auto-linked library 'swiftFoundation 等一系列200条错误,(忘记截图了)
原因:Object-C中引入了Swift,混编问题
解决:
打开xcode:


新建
选择
选择需要混入的语言
确认添加桥文件

然后会生成:


产生文件
再进行编译,就通过了。

相关文章

网友评论

    本文标题:flutter工程ios手动建桥文件

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