我为自己购买了一台MacBook,在模拟器上构建iOS应用时遇到错误。我可以毫无问题地构建应用程序的android版本。我附加了Flutter Doctor和VSCode调试控制台的输出。如果需要其他输出,请随时告诉我我应该上传些什么来帮助您。
谢谢
最佳答案
解:
在AppDelegate.m文件中,确保[GeneratedPluginRegistrant registerWithRegistry:self];
仅出现一次,如下所示
#include "AppDelegate.h"
#include "GeneratedPluginRegistrant.h"
#import "GoogleMaps/GoogleMaps.h"
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[GMSServices provideAPIKey:@"YOUR KEY HERE"];
[GeneratedPluginRegistrant registerWithRegistry:self];
return [super application:application didFinishLaunchingWithOptions:launchOptions];
}
@end
关于ios - Flutter Firebase Analytics应用在启动时崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61761076/