ios – While installing pod in React Native->> [!] Error installing BoringSSL-GRPC- fatal: fetch-pack: invalid index-pack output


Previously It was working fine but suddenly got this by pod install and then it fails during BoringSSL-GRPC installation

Downloading dependencies
Installing AppAuth (1.6.2)
Installing BoringSSL-GRPC (0.0.24)

[!] Error installing BoringSSL-GRPC
[!] /opt/homebrew/bin/git clone https://github.com/google/boringssl.git /var/folders/n7/tvr_7ghx2qb44bddwslr1jtr0000gn/T/d20231213-33169-ke5n0a –template=

Cloning into ‘/var/folders/n7/tvr_7ghx2qb44bddwslr1jtr0000gn/T/d20231213-33169-ke5n0a’…
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
error: 1317 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output

Here is my podfile:

require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
  permissions_path="../node_modules/react-native-permissions/ios"

platform :ios, '13.5'

target 'Mooner' do


  rn_maps_path="../node_modules/react-native-maps"
  pod 'react-native-google-maps', :path => rn_maps_path
  
  config = use_native_modules!

  use_react_native!(:path => config["reactNativePath"])



  pod 'RSCrashReporter', :modular_headers => true

  pod 'react-native-video', :path => '../node_modules/react-native-video'
 pod 'RNFBCrashlytics', :path => '../node_modules/@react-native-firebase/crashlytics'
  pod 'RNCAsyncStorage', :path => '../node_modules/@react-native-async-storage/async-storage'

  pod 'react-native-image-picker', :path => '../node_modules/react-native-image-picker'

  pod 'ReactNativeGetLocation', :path => '../node_modules/react-native-get-location'
  pod 'Permission-LocationAccuracy', :path => "#{permissions_path}/LocationAccuracy"
  pod 'Permission-LocationAlways', :path => "#{permissions_path}/LocationAlways"
  pod 'Permission-LocationWhenInUse', :path => "#{permissions_path}/LocationWhenInUse"
  pod 'Permission-Camera', :path => "#{permissions_path}/Camera"

  pod 'RNInAppBrowser', :path => '../node_modules/react-native-inappbrowser-reborn'

  pod 'RNFBAnalytics', :path => '../node_modules/@react-native-firebase/analytics'
  pod 'GoogleIDFASupport', '~> 3.14.0'
  pod 'react-native-immediate-phone-call', :path => '../node_modules/react-native-immediate-phone-call'

  pod 'RNGoogleSignin', :path => '../node_modules/@react-native-community/google-signin'

  pod 'rn-fetch-blob', :path => '../node_modules/rn-fetch-blob'
  pod 'Firebase', :modular_headers => true
  pod 'FirebaseCoreInternal', :modular_headers => true
  pod 'FirebaseSessions', :modular_headers => true
  pod 'FirebaseCore', :modular_headers => true
  pod 'FirebaseCoreExtension', :modular_headers => true
  pod 'FirebaseInstallations', :modular_headers => true
  pod 'GoogleDataTransport', :modular_headers => true
  pod 'nanopb', :modular_headers => true
  pod 'GoogleUtilities', :modular_headers => true
  target 'MoonerTests' do
    inherit! :complete
    # Pods for testing
  end

  # Enables Flipper.
  #
  # Note that if you have use_frameworks! enabled, Flipper will not work and
  # you should disable these next few lines.
 use_flipper!
def __apply_Xcode_14_3_RC_post_install_workaround(installer)
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      current_target = config.build_settings['IPHONEOS_DEPLOYMENT_TARGET']
      minimum_target="13.0"
      if current_target.to_f < minimum_target.to_f
        config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0'
      end
    end
  end
end
end

target 'Mooner-tvOS' do
  # Pods for Mooner-tvOS

  target 'Mooner-tvOSTests' do
    inherit! :search_paths
    # Pods for testing
  end
end
  • I tried removing pods & podfile.lock & clean pods cache & xcode derived data even upgraded cocoapods version to 1.10.2 and then 1.14.3 (previously it was 1.9.1).

  • Also tried upgrading the Firebase sdks versions.

BUT STILL GOT NO SOLUTION

Latest articles

spot_imgspot_img

Related articles

Leave a reply

Please enter your comment!
Please enter your name here

spot_imgspot_img