iOS上Flutter的协同设计错误 [英] Codesign error with Flutter on iOS

查看:54
本文介绍了iOS上Flutter的协同设计错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我最近一直在尝试进入Flutter,但遇到了问题。当我创建一个新项目并执行 flutter运行时,它就可以正常工作。如果我完全关闭应用程序并重新运行该应用程序,则每次都会收到此错误。

So I have been trying to get into Flutter recently and I am having issues. When I create a new project and do flutter run it works just fine. If I completely close the application and re-run the app I get this error every time.

Failed to build iOS app
Error output from Xcode build:
↳
    ** BUILD FAILED **

Xcode's output:
↳
    === BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug ===
    /Users/zachstarnes/Documents/code/test_proj/build/ios/Debug-iphonesimulator/Runner.app: resource fork, Finder information, or similar detritus not allowed
    Command /usr/bin/codesign failed with exit code 1
Could not build the application for the simulator.
Error launching application on iPhone X.

我不知道如何解决此问题。我尝试打开xcode项目文件并将项目签名到我的组织并重新运行,但这仍然不会改变结果。对解决此问题需要采取什么措施的任何想法?

I have no idea how to fix this. I tried opening the xcode project file and signing the project to my organization and rerun but that still does not change the outcome. Any ideas of what I need to do to fix this?

推荐答案

所以,经过很长一段时间,如果终于弄清楚了解决方法, 。

So after a long time if finally figured out how to fix it.

我能够解决的方法是删除flutter项目根目录中的 build 目录。

The way I was able to fix is to delete the build directory in the root of your flutter project. The folder just gets rebuilt without the files causing the problem.

我认为该文件夹与分叉我添加到项目中的字体/图像有关。

I assume it has something to do with forking the fonts/images I was adding to the project.

编辑(6/4/2019)您也可以使用 flutter clean ,它也可以解决问题。由@Luke Stanyer在下面声明!

Edit (6/4/2019) You can also use flutter clean and it will also solve the issue. Stated by @Luke Stanyer below!

这篇关于iOS上Flutter的协同设计错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