Open hongfeiyang opened 3 years ago
run 'pod repo update'
Nope it does not solve the problem
This time I running Catalina 10.15.6 and pod 1.10.0
Same for me.
When I run pod update --verbose
the download of https://download.videolan.org/pub/cocoapods/prod/MobileVLCKit-3.3.15-8f0cf4ce-ce04499f.tar.xz
seems to take forever and crashes at some point.
log:
[...]
Downloading dependencies
-> Installing Flutter (1.0.0)
-> Installing MobileVLCKit (3.3.15)
> Http download
$ /usr/bin/curl -f -L -o /var/folders/39/brn0zmvj7zbdr8trbgmplsgw0000gn/T/d20201212-79869-97dtox/file.txz https://download.videolan.org/pub/cocoapods/prod/MobileVLCKit-3.3.15-8f0cf4ce-ce04499f.tar.xz --create-dirs --netrc-optional --retry 2 -A
'CocoaPods/1.10.0 cocoapods-downloader/1.4.0'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
4 285M 4 13.5M 0 0 17417 0 4:46:46 0:13:32 4:33:14 15268
curl: (92) HTTP/2 stream 0 was not closed cleanly: INTERNAL_ERROR (err 2)
[!] Error installing MobileVLCKit
[!] /usr/bin/curl -f -L -o /var/folders/39/brn0zmvj7zbdr8trbgmplsgw0000gn/T/d20201212-79869-97dtox/file.txz https://download.videolan.org/pub/cocoapods/prod/MobileVLCKit-3.3.15-8f0cf4ce-ce04499f.tar.xz --create-dirs --netrc-optional --retry 2 -A 'CocoaPods/1.10.0 cocoapods-downloader/1.4.0'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
4 285M 4 13.5M 0 0 17417 0 4:46:46 0:13:32 4:33:14 15268
curl: (92) HTTP/2 stream 0 was not closed cleanly: INTERNAL_ERROR (err 2)
[...]
First ensure you are on upto date flutter stable
'flutter upgrade'
Next check to make sure your cocoapods is upto date
'brew upgrade cocoapods'
Then
Cd into example>ios run 'rm -rf Pods' run 'rm Podfile.lock'
then try 'flutter run'
$ flutter upgrade
> Flutter is already up to date on channel stable
> Flutter 1.22.5 • channel stable • https://github.com/flutter/flutter.git
> Framework • revision 7891006299 (2 days ago) • 2020-12-10 11:54:40 -0800
> Engine • revision ae90085a84
> Tools • Dart 2.10.4
$ pod --version
> 1.10.0
$ flutter doctor
> Doctor summary (to see all details, run flutter doctor -v):
> [✓] Flutter (Channel stable, 1.22.5, on Mac OS X 10.15.7 19H15 darwin-x64, locale en-US)
>
> [✓] Android toolchain - develop for Android devices (Android SDK version 30.0.0)
> [✓] Xcode - develop for iOS and macOS (Xcode 12.2)
> [✓] Android Studio (version 4.0)
> [✓] VS Code (version 1.52.0)
>
> [✓] Connected device (2 available)
>
> • No issues found!
I also removed Pods
and Podfile.lock
from the iOS folder...
$ flutter run
> [...]
> Running pod install...
> (This is taking an unexpectedly long time.) ⣷
Did you try 'pod repo update'
Did you try 'pod repo update'
yes, I did...
To confirm, you are trying to run this example project?
To confirm, you are trying to run this example project?
Not exactly.
I followed the README to add it to my existing project which runs successfully without flutter_vlc_player
. With flutter_vlc_player
it does work on Android.
flutter_vlc_player: ^4.0.2
to my pubspec.yaml
.<key>io.flutter.embedded_views_preview</key>
<true/>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
<key>NSLocalNetworkUsageDescription</key>
<string>Used to search for chromecast devices</string>
<key>NSBonjourServices</key>
<array>
<string>_googlecast._tcp</string>
</array>
platform :ios, '9.0'
in my Podfile
Can you please first try to pull this repo down and then cd to example and run 'flutter run'. I want to first confirm the example project is loading for you.
I am running the example project now.
$ flutter run
> Multiple devices found:
> [...]
> Running "flutter pub get" in example... 2.0s
> ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
> Warning
> ──────────────────────────────────────────────────────────────────────────────
> Your Flutter application is created using an older version of the Android
> embedding. It's being deprecated in favor of Android embedding v2. Follow the
> steps at
>
> https://flutter.dev/go/android-project-migration
>
> to migrate your project.
> ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
>
> Launching lib/main.dart on iPhone 8 in debug mode...
>
> Warning: Missing build name (CFBundleShortVersionString).
> Warning: Missing build number (CFBundleVersion).
> Action Required: You must set a build name and number in the pubspec.yaml file version field before submitting to the > > App Store.
> Running pod install...
> (This is taking an unexpectedly long time.) ⣯ ⣷
> [...]
> curl: (92) HTTP/2 stream 0 was not closed cleanly: INTERNAL_ERROR (err 2)
>
> Error running pod install
> Error launching application on iPhone 8.
Have you tried to download https://download.videolan.org/pub/cocoapods/prod/MobileVLCKit-3.3.15-8f0cf4ce-ce04499f.tar.xz
manually? It fails for me.
If I paste this in my browser, it downloads normally https://download.videolan.org/pub/cocoapods/prod/MobileVLCKit-3.3.15-8f0cf4ce-ce04499f.tar.xz
If I paste this in my browser, it downloads normally https://download.videolan.org/pub/cocoapods/prod/MobileVLCKit-3.3.15-8f0cf4ce-ce04499f.tar.xz
does it ever finish?
Yup. Perhaps you should try connecting to a hotspot and rule out your local network/isp ?
I have a downstream of ↓ 58,6 Mbit/s
I ran it like twice, it is always very slow and looks like it times out/the server cancels it.
9,9 MB of 299,7 MB -- The operation couldn't be complete...
8,3 MB of 299,7 MB -- The operation couldn't be complete...
Then I switched to my mobile cellular and it is the same.
(I am doing this from Germany BTW)
@hongfeiyang from where are you trying to run this/download the dependency?
Using the Tor network with an IP from Texas (United States) it finishes within 10 minutes. So it does not seem to be our networks, but rather the server/host with a geo filter? 🙄
I have a downstream of ↓ 58,6 Mbit/s
I ran it like twice, it is always very slow and looks like it times out/the server cancels it.
9,9 MB of 299,7 MB -- The operation couldn't be complete...
8,3 MB of 299,7 MB -- The operation couldn't be complete...
Then I switched to my mobile cellular and it is the same.
(I am doing this from Germany BTW)
@hongfeiyang from where are you trying to run this/download the dependency?
Download from Australia, gigabyte network. I eventually finished downloading that in 3 minutes, with an exclamation mark, though it still compiles... My college's computer works fine, but his Cocoapod is 1.9.3, so this maybe a pod problem I think
I am on cocoapods version 1.10
If you want to log a bug with VLC, this is the correct spot https://code.videolan.org/videolan/VLCKit/-/issues
A gitlab account can be made with github account
Thank you, I opened an issue https://code.videolan.org/videolan/VLCKit/-/issues/457
@hongfeiyang who's your internet provider? https://code.videolan.org/videolan/VLCKit/-/issues/457#note_75202
@hongfeiyang who's your internet provider?
https://code.videolan.org/videolan/VLCKit/-/issues/457#note_75202
TPG and Vocus
A "fake" method to solve this problem. http://www.yunsean.com/podan-zhuang-mobilevlckit/
The only solution I found is to install a private VPN, connected to a server in the US. Hope this helps.
still an issue , and trying to download from the US.
You just need a fast internet, i was stuck , changed to 5g and all good.
I was trying to use this package but it stuck at 'pod install' forever. I even tried to use this as a git repository and it still stuck at pod install forever.
I am using Xcode 11.3, macOS 10.14.6, Simulator iOS 13.3. pod version is 1.10.0
If I remove this package in dev_dependencies the rest of packages install without any problem.