大家可以说说flutter开发的一些坑

Facechat 2018-07-12 10:18:56
最近在学习google的flutter,虽然flutter经过那么久的开发,已经日益完善,但是开发过程中还是会有许多坑。
在这我先说说我碰到的坑:
在andriod模拟器上调试正常,但是在ios模拟器上就会报错,
报错信息:
Launching lib/main.dart on iPhone X in debug mode...
Starting Xcode build...
Xcode build done.
Failed to build iOS app
Error output from Xcode build:
** BUILD FAILED **

Xcode's output:
=== BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug ===
diff: /Podfile.lock: No such file or directory
diff: /Manifest.lock: No such file or directory
error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.
Could not build the application for the simulator.
Error launching application on iPhone X.
也google了很多,但是都解决不了。
...全文
5619 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
「已注销」 2019-09-12
  • 打赏
  • 举报
回复
引用 5 楼 ubuntu1804lts 的回复:
flutter 在开发windows程序的同时,TextField无法输入中文
https://github.com/flutter/flutter/issues/30661
这个bug已经修复
「已注销」 2019-09-04
  • 打赏
  • 举报
回复
flutter 在开发windows程序的同时,TextField无法输入中文
https://github.com/flutter/flutter/issues/30661
hehuanhuan123 2019-07-19
  • 打赏
  • 举报
回复
问下各位大神这是哥什么问题
Facechat 2018-07-18
  • 打赏
  • 举报
回复
搞定了,感觉是官方的问题。
https://github.com/flutter/flutter/issues/19257
我在github提交的issue,你可以参考下。
具体解决方法:执行flutter channel master即可,切换到官方master开发主分支即可
疯清扬Michael 2018-07-17
  • 打赏
  • 举报
回复
楼主是想通过 CocoaPods 引入 iOS Native 的库吧?
搞定没,我也遇到这个问题了。
不知道怎么引入 Native 库
Facechat 2018-07-13
  • 打赏
  • 举报
回复
https://stackoverflow.com/questions/17072396/cocoapods-errors-on-project-build
https://support.layer.com/hc/en-us/articles/204301594-I-m-getting-a-The-sandbox-is-not-in-sync-with-the-Podfile-lock-error-How-do-I-fix-it-
https://stackoverflow.com/questions/21366549/errorthe-sandbox-is-not-in-sync-with-the-podfile-lock-after-installing-res
https://stackoverflow.com/questions/31738339/the-sandbox-is-not-in-sync-with-the-podfile-lock-ios/35446801
这几种方法我都尝试了,还是不行

790

社区成员

发帖
与我相关
我的任务
社区描述
移动平台 其他移动相关
社区管理员
  • 移动开发其他问题社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