- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
这是生产中的应用程序。我改变了一些逻辑试图获得 dateTime 我已经将它本地化到另一个国家,然后突然有一些关于 dart html 的错误,但我不记得到底是什么,所以我尝试重建项目,结果是提示使用新的构建系统,到目前为止我尝试过:
> 2020-03-16 17:55:17.549 xcodebuild[56626:765857] DTDeviceKit: deviceType from 3ad4f96e876e8222a72563420303530067367818 was NULL
> ** BUILD FAILED **
>
>
> Xcode's output: ↳
**Skipped Warnings about deprecated methods, because of char limits and previously builds despite the warnings.**
>
> Compiler message:
> ../../Developer/flutter/.pub-cache/hosted/pub.dartlang.org/intl-0.16.0/lib/src/http_request_data_reader.dart:11:8:
> Error: Not found: 'dart:html'
> import 'dart:html';
> ^
> ../../Developer/flutter/.pub-cache/hosted/pub.dartlang.org/http-0.12.0+4/lib/src/browser_client.dart:6:8:
> Error: Not found: 'dart:html'
> import 'dart:html';
> ^
> ../../Developer/flutter/.pub-cache/hosted/pub.dartlang.org/intl-0.16.0/lib/src/http_request_data_reader.dart:28:10:
> Error: Type 'HttpRequest' not found.
> Future<HttpRequest> _getString(String url, HttpRequest xhr) {
> ^^^^^^^^^^^
> ../../Developer/flutter/.pub-cache/hosted/pub.dartlang.org/intl-0.16.0/lib/src/http_request_data_reader.dart:28:46:
> Error: Type 'HttpRequest' not found.
> Future<HttpRequest> _getString(String url, HttpRequest xhr) {
> ^^^^^^^^^^^
> ../../Developer/flutter/.pub-cache/hosted/pub.dartlang.org/http-0.12.0+4/lib/src/browser_client.dart:34:18:
> Error: 'HttpRequest' isn't a type.
> final _xhrs = <HttpRequest>{};
> ^^^^^^^^^^^
> ../../Developer/flutter/.pub-cache/hosted/pub.dartlang.org/intl-0.16.0/lib/src/http_request_data_reader.dart:20:23:
> Error: Method not found: 'HttpRequest'.
> var request = new HttpRequest();
> ^^^^^^^^^^^
> ../../Developer/flutter/.pub-cache/hosted/pub.dartlang.org/intl-0.16.0/lib/src/http_request_data_reader.dart:28:46:
> Error: 'HttpRequest' isn't a type.
> Future<HttpRequest> _getString(String url, HttpRequest xhr) {
> ^^^^^^^^^^^
> ../../Developer/flutter/.pub-cache/hosted/pub.dartlang.org/intl-0.16.0/lib/src/http_request_data_reader.dart:29:35:
> Error: 'HttpRequest' isn't a type.
> var completer = new Completer<HttpRequest>();
> ^^^^^^^^^^^
> ../../Developer/flutter/.pub-cache/hosted/pub.dartlang.org/http-0.12.0+4/lib/src/browser_client.dart:58:34:
> Error: 'Blob' isn't a type.
> var blob = xhr.response as Blob ?? Blob([]);
> ^^^^
> ../../Developer/flutter/.pub-cache/hosted/pub.dartlang.org/http-0.12.0+4/lib/src/browser_client.dart:46:15:
> Error: The method 'HttpRequest' isn't defined for the class
> 'BrowserClient'.
> - 'BrowserClient' is from 'package:http/src/browser_client.dart' ('../../Developer/flutter/.pub-cache/hosted/pub.dartlang.org/http-0.12.0+4/lib/src/browser_client.dart').
> Try correcting the name to the name of an existing method, or defining a method named 'HttpRequest'.
> var xhr = HttpRequest();
> ^^^^^^^^^^^
> ../../Developer/flutter/.pub-cache/hosted/pub.dartlang.org/http-0.12.0+4/lib/src/browser_client.dart:58:42:
> Error: The method 'Blob' isn't defined for the class 'BrowserClient'.
> - 'BrowserClient' is from 'package:http/src/browser_client.dart' ('../../Developer/flutter/.pub-cache/hosted/pub.dartlang.org/http-0.12.0+4/lib/src/browser_client.dart').
> Try correcting the name to the name of an existing method, or defining a method named 'Blob'.
> var blob = xhr.response as Blob ?? Blob([]);
> ^^^^
> ../../Developer/flutter/.pub-cache/hosted/pub.dartlang.org/http-0.12.0+4/lib/src/browser_client.dart:59:20:
> Error: The method 'FileReader' isn't defined for the class
> 'BrowserClient'.
> - 'BrowserClient' is from 'package:http/src/browser_client.dart' ('../../Developer/flutter/.pub-cache/hosted/pub.dartlang.org/http-0.12.0+4/lib/src/browser_client.dart').
> Try correcting the name to the name of an existing method, or defining a method named 'FileReader'.
> var reader = FileReader();
> ^^^^^^^^^^
> Unhandled exception:
> FileSystemException(uri=org-dartlang-untranslatable-uri:dart%3Ahtml;
> message=StandardFileSystem only supports file:* and data:* URIs)
> #0 StandardFileSystem.entityForUri (package:front_end/src/api_prototype/standard_file_system.dart:33:7)
> #1 asFileUri (package:vm/kernel_front_end.dart:604:37)
> #2 writeDepfile (package:vm/kernel_front_end.dart:799:21)
> <asynchronous suspension>
> #3 FrontendCompiler.compile (package:frontend_server/frontend_server.dart:472:15)
> <asynchronous suspension>
> #4 _FlutterFrontendCompiler.compile (package:flutter_frontend_server/server.dart:38:22)
> #5 starter (package:flutter_frontend_server/server.dart:149:27)
> #6 main (file:///b/s/w/ir/cache/builder/src/flutter/flutter_frontend_server/bin/starter.dart:8:30)
> #7 _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:305:32)
> #8 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:174:12)
>
> Target kernel_snapshot failed: Exception: Errors during snapshot creation: null
> Failed to build bundle.
> Failed to package /Users/[user]/StudioProjects/[projectName]/ios/...
> Command PhaseScriptExecution failed with a nonzero exit code
> note: Using new build system
> note: Planning build
> note: Constructing build description
>
> Could not build the precompiled application for the device.
>
> Error launching application on [user].
dependencies: flutter: sdk: flutter
flutter_localizations: sdk: flutter
flutter_cupertino_localizations: ^1.0.1
geoflutterfire: ^2.0.3+5
firebase_storage: ^3.0.6
cloud_firestore: ^0.12.9+6
firebase_core: ^0.4.0+9
firebase_auth: ^0.14.0+5
firebase_messaging: ^6.0.9
firebase_database: ^3.0.7
firebase_admob: ^0.9.0+7
flutter_facebook_login: ^3.0.0
font_awesome_flutter: ^8.5.0
image_picker: ^0.6.1+11
image: ^2.1.4
rxdart: ^0.22.1
location: ^2.3.5
google_maps_flutter: ^0.5.20+1
geocoder: ^0.2.1
google_sign_in: ^4.0.11
provider: ^4.0.4
flutter_inapp_purchase: ^2.0.4
http: ^0.12.0+4
url_launcher: ^5.2.5
intl: ^0.16.0
cloud_functions: ^0.4.1+4
apple_sign_in: ^0.1.0
flutter_signin_button: ^1.0.0
json_annotation: ^3.0.1
notification_permissions: ^0.4.4
html_unescape: ^1.0.1+3
cupertino_icons: ^0.1.2
dev_dependencies: flutter_test: sdk: flutter build_runner: ^1.7.3 json_serializable: ^3.2.5
最佳答案
intl
包需要正确配置才能在 Flutter 上工作。
导入时,请勿使用 import 'package:intl/intl_browser.dart';
, insead 使用以下内容(每个都有其用途,因此请参阅最适合您的文档):
import 'package:intl/date_symbol_data_local.dart';
import 'package:intl/intl.dart';
import 'package:intl/intl_standalone.dart';
关于xcode - Flutter:命令 PhaseScriptExecution 失败,退出代码非零,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60710865/
我已经尝试过锁定和解锁 key 、更新 pod、清理构建文件夹,但以上都无济于事。请帮忙! mkdir -p /Users/ulanzeniserov/Library/Developer/Xcode/
我在尝试创建 React Native 应用程序的 IOS 构建时遇到了问题。最初我是在 windows 上用 android 模拟器做的。然后我尝试使用 xcode 在 mac 上构建 react
我收到以下错误 /Users/user321/Desktop/MapForAppNewest/Pods/Target Support Files/Pods-MapForAppNewest/Pods-M
我正在用 React Native 开发一个应用程序,并试图在 IOS 模拟器中运行它。我已经在 Android 中尝试过并且项目运行没有问题,但是当我尝试在 XCode Simulator 上运行它
/Users/xerasy/Library/Developer/Xcode/DerivedData/Opensoul-azlrvihpzjmefgdiufcpnucguxbp/Build/Interm
创建项目后运行 react-native run-ios 时遇到此错误 错误 - error Failed to build iOS project. We ran "xcodebuild" comm
每次我尝试在 Xcode 10 上运行我的 iOS 应用程序时,它都会失败并给我错误消息“Command PhaseScriptExecution failed with a nonzero exit
Everythign 似乎在我的应用程序中工作。我成功构建了 android 应用程序,但是当我尝试构建 usinx XCODE 时,我得到: Command PhaseScriptExecution
这是生产中的应用程序。我改变了一些逻辑试图获得 dateTime 我已经将它本地化到另一个国家,然后突然有一些关于 dart html 的错误,但我不记得到底是什么,所以我尝试重建项目,结果是提示使用
这个问题在这里已经有了答案: Flutter run - Failed to build iOS app - Command PhaseScriptExecution failed with a no
当我尝试将 flutter 添加到现有的 iOS 应用程序时出现错误,它在 android 端运行良好,在 IOS 中我收到此错误消息: /Users/mac/Library/Developer/Xc
在我将我的项目从 swift 3.2 迁移到 Xcode 10 中的 swift 4 后,我尝试在 Xcode 11 中存档并给我这个错误: PhaseScriptExecution Run\ Scr
今天我尝试归档我的项目,但它一直失败......我可以成功构建并运行它......当我尝试归档时出现错误仅! BoltsSwift.framework 似乎有问题...我正在使用 Parse SDK
我是新来的。 android 部分构建成功,但 Xcode 部分构建失败。有人可以指出我需要做什么吗? (在 VSCode 或 Xcode 中)。我做的最后一件事是 1) 删除/iOS/Pods、Po
命令 PhaseScriptExecution 失败,R.swift 退出代码为非零 有人遇到过这种情况吗? 最佳答案 从 https://github.com/mac-cain13/R.swift#
最近,当我尝试在 Xcode 11.1 中运行代码时,我迁移到了 Xcode11.1。它开始向我显示以下错误: “/Debug-iphonesimulator/DigitalCollection.ap
我尝试在 jenkins 中设置以构建 IOS但是我有这个问题↓ Command PhaseScriptExecution failed with a nonzero exit code ** ARC
我在安装 firebase podfile 后遇到了这个错误: Build/Products/Debug-iphonesimulator/Guess The Code 2.app/Frameworks
我正在开发一个 flutter 应用程序。我最近转移到 macOS,从那时起就无法运行该应用程序。其他应用程序运行良好,所以我认为错误在这个应用程序的代码中。也许由于同样的原因,我无法进行构建。 这是
当我尝试获取存档时,我遇到了这个问题。 我得到了 react-native 0.63, 我得到了世博会,世博会-cli。 我尝试重新安装 pod,删除结节模块并重新安装等。 有什么解决办法? info
我是一名优秀的程序员,十分优秀!