flutter_vlc_player icon indicating copy to clipboard operation
flutter_vlc_player copied to clipboard

Stuck on pod install forever

Open hongfeiyang opened this issue 5 years ago • 27 comments

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.

dev_dependencies:
  shelf: ^0.7.9
  shelf_proxy: ^0.1.0+7
  flutter_vlc_player:
    git:
      url: https://github.com/solid-software/flutter_vlc_player.git
  flutter_test:
    sdk: flutter

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.

hongfeiyang avatar Dec 01 '20 04:12 hongfeiyang

run 'pod repo update'

mitchross avatar Dec 05 '20 17:12 mitchross

Nope it does not solve the problem image

This time I running Catalina 10.15.6 and pod 1.10.0

hongfeiyang avatar Dec 10 '20 05:12 hongfeiyang

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)
[...]

oberbeck avatar Dec 12 '20 19:12 oberbeck

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'

mitchross avatar Dec 12 '20 20:12 mitchross

$ 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.)       ⣷

oberbeck avatar Dec 12 '20 20:12 oberbeck

Did you try 'pod repo update'

mitchross avatar Dec 12 '20 21:12 mitchross

Did you try 'pod repo update'

yes, I did...

oberbeck avatar Dec 12 '20 21:12 oberbeck

To confirm, you are trying to run this example project?

mitchross avatar Dec 12 '20 21:12 mitchross

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.

  • I added flutter_vlc_player: ^4.0.2 to my pubspec.yaml.
  • copy/pasted the component from the quick-start https://github.com/solid-software/flutter_vlc_player#quick-start to my project
  • added this to my Info.plst
    	<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>
    
  • set platform :ios, '9.0' in my Podfile

oberbeck avatar Dec 12 '20 21:12 oberbeck

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.

mitchross avatar Dec 12 '20 21:12 mitchross

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.

oberbeck avatar Dec 12 '20 21:12 oberbeck

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.

oberbeck avatar Dec 12 '20 21:12 oberbeck

https://github.com/CocoaPods/Specs/blob/master/Specs/b/f/7/MobileVLCKit/3.3.15/MobileVLCKit.podspec.json

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

mitchross avatar Dec 12 '20 21:12 mitchross

https://github.com/CocoaPods/Specs/blob/master/Specs/b/f/7/MobileVLCKit/3.3.15/MobileVLCKit.podspec.json

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?

oberbeck avatar Dec 12 '20 21:12 oberbeck

Yup. Perhaps you should try connecting to a hotspot and rule out your local network/isp ?

mitchross avatar Dec 12 '20 21:12 mitchross

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?

oberbeck avatar Dec 12 '20 21:12 oberbeck

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? 🙄

oberbeck avatar Dec 12 '20 21:12 oberbeck

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

hongfeiyang avatar Dec 13 '20 05:12 hongfeiyang

I am on cocoapods version 1.10

mitchross avatar Dec 14 '20 13:12 mitchross

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

mitchross avatar Dec 14 '20 13:12 mitchross

Thank you, I opened an issue https://code.videolan.org/videolan/VLCKit/-/issues/457

oberbeck avatar Dec 14 '20 14:12 oberbeck

@hongfeiyang who's your internet provider? https://code.videolan.org/videolan/VLCKit/-/issues/457#note_75202

oberbeck avatar Dec 14 '20 21:12 oberbeck

@hongfeiyang who's your internet provider?

https://code.videolan.org/videolan/VLCKit/-/issues/457#note_75202

TPG and Vocus

hongfeiyang avatar Dec 14 '20 23:12 hongfeiyang

A "fake" method to solve this problem. http://www.yunsean.com/podan-zhuang-mobilevlckit/

skytodmoon avatar Apr 17 '21 13:04 skytodmoon

The only solution I found is to install a private VPN, connected to a server in the US. Hope this helps.

boeledi avatar Dec 06 '22 16:12 boeledi

still an issue , and trying to download from the US.

ejohnsonw avatar Jun 23 '24 16:06 ejohnsonw

You just need a fast internet, i was stuck , changed to 5g and all good.

gauravmehta13 avatar Jul 13 '24 04:07 gauravmehta13