所以我最近一直试图进入Flutter而且我遇到了问题 . 当我创建一个新项目并且 flutter run
它工作得很好 . 如果我完全关闭应用程序并重新运行应用程序,我每次都会收到此错误 .
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项目文件并将项目签名到我的组织并重新运行,但仍然没有改变结果 . 我需要做些什么才能解决这个问题?
2 回答
所以经过很长一段时间,如果终于找到了解决方法 .
我能够修复的方法是删除flutter项目根目录中的
build
目录 . 该文件夹刚刚重建,没有导致问题的文件 .我认为它与分配我添加到项目中的字体/图像有关 .
这种编码失败可能有多种原因 .
转到钥匙串访问 - > Apple Worldwide Developer Relations Certificate Authority 证书 - > Get Info - >(展开) Trust settings
然后为“ When using this certificate: ”的组合框使其成为 System Defaults