Ejected Expo 31 - Pod Install Error

#1

I receive an error when trying to eject an app on v31 I receive the following error.

[!] CocoaPods could not find compatible versions for pod "FBSDKShareKit":
  In Podfile:
    ExpoKit/Core (from `http://github.com/expo/expo.git`, tag `ios/2.9.0`) was resolved to 2.9.0, which depends on
      FBSDKShareKit (= 4.37.0)

None of your spec sources contain a spec satisfying the dependency: `FBSDKShareKit (= 4.37.0)`.

You have either:
 * out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
 * mistyped the name or version.
 * not added the source repo that hosts the Podspec to your Podfile.

Note: as of CocoaPods 1.0, `pod repo update` does not happen on `pod install` by default.

Here is the full output:

pod install
Analyzing dependencies
Fetching podspec for `DoubleConversion` from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`
Fetching podspec for `EXAdsAdMob` from `../node_modules/expo-ads-admob/ios`
Fetching podspec for `EXBarCodeScanner` from `../node_modules/expo-barcode-scanner/ios`
Fetching podspec for `EXBarCodeScannerInterface` from `../node_modules/expo-barcode-scanner-interface/ios`
Fetching podspec for `EXCamera` from `../node_modules/expo-camera/ios`
Fetching podspec for `EXCameraInterface` from `../node_modules/expo-camera-interface/ios`
Fetching podspec for `EXConstants` from `../node_modules/expo-constants/ios`
Fetching podspec for `EXConstantsInterface` from `../node_modules/expo-constants-interface/ios`
Fetching podspec for `EXContacts` from `../node_modules/expo-contacts/ios`
Fetching podspec for `EXCore` from `../node_modules/expo-core/ios`
Fetching podspec for `EXFaceDetectorInterface` from `../node_modules/expo-face-detector-interface/ios`
Fetching podspec for `EXFileSystem` from `../node_modules/expo-file-system/ios`
Fetching podspec for `EXFileSystemInterface` from `../node_modules/expo-file-system-interface/ios`
Fetching podspec for `EXFont` from `../node_modules/expo-font/ios`
Fetching podspec for `EXFontInterface` from `../node_modules/expo-font-interface/ios`
Fetching podspec for `EXGL` from `../node_modules/expo-gl/ios`
Fetching podspec for `EXGL-CPP` from `../node_modules/expo-gl-cpp/cpp`
Fetching podspec for `EXImageLoaderInterface` from `../node_modules/expo-image-loader-interface/ios`
Fetching podspec for `EXLocalAuthentication` from `../node_modules/expo-local-authentication/ios`
Fetching podspec for `EXLocalization` from `../node_modules/expo-localization/ios`
Fetching podspec for `EXLocation` from `../node_modules/expo-location/ios`
Fetching podspec for `EXMediaLibrary` from `../node_modules/expo-media-library/ios`
Fetching podspec for `EXPaymentsStripe` from `../node_modules/expo-payments-stripe/ios`
Fetching podspec for `EXPermissions` from `../node_modules/expo-permissions/ios`
Fetching podspec for `EXPermissionsInterface` from `../node_modules/expo-permissions-interface/ios`
Fetching podspec for `EXPrint` from `../node_modules/expo-print/ios`
Fetching podspec for `EXReactNativeAdapter` from `../node_modules/expo-react-native-adapter/ios`
Fetching podspec for `EXSMS` from `../node_modules/expo-sms/ios`
Fetching podspec for `EXSegment` from `../node_modules/expo-analytics-segment/ios`
Fetching podspec for `EXSensors` from `../node_modules/expo-sensors/ios`
Fetching podspec for `EXSensorsInterface` from `../node_modules/expo-sensors-interface/ios`
Pre-downloading: `ExpoKit` from `http://github.com/expo/expo.git`, tag `ios/2.9.0`
Fetching podspec for `Folly` from `../node_modules/react-native/third-party-podspecs/Folly.podspec`
Fetching podspec for `React` from `../node_modules/react-native`
Fetching podspec for `glog` from `../node_modules/react-native/third-party-podspecs/glog.podspec`
Fetching podspec for `yoga` from `../node_modules/react-native/ReactCommon/yoga`
[!] CocoaPods could not find compatible versions for pod "FBSDKShareKit":
  In Podfile:
    ExpoKit/Core (from `http://github.com/expo/expo.git`, tag `ios/2.9.0`) was resolved to 2.9.0, which depends on
      FBSDKShareKit (= 4.37.0)

