flutter - 命令 PhaseScriptExecution 因非零退出而失败
问题描述
这是错误,当我在 xCode 12 中运行它时。
PhaseScriptExecution Run\ Script /Users/simonwong/Library/Developer/Xcode/DerivedData/Runner-frcmcdsmkzueqwaafgkobyjnbawp/Build/Intermediates.noindex/Runner.build/Debug-iphonesimulator/Runner.build/Script-9740EEB61CF901F6004384FC.sh (in target 'Runner' from project 'Runner')
cd /Users/simonwong/aigogo/ios
export ACTION\=build
export AD_HOC_CODE_SIGNING_ALLOWED\=YES
export ALTERNATE_GROUP\=staff
export ALTERNATE_MODE\=u+w,go-w,a+rX
export ALTERNATE_OWNER\=simonwong
export ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES\=YES
export ALWAYS_SEARCH_USER_PATHS\=NO
export ALWAYS_USE_SEPARATE_HEADERMAPS\=NO
export APPLE_INTERNAL_DEVELOPER_DIR\=/AppleInternal/Developer
export APPLE_INTERNAL_DIR\=/AppleInternal
export APPLE_INTERNAL_DOCUMENTATION_DIR\=/AppleInternal/Documentation
export APPLE_INTERNAL_LIBRARY_DIR\=/AppleInternal/Library
export APPLE_INTERNAL_TOOLS\=/AppleInternal/Developer/Tools
export APPLICATION_EXTENSION_API_ONLY\=NO
export APPLY_RULES_IN_COPY_FILES\=NO
export APPLY_RULES_IN_COPY_HEADERS\=NO
export ARCHS\=x86_64
export ARCHS_STANDARD\=arm64\ x86_64\ i386
export ARCHS_STANDARD_32_64_BIT\=arm64\ i386\ x86_64
export ARCHS_STANDARD_32_BIT\=i386
export ARCHS_STANDARD_64_BIT\=arm64\ x86_64
export ARCHS_STANDARD_INCLUDING_64_BIT\=arm64\ x86_64\ i386
export ARCHS_UNIVERSAL_IPHONE_OS\=arm64\ i386\ x86_64
export ASSETCATALOG_COMPILER_APPICON_NAME\=AppIcon
export ASSETCATALOG_FILTER_FOR_DEVICE_MODEL\=iPhone10,4
export ASSETCATALOG_FILTER_FOR_DEVICE_OS_VERSION\=14.4
export AVAILABLE_PLATFORMS\=appletvos\ appletvsimulator\ iphoneos\ iphonesimulator\ macosx\ watchos\ watchsimulator
../.pub-cache/hosted/pub.dartlang.org/ffi-0.1.3/lib/src/utf8.dart:23:7: Info: Struct 'Utf8' is empty. Support for empty structs is deprecated and will be removed in the next stable version of Dart. Use Opaque instead.
class Utf8 extends Struct {
^
../.pub-cache/hosted/pub.dartlang.org/ffi-0.1.3/lib/src/utf16.dart:16:7: Info: Struct 'Utf16' is empty. Support for empty structs is deprecated and will be removed in the next stable version of Dart. Use Opaque instead.
class Utf16 extends Struct {
^
../.pub-cache/hosted/pub.dartlang.org/ffi-0.1.3/lib/src/allocation.dart:47:33: Info: Support for using non-constant type arguments 'T' in this FFI API is deprecated and will be removed in the next stable version of Dart. Rewrite the code to ensure that type arguments are compile time constants referring to a valid native type.
final int totalSize = count * sizeOf<T>();
^
命令 PhaseScriptExecution 失败,退出代码非零
解决方案
我不知道为什么,但重新启动计算机解决了我的问题。
推荐阅读
- python - 如何在 mongo 文档中进行模糊文本搜索?
- laravel - Laravel 调度程序在每月的第一个星期一运行任务
- c++ - 我正在研究一个应该构建一个库的makefile,然后在构建整个程序时也包含该库
- amazon-web-services - 为 ECS 中的容器指定磁盘大小
- python - Python Selenium - 等到元素可见
- excel - 为什么使用 office.js 在 excel 范围内粘贴数据需要太长时间?
- apache-spark - 如何在运行时火花流应用程序中强制执行模式验证?
- keystore - JavaWS 不以 Signed Jars 开头,表现得像 unsigned
- vue.js - 安装时启动函数的组合 API 问题。没有数据
- python - 在 Windows 10 上的 R Studio 中安装和运行 Tensorflow 的噩梦