尝试在 IOS 设备上构建时显示以下错误:
如下图所示,Xcode 中的 Signing 设置做得很好。
您能告诉我这个问题的原因和解决方法吗?
Could not build the precompiled application for the device.
Error (Xcode): Signing for "GoogleSignIn-GoogleSignIn" requires a development team. Select a development team in the Signing & Capabilities editor.
/Users/home_1/StudioProjects/Example%20Project/app/ios/Pods/Pods.xcodeproj
Error (Xcode): Signing for "DKPhotoGallery-DKPhotoGallery" requires a development team. Select a development team in the Signing & Capabilities editor.
/Users/home_1/StudioProjects/Example%20Project/app/ios/Pods/Pods.xcodeproj
Error (Xcode): Signing for "DKImagePickerController-DKImagePickerController" requires a development team. Select a development team in the Signing & Capabilities editor.
/Users/home_1/StudioProjects/Example%20Project/app/ios/Pods/Pods.xcodeproj
Error (Xcode): Signing …Run Code Online (Sandbox Code Playgroud) 我想在使用 firebase 电子邮件身份验证完成注册后获取用户模型。但是,当我尝试从 firestore 获取用户模型时,会打印以下错误:
type 'List<dynamic>' is not a subtype of type 'List<String>'
Run Code Online (Sandbox Code Playgroud)
我的用户模型如下
class UserModel {
late String userKey;
late String nickname;
late String email;
late List<String> listItem; // error!!
late GeoFirePoint geoFirePoint;
late bool isPostOn;
late bool isLogin;
late DateTime createdDate;
DocumentReference? reference;
UserModel({
....
});
UserModel.fromJson(Map<String, dynamic> json, this.userKey) // this.reference
: nickname = json[DOC_NICKNAME],
....
createdDate = json[DOC_CREATEDDATE] == null
? DateTime.now().toUtc()
: (json[DOC_CREATEDDATE] as Timestamp).toDate();
UserModel.fromSnapshot(DocumentSnapshot<Map<String, dynamic>> snapshot)
: this.fromJson(snapshot.data()!, snapshot.id);
Map<String, dynamic> toJson() …Run Code Online (Sandbox Code Playgroud)