Невозможно запустить флаттер-проект на IOS с firestore - PullRequest
0 голосов
/ 23 октября 2019

Я не могу запустить проект флаттера на симуляторе IOS. Я интегрировал Cloud Firestore для Firebase с проектом. Проект отлично работает на Android-устройстве, но не смог запустить его на IOS Simulator.

Буду благодарен, если кто-нибудь поможет мне решить эту проблему.

Когда я запускаю команду pod install, у меня появляется следующая ошибка. Пожалуйста, проверьте.

Muhammads-MacBook-Pro:ios bhatti$ pod install Analyzing dependencies [!] CDN: trunk Repo update failed - 44 error(s): CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/e/2/1/FirebaseAnalytics/3.2.0/FirebaseAnalytics.podspec.json,
error: Failed to open TCP connection to raw.githubusercontent.com:443 (getaddrinfo: nodename nor servname provided, or not known) CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/e/2/1/FirebaseAnalytics/3.2.1/FirebaseAnalytics.podspec.json,
error: Failed to open TCP connection to raw.githubusercontent.com:443 (getaddrinfo: nodename nor servname provided, or not known) CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/e/2/1/FirebaseAnalytics/3.3.0/FirebaseAnalytics.podspec.json,
error: Failed to open TCP connection to raw.githubusercontent.com:443 (getaddrinfo: nodename nor servname provided, or not known) CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/e/2/1/FirebaseAnalytics/3.3.1/FirebaseAnalytics.podspec.json,
error: Failed to open TCP connection to raw.githubusercontent.com:443 (getaddrinfo: nodename nor servname provided, or not known) CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/e/2/1/FirebaseAnalytics/3.4.2/FirebaseAnalytics.podspec.json,
error: Failed to open TCP connection to raw.githubusercontent.com:443 (getaddrinfo: nodename nor servname provided, or not known) CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/e/2/1/FirebaseAnalytics/3.4.3/FirebaseAnalytics.podspec.json,
error: Failed to open TCP connection to raw.githubusercontent.com:443 (getaddrinfo: nodename nor servname provided, or not known) CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/e/2/1/FirebaseAnalytics/3.4.4/FirebaseAnalytics.podspec.json,
error: Failed to open TCP connection to raw.githubusercontent.com:443 (getaddrinfo: nodename nor servname provided, or not known) CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/e/2/1/FirebaseAnalytics/3.5.1/FirebaseAnalytics.podspec.json,
error: Failed to open TCP connection to raw.githubusercontent.com:443 (getaddrinfo: nodename nor servname provided, or not known) CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/e/2/1/FirebaseAnalytics/3.6.0/FirebaseAnalytics.podspec.json,
error: Failed to open TCP connection to raw.githubusercontent.com:443 (getaddrinfo: nodename nor servname provided, or not known) CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/e/2/1/FirebaseAnalytics/3.7.0/FirebaseAnalytics.podspec.json,
error: Failed to open TCP connection to raw.githubusercontent.com:443 (getaddrinfo: nodename nor servname provided, or not known) CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/e/2/1/FirebaseAnalytics/3.8.0/FirebaseAnalytics.podspec.json,
error: Failed to open TCP connection to raw.githubusercontent.com:443 (getaddrinfo: nodename nor servname provided, or not known) CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/e/2/1/FirebaseAnalytics/3.9.0/FirebaseAnalytics.podspec.json,
error: Failed to open TCP connection to raw.githubusercontent.com:443 (getaddrinfo: nodename nor servname provided, or not known) CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/e/2/1/FirebaseAnalytics/4.0.0/FirebaseAnalytics.podspec.json,
error: Failed to open TCP connection to raw.githubusercontent.com:443 (getaddrinfo: nodename nor servname provided, or not known) CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/e/2/1/FirebaseAnalytics/4.0.1/FirebaseAnalytics.podspec.json,
error: Failed to open TCP connection to raw.githubusercontent.com:443 (getaddrinfo: nodename nor servname provided, or not known) CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/e/2/1/FirebaseAnalytics/4.0.2/FirebaseAnalytics.podspec.json,
error: Failed to open TCP connection to raw.githubusercontent.com:443 (getaddrinfo: nodename nor servname provided, or not known) CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/e/2/1/FirebaseAnalytics/4.0.3/FirebaseAnalytics.podspec.json,
error: Failed to open TCP connection to raw.githubusercontent.com:443 (getaddrinfo: nodename nor servname provided, or not known) CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/e/2/1/FirebaseAnalytics/4.0.4/FirebaseAnalytics.podspec.json,
error: Failed to open TCP connection to raw.githubusercontent.com:443 (getaddrinfo: nodename nor servname provided, or not known) CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/e/2/1/FirebaseAnalytics/4.0.5/FirebaseAnalytics.podspec.json,
error: Failed to open TCP connection to raw.githubusercontent.com:443 (getaddrinfo: nodename nor servname provided, or not known) CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/e/2/1/FirebaseAnalytics/4.0.9/FirebaseAnalytics.podspec.json,
error: Failed to open TCP connection to raw.githubusercontent.com:443 (getaddrinfo: nodename nor servname provided, or not known) CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/e/2/1/FirebaseAnalytics/4.1.0/FirebaseAnalytics.podspec.json,
error: Failed to open TCP connection to raw.githubusercontent.com:443 (getaddrinfo: nodename nor servname provided, or not known) CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/e/2/1/FirebaseAnalytics/4.2.0/FirebaseAnalytics.podspec.json,
error: Failed to open TCP connection to raw.githubusercontent.com:443 (getaddrinfo: nodename nor servname provided, or not known) CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/e/2/1/FirebaseAnalytics/5.0.0/FirebaseAnalytics.podspec.json,
error: Failed to open TCP connection to raw.githubusercontent.com:443 (getaddrinfo: nodename nor servname provided, or not known) CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/e/2/1/FirebaseAnalytics/5.0.1/FirebaseAnalytics.podspec.json,
error: Failed to open TCP connection to raw.githubusercontent.com:443 (getaddrinfo: nodename nor servname provided, or not known) CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/e/2/1/FirebaseAnalytics/5.1.0/FirebaseAnalytics.podspec.json,
error: Failed to open TCP connection to raw.githubusercontent.com:443 (getaddrinfo: nodename nor servname provided, or not known) CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/e/2/1/FirebaseAnalytics/5.1.1/FirebaseAnalytics.podspec.json,
error: Failed to open TCP connection to raw.githubusercontent.com:443 (getaddrinfo: nodename nor servname provided, or not known) CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/e/2/1/FirebaseAnalytics/5.1.2/FirebaseAnalytics.podspec.json,
error: Failed to open TCP connection to raw.githubusercontent.com:443 (getaddrinfo: nodename nor servname provided, or not known) CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/e/2/1/FirebaseAnalytics/5.1.4/FirebaseAnalytics.podspec.json,
error: Failed to open TCP connection to raw.githubusercontent.com:443 (getaddrinfo: nodename nor servname provided, or not known) CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/e/2/1/FirebaseAnalytics/5.2.0/FirebaseAnalytics.podspec.json,
error: Failed to open TCP connection to raw.githubusercontent.com:443 (getaddrinfo: nodename nor servname provided, or not known) CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/e/2/1/FirebaseAnalytics/5.3.0/FirebaseAnalytics.podspec.json,
error: Failed to open TCP connection to raw.githubusercontent.com:443 (getaddrinfo: nodename nor servname provided, or not known) CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/e/2/1/FirebaseAnalytics/5.4.0/FirebaseAnalytics.podspec.json,
error: Failed to open TCP connection to raw.githubusercontent.com:443 (getaddrinfo: nodename nor servname provided, or not known) CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/e/2/1/FirebaseAnalytics/5.5.0/FirebaseAnalytics.podspec.json,
error: Failed to open TCP connection to raw.githubusercontent.com:443 (getaddrinfo: nodename nor servname provided, or not known) CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/e/2/1/FirebaseAnalytics/5.6.0/FirebaseAnalytics.podspec.json,
error: Failed to open TCP connection to raw.githubusercontent.com:443 (getaddrinfo: nodename nor servname provided, or not known) CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/e/2/1/FirebaseAnalytics/5.7.0/FirebaseAnalytics.podspec.json,
error: Failed to open TCP connection to raw.githubusercontent.com:443 (getaddrinfo: nodename nor servname provided, or not known) CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/e/2/1/FirebaseAnalytics/5.8.0/FirebaseAnalytics.podspec.json,
error: Failed to open TCP connection to raw.githubusercontent.com:443 (getaddrinfo: nodename nor servname provided, or not known) CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/e/2/1/FirebaseAnalytics/5.8.1/FirebaseAnalytics.podspec.json,
error: Failed to open TCP connection to raw.githubusercontent.com:443 (getaddrinfo: nodename nor servname provided, or not known) CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/e/2/1/FirebaseAnalytics/6.0.0/FirebaseAnalytics.podspec.json,
error: Failed to open TCP connection to raw.githubusercontent.com:443 (getaddrinfo: nodename nor servname provided, or not known) CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/e/2/1/FirebaseAnalytics/6.0.1/FirebaseAnalytics.podspec.json,
error: Failed to open TCP connection to raw.githubusercontent.com:443 (getaddrinfo: nodename nor servname provided, or not known) CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/e/2/1/FirebaseAnalytics/6.0.2/FirebaseAnalytics.podspec.json,
error: Failed to open TCP connection to raw.githubusercontent.com:443 (getaddrinfo: nodename nor servname provided, or not known) CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/e/2/1/FirebaseAnalytics/6.0.3/FirebaseAnalytics.podspec.json,
error: Failed to open TCP connection to raw.githubusercontent.com:443 (getaddrinfo: nodename nor servname provided, or not known) CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/e/2/1/FirebaseAnalytics/6.0.4/FirebaseAnalytics.podspec.json,
error: Failed to open TCP connection to raw.githubusercontent.com:443 (getaddrinfo: nodename nor servname provided, or not known) CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/e/2/1/FirebaseAnalytics/6.1.0/FirebaseAnalytics.podspec.json,
error: Failed to open TCP connection to raw.githubusercontent.com:443 (getaddrinfo: nodename nor servname provided, or not known) CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/e/2/1/FirebaseAnalytics/6.1.1/FirebaseAnalytics.podspec.json,
error: Failed to open TCP connection to raw.githubusercontent.com:443 (getaddrinfo: nodename nor servname provided, or not known) CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/e/2/1/FirebaseAnalytics/6.1.2/FirebaseAnalytics.podspec.json,
error: Failed to open TCP connection to raw.githubusercontent.com:443 (getaddrinfo: nodename nor servname provided, or not known) CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/e/2/1/FirebaseAnalytics/6.1.3/FirebaseAnalytics.podspec.json,
error: Failed to open TCP connection to raw.githubusercontent.com:443 (getaddrinfo: nodename nor servname provided, or not known)

