我的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也能正常工作吗
我很高兴与所有分享