【发布时间】:2020-03-30 17:12:14
【问题描述】:
我刚刚下载了 Xcode 11.4,当我将我的图像(它是一个 gif)添加到 pubspec.yaml 中的“资产:”时,模拟器将无法工作 这是我的回归:
Launching lib/main.dart on iPhone 11 Pro in debug mode...
Running Xcode build...
Xcode build done. 35.3s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
/Users/scrabbleknight/Downloads/swift-master/build/ios/Debug-iphonesimulator/Runner.app: resource fork, Finder information, or similar detritus not allowed
Command CodeSign failed with a nonzero exit code
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
Could not build the application for the simulator.
Error launching application on iPhone 11 Pro.
【问题讨论】:
-
这种情况只发生在 Xcode 上吗?安卓呢?
-
它来自Flutter,但这是一个Xcode问题,因为我的Android模拟器都运行流畅。我发现它只发生在 gif 图像上,而我没有添加到我的资产文件中。我假设 Flutter 在将 gif 作为文件上传到 pubspec 时存在问题。
-
看看其中一个是否可以修复它stackoverflow.com/questions/39652867/…