Ios 错误:Runner.xcworkspace不存在。实现google地图时出错

Ios 错误:Runner.xcworkspace不存在。实现google地图时出错,ios,swift,google-maps,flutter,dart,Ios,Swift,Google Maps,Flutter,Dart,我正试图在我的Flitter项目中实现GoogleMaps,它在android版本中运行良好,但在iOS版本中我面临一些问题 错误的标题是: Runner.xcworkspace不存在 这是我遵循的指南: 我已经完成了该指南中的所有步骤,并且可以在我的项目(使用android studio)中看到名为Runner.xcworkspace的文件,但仍然存在此错误 Runner.xcworkspace中的文件如下: Runner.xcworkspace->xSharedData->Workspace

我正试图在我的Flitter项目中实现GoogleMaps,它在android版本中运行良好,但在iOS版本中我面临一些问题

错误的标题是:

Runner.xcworkspace不存在

这是我遵循的指南:

我已经完成了该指南中的所有步骤,并且可以在我的项目(使用android studio)中看到名为
Runner.xcworkspace
的文件,但仍然存在此错误

Runner.xcworkspace
中的文件如下:

Runner.xcworkspace
->
xSharedData
->
WorkspaceSettings.xcsettings

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>BuildSystemType</key>
    <string>Original</string>
</dict>
</plist>

BuildSystemType
起初的

我也有同样的问题。我自己发现了这个示例Github存储库,这有助于解决问题

然后在Runner/AppDelegate.m中,使用您自己的API密钥将代码更改为以下内容

#include "AppDelegate.h"
#include "GeneratedPluginRegistrant.h"
#import "GoogleMaps/GoogleMaps.h"

@implementation AppDelegate

- (BOOL)application:(UIApplication *)application
    didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
  // TODO: Replace this with an API key that has Google Maps for iOS enabled
  // See https://developers.google.com/maps/documentation/ios-sdk/get-api-key
  [GMSServices provideAPIKey: @"ADD_A_KEY_HERE"];
  [GeneratedPluginRegistrant registerWithRegistry:self];
  // Override point for customization after application launch.
  return [super application:application didFinishLaunchingWithOptions:launchOptions];
}

@end


要添加Firestore支持,您需要遵循Firebase上的流程,然后添加您自己的
Runner/GoogleService Info.plist

我也遇到了同样的问题。我自己发现了这个示例Github存储库,这有助于解决问题

然后在Runner/AppDelegate.m中,使用您自己的API密钥将代码更改为以下内容

#include "AppDelegate.h"
#include "GeneratedPluginRegistrant.h"
#import "GoogleMaps/GoogleMaps.h"

@implementation AppDelegate

- (BOOL)application:(UIApplication *)application
    didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
  // TODO: Replace this with an API key that has Google Maps for iOS enabled
  // See https://developers.google.com/maps/documentation/ios-sdk/get-api-key
  [GMSServices provideAPIKey: @"ADD_A_KEY_HERE"];
  [GeneratedPluginRegistrant registerWithRegistry:self];
  // Override point for customization after application launch.
  return [super application:application didFinishLaunchingWithOptions:launchOptions];
}

@end


要添加Firestore支持,您需要遵循Firebase上的流程,然后添加您自己的
Runner/GoogleService Info.plist

您可以在这些线程中尝试解决方案吗?&你能在这些线程中尝试解决方案吗&