Ошибка

*** First throw call stack:
(
	0   CoreFoundation                      0x00007fff23baa1ee __exceptionPreprocess + 350
	1   libobjc.A.dylib                     0x00007fff50864b20 objc_exception_throw + 48
	2   CoreFoundation                      0x00007fff23baa02c +[NSException raise:format:] + 188
	3   Runner                              0x0000000103e82d7a +[FIRApp configure] + 138
	4   Runner                              0x0000000104397086 -[FLTCloudFirestorePlugin init] + 214
	5   Runner                              0x0000000104396f11 +[FLTCloudFirestorePlugin registerWithRegistrar:] + 289
	6   Runner                              0x0000000103e7e5c0 +[GeneratedPluginRegistrant registerWithRegistry:] + 112
	7   Runner                        <…>

Error connecting to the service protocol: HttpException: , uri = http://127.0.0.1:62281/vg54TtZ_CH0=/ws

AppDelegate

#include "AppDelegate.h"
#include "GeneratedPluginRegistrant.h"

@implementation AppDelegate

- (BOOL)application:(UIApplication *)application
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
  [GeneratedPluginRegistrant registerWithRegistry:self];
  return [super application:application didFinishLaunchingWithOptions:launchOptions];
}

@end

1 Ответ

0 голосов
/ 23 октября 2019

Может быть много причин. Пожалуйста, предоставьте скриншот ошибки или сообщение об ошибке, что-то более информативное.

Я недавно добавил cloud_firestore, и потребовались дни, чтобы решить проблемы зависимостей для ios.

Некоторые распространенные ошибки:

  1. Совместимость с версиями Вам нужно по крайней мере XCode version 10.1 для пожарного магазина.
  2. Файлы Pod не установлены. Для решения этой проблемы из терминала перейдите в каталог yourproject/ios и выполните следующую команду

pod install

Убедитесь, что вы выполнили Шаг

Если вы можете предоставить дополнительную информацию или шаги, которые вы сделали, я могу помочь вам в дальнейшем.

...