None of your spec sources contain a spec satisfying the dependency: `FBSDKShareKit (= 4.37.0)`.

You have either:
 * out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
 * mistyped the name or version.
 * not added the source repo that hosts the Podspec to your Podfile.

Note: as of CocoaPods 1.0, `pod repo update` does not happen on `pod install` by default.

Any help on this would really be appricated.

#2

Solution: First run pod repo update then pod install.

1 Like
#3

Happy you got it figured out @scasarotto.

#4

I have similar issue when I tried to follow “Updating ExpoKit to SDK 31” from https://blog.expo.io/expo-sdk-v31-0-0-is-now-available-cad6d0463f49 and https://docs.expo.io/versions/latest/expokit/expokit#upgrading-expokit

$ pod update --verbose                                                                                                                                                       2.3.1
Update all pods
  Preparing

Updating local specs repositories

Updating spec repo `master`
  $ /usr/bin/git -C /Users/kamil/.cocoapods/repos/master fetch origin --progress
  remote: Enumerating objects: 23, done.
  remote: Counting objects: 100% (23/23), done.
  remote: Compressing objects: 100% (17/17), done.
  remote: Total 18 (delta 11), reused 0 (delta 0), pack-reused 0
  From https://github.com/CocoaPods/Specs
     b4b5a3bf208..5f51b9a073d  master     -> origin/master
  $ /usr/bin/git -C /Users/kamil/.cocoapods/repos/master rev-parse --abbrev-ref HEAD
  master
  $ /usr/bin/git -C /Users/kamil/.cocoapods/repos/master reset --hard origin/master
  HEAD is now at 5f51b9a073d [Add] MVVMBuildItDay 0.1.1

Analyzing dependencies

Inspecting targets to integrate
  Using `ARCHS` setting to build architectures of target `Pods-SOMENAME`: (``)

Finding Podfile changes
  A EXLocalization
  M ExpoKit
  - DoubleConversion
  - EXAdsAdMob
  - EXBarCodeScanner
  - EXBarCodeScannerInterface
  - EXCamera
  - EXCameraInterface
  - EXConstants
  - EXConstantsInterface
  - EXContacts
  - EXCore
  - EXFaceDetectorInterface
  - EXFileSystem
  - EXFileSystemInterface
  - EXFont
  - EXFontInterface
  - EXGL
  - EXGL-CPP
  - EXImageLoaderInterface
  - EXLocalAuthentication
  - EXLocation
  - EXMediaLibrary
  - EXPaymentsStripe
  - EXPermissions
  - EXPermissionsInterface
  - EXPrint
  - EXReactNativeAdapter
  - EXSMS
  - EXSegment
  - EXSensors
  - EXSensorsInterface
  - Folly
  - React
  - SwiftLint
  - glog
  - react-native-network-info
  - yoga

