我已将手机的操作系统版本更新到 iOS 14,并在今天将 Xcode 更新到版本 12,但是当我尝试通过 Android Studio 在 iPhone 11 - iOS 14 上构建 Flutter 应用程序时,它给了我这个错误:
Your Xcode version may be too old for your iOS version.
???????????????????????????????????????????????????????????????????????????????????
2020-09-18 19:14:26.576 ios-deploy[30916:201883] [ !! ] Error 0xe8000022: The service is invalid. AMDeviceSecureStartService(device, CFSTR("com.apple.debugserver"), NULL, &con)
Could not run build/ios/iphoneos/Runner.app on 00008030-00012C200C45802E.
Try launching Xcode and selecting "Product > Run" to fix the problem:
open ios/Runner.xcworkspace
Error launching application on Azheen’s.
Run Code Online (Sandbox Code Playgroud) 我正在尝试执行以下操作:
“修改”获取 Stream 数据(其中包括 Firestore UID),使用该 UID 从 Firestore 获取数据,然后使用该数据填充 StreamBuilder。
因此流程是:添加新文档 -> Stream 获取文档 -> 函数从该文档获取 UID -> 函数使用该 UID 从 Firestore 获取更多数据 -> 函数返回以使用新数据填充 StreamBuilder。
我当前的设置如下——它有效,但 FutureBuilder 显然在每次重建小部件时都会调用 Firestore,而没有人希望这样。
Stream<QuerySnapshot> upperStream;
void initState() {
super.initState();
upperStream = aStream();
}
Stream<QuerySnapshot> aStream() {
return Firestore.instance
.collection('FirstLevel')
.document(/*ownUID (not related to stream)*/)
.collection('SecondLevel')
.snapshots();
}
Future<List> processStream(List streamData) async {
List futureData = List();
for (var doc in streamData) {
Map<String, dynamic> dataToReturn = Map<String, dynamic>(); …Run Code Online (Sandbox Code Playgroud)