抖动 youtube 错误域:ios 处的 XCDYouTubeVideoErrorDomain

flutter youtube error Domain: XCDYouTubeVideoErrorDomain at ios

我的pubspec.yaml

  cupertino_icons: ^0.1.3
  responsive_container: ^0.0.1
  flutter_html: ^0.10.4
  http: ^0.12.0+4
  flutter_pagewise: ^1.2.3
  share: ^0.6.3+6
  flutter_youtube: ^1.1.6
  loader_search_bar: ^1.0.3+3
  firebase_messaging: ^5.1.4
  flutter_local_notifications: ^0.8.2
  flutter_signin_button: ^1.0.0
  url_launcher: ^5.1.2
  cloud_firestore: ^0.13.4+2
  shared_preferences: ^0.5.6
  rate_my_app: ^0.4.0
  font_awesome_flutter: ^8.8.1

flutter youtube 插件在 android 个相同的视频中表现出色

但是在 ios 我得到错误

[XCDYouTubeKit] Video operation finished with error: The operation couldn’t be completed. (XCDYouTubeVideoErrorDomain error -2.)
Domain: XCDYouTubeVideoErrorDomain
Code:   -2
User Info: {
}

运气好我解决了问题

我评论

platform :ios, '10.3'

在 Podfile

我取消了注释

因为那个错误

[!] Automatically assigning platform `iOS` with version `9.0` on target `Runner` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.

任何现在在 ios 也有效的方法

很高兴与大家分享