Fetching external sources
-> Fetching podspec for `DoubleConversion` from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`
-> Fetching podspec for `EXAdsAdMob` from `../node_modules/expo-ads-admob/ios`
-> Fetching podspec for `EXBarCodeScanner` from `../node_modules/expo-barcode-scanner/ios`
-> Fetching podspec for `EXBarCodeScannerInterface` from `../node_modules/expo-barcode-scanner-interface/ios`
-> Fetching podspec for `EXCamera` from `../node_modules/expo-camera/ios`
-> Fetching podspec for `EXCameraInterface` from `../node_modules/expo-camera-interface/ios`
-> Fetching podspec for `EXConstants` from `../node_modules/expo-constants/ios`
-> Fetching podspec for `EXConstantsInterface` from `../node_modules/expo-constants-interface/ios`
-> Fetching podspec for `EXContacts` from `../node_modules/expo-contacts/ios`
-> Fetching podspec for `EXCore` from `../node_modules/expo-core/ios`
-> Fetching podspec for `EXFaceDetectorInterface` from `../node_modules/expo-face-detector-interface/ios`
-> Fetching podspec for `EXFileSystem` from `../node_modules/expo-file-system/ios`
-> Fetching podspec for `EXFileSystemInterface` from `../node_modules/expo-file-system-interface/ios`
-> Fetching podspec for `EXFont` from `../node_modules/expo-font/ios`
-> Fetching podspec for `EXFontInterface` from `../node_modules/expo-font-interface/ios`
-> Fetching podspec for `EXGL` from `../node_modules/expo-gl/ios`
-> Fetching podspec for `EXGL-CPP` from `../node_modules/expo-gl-cpp/cpp`
-> Fetching podspec for `EXImageLoaderInterface` from `../node_modules/expo-image-loader-interface/ios`
-> Fetching podspec for `EXLocalAuthentication` from `../node_modules/expo-local-authentication/ios`
-> Fetching podspec for `EXLocalization` from `../node_modules/expo-localization/ios`
-> Fetching podspec for `EXLocation` from `../node_modules/expo-location/ios`
-> Fetching podspec for `EXMediaLibrary` from `../node_modules/expo-media-library/ios`
-> Fetching podspec for `EXPaymentsStripe` from `../node_modules/expo-payments-stripe/ios`
-> Fetching podspec for `EXPermissions` from `../node_modules/expo-permissions/ios`
-> Fetching podspec for `EXPermissionsInterface` from `../node_modules/expo-permissions-interface/ios`
-> Fetching podspec for `EXPrint` from `../node_modules/expo-print/ios`
-> Fetching podspec for `EXReactNativeAdapter` from `../node_modules/expo-react-native-adapter/ios`
-> Fetching podspec for `EXSMS` from `../node_modules/expo-sms/ios`
-> Fetching podspec for `EXSegment` from `../node_modules/expo-analytics-segment/ios`
-> Fetching podspec for `EXSensors` from `../node_modules/expo-sensors/ios`
-> Fetching podspec for `EXSensorsInterface` from `../node_modules/expo-sensors-interface/ios`
-> Pre-downloading: `ExpoKit` from `http://github.com/expo/expo.git`, tag `ios/2.9.0`
 > Git download
 > Git download
     $ /usr/bin/git clone http://github.com/expo/expo.git /var/folders/7r/1wryd_590sx7dvygb9vntrf80000gn/T/d20181108-18016-12ot2yl --template= --single-branch --depth 1 --branch
     ios/2.9.0
     Cloning into '/var/folders/7r/1wryd_590sx7dvygb9vntrf80000gn/T/d20181108-18016-12ot2yl'...
     warning: redirecting to https://github.com/expo/expo.git/
     Note: checking out '9b7fe92d47ae9f0614a42148ec5c46f12678eff1'.

     You are in 'detached HEAD' state. You can look around, make experimental
     changes and commit them, and you can discard any commits you make in this
     state without impacting any branches by performing another checkout.

     If you want to create a new branch to retain commits you create, you may
     do so (now or later) by using -b with the checkout command again. Example:

       git checkout -b <new-branch-name>

     git-lfs filter-process: git-lfs: command not found
     fatal: The remote end hung up unexpectedly
     warning: Clone succeeded, but checkout failed.
     You can inspect what was checked out with 'git status'
     and retry the checkout with 'git checkout -f HEAD'


[!] Error installing ExpoKit
[!] Failed to download 'ExpoKit': [!] /usr/bin/git clone http://github.com/expo/expo.git /var/folders/7r/1wryd_590sx7dvygb9vntrf80000gn/T/d20181108-18016-12ot2yl --template= --single-branch --depth 1 --branch ios/2.9.0

Cloning into '/var/folders/7r/1wryd_590sx7dvygb9vntrf80000gn/T/d20181108-18016-12ot2yl'...
warning: redirecting to https://github.com/expo/expo.git/
Note: checking out '9b7fe92d47ae9f0614a42148ec5c46f12678eff1'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

git-lfs filter-process: git-lfs: command not found
fatal: The remote end hung up unexpectedly
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry the checkout with 'git checkout -f HEAD'



/Users/kamil/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/cocoapods-1.6.0.beta.2/lib/cocoapods/external_sources/abstract_external_source.rb:120:in `rescue in block in pre_download'
/Users/kamil/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/cocoapods-1.6.0.beta.2/lib/cocoapods/external_sources/abstract_external_source.rb:115:in `block in pre_download'
/Users/kamil/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/cocoapods-1.6.0.beta.2/lib/cocoapods/user_interface.rb:86:in `titled_section'
/Users/kamil/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/cocoapods-1.6.0.beta.2/lib/cocoapods/external_sources/abstract_external_source.rb:113:in `pre_download'
/Users/kamil/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/cocoapods-1.6.0.beta.2/lib/cocoapods/external_sources/downloader_source.rb:13:in `fetch'
/Users/kamil/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/cocoapods-1.6.0.beta.2/lib/cocoapods/installer/analyzer.rb:818:in `fetch_external_source'
/Users/kamil/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/cocoapods-1.6.0.beta.2/lib/cocoapods/installer/analyzer.rb:797:in `block (2 levels) in fetch_external_sources'
/Users/kamil/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/cocoapods-1.6.0.beta.2/lib/cocoapods/installer/analyzer.rb:796:in `each'
/Users/kamil/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/cocoapods-1.6.0.beta.2/lib/cocoapods/installer/analyzer.rb:796:in `block in fetch_external_sources'
/Users/kamil/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/cocoapods-1.6.0.beta.2/lib/cocoapods/user_interface.rb:64:in `section'
/Users/kamil/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/cocoapods-1.6.0.beta.2/lib/cocoapods/installer/analyzer.rb:795:in `fetch_external_sources'
/Users/kamil/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/cocoapods-1.6.0.beta.2/lib/cocoapods/installer/analyzer.rb:102:in `analyze'
/Users/kamil/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/cocoapods-1.6.0.beta.2/lib/cocoapods/installer.rb:266:in `analyze'
/Users/kamil/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/cocoapods-1.6.0.beta.2/lib/cocoapods/installer.rb:174:in `block in resolve_dependencies'
/Users/kamil/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/cocoapods-1.6.0.beta.2/lib/cocoapods/user_interface.rb:64:in `section'
/Users/kamil/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/cocoapods-1.6.0.beta.2/lib/cocoapods/installer.rb:173:in `resolve_dependencies'
/Users/kamil/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/cocoapods-1.6.0.beta.2/lib/cocoapods/installer.rb:136:in `install!'
/Users/kamil/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/cocoapods-1.6.0.beta.2/lib/cocoapods/command/update.rb:97:in `run'
/Users/kamil/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/claide-1.0.2/lib/claide/command.rb:334:in `run'
/Users/kamil/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/cocoapods-1.6.0.beta.2/lib/cocoapods/command.rb:52:in `run'
/Users/kamil/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/cocoapods-1.6.0.beta.2/bin/pod:55:in `<top (required)>'
/Users/kamil/.rbenv/versions/2.3.1/bin/pod:23:in `load'
/Users/kamil/.rbenv/versions/2.3.1/bin/pod:23:in `<main>'

Any ideas?

#5

currently stuck at pre-downloading expo kit.
done pod repo update, pod update, pod install then waits for about 30 mins just to get an error

#6

Judging by git-lfs filter-process: git-lfs: command not found it looks like you don’t have Git LFS installed. Please ensure your environment supports git-lfs: https://git-lfs.github.com. :slightly_smiling_face:

#7

What does the error say, @logicallydimp? :slightly_smiling_face:

#8

sorry for the late reply but I just downgraded back to sdk 28 since I can’t find a way to update my sdk properly…
It’s working anyway so thanks

closed #9

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.