ExpoKit download failure in pod install of CRNA ejected project

#1

After updating to the latest Expo, it fails to download Expokit in pod install of CRNA ejected problem.

Sequence

  • create-react-native-app AwesomeProject
  • npm run eject
  • cd ios; pod install
pod install
Analyzing dependencies
Fetching podspec for `DoubleConversion` from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`
Pre-downloading: `ExpoKit` from `http://github.com/expo/expo.git`, tag `ios/2.4.4`

[!] Error installing ExpoKit
[!] Failed to download 'ExpoKit'.

As I checked the files in github page https://github.com/expo/expo/releases,
they (zip and tar.gz) both can be downloaded.

For testing, I changed the ExpoKit version to the previous version ios/Podfile,

  2   pod 'ExpoKit',
  1     :git => "http://github.com/expo/expo.git",
7       :tag => "ios/2.3.3",  // 2.4.4
  1     :subspecs => [
  2       "Core",
  3       "CPP",
  4       "GL"
  5     ]

With version 2.3.3, it proceeds further and failed due to the configuration change, I guess.

$ pod install
Analyzing dependencies
Fetching podspec for `DoubleConversion` from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`
Pre-downloading: `ExpoKit` from `http://github.com/expo/expo.git`, tag `ios/2.3.3`
Fetching podspec for `Folly` from `../node_modules/react-native/third-party-podspecs/Folly.podspec`
Fetching podspec for `RNDeviceInfo` from `../node_modules/react-native-device-info`
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 "ExpoKit/GL":
  In Podfile:
    ExpoKit/GL (from `http://github.com/expo/expo.git`, tag `ios/2.3.3`)

None of your spec sources contain a spec satisfying the dependency: `ExpoKit/GL (from `http://github.com/expo/expo.git`, tag `ios/2.3.3`)`.

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.

Environment:

Environment:
OS: macOS High Sierra 10.13.4
Node: 8.9.4
Yarn: 1.5.1
npm: 4.6.1
Watchman: 4.9.0
Xcode: Xcode 9.3 Build version 9E145
Android Studio: 3.0 AI-171.4443003

Packages: (wanted => installed)
expo: ^25.0.0 => 25.0.0
react: 16.2.0 => 16.2.0
react-native: https://github.com/expo/react-native/archive/sdk-25.0.0.tar.gz => 0.52.0

Diagnostics report:
https://exp-xde-diagnostics.s3.amazonaws.com/tkhwang-2a9b6856-bad1-4532-87e3-81254699dc7a.tar.gz

#2

Hey @tkhwang,

Looking at this post may help you: Upgrading to SDK 26 - Pod install issue

Also, can you ensure you are running the latest version of react-native-scripts?

Thanks,

Adam

#3

Dear @adamjnav,
Wow thanks a lot. As you share, it works greatly after pod update.

$ pod update
Update all pods
Updating local specs repositories
  $ /usr/local/bin/git -C /Users/tkhwang/.cocoapods/repos/master fetch origin --progress
  remote: Counting objects: 481, done.
  remote: Compressing objects: 100% (460/460), done.
  remote: Total 481 (delta 314), reused 0 (delta 0), pack-reused 0
  Receiving objects: 100% (481/481), 54.18 KiB | 3.87 MiB/s, done.
  Resolving deltas: 100% (314/314), completed with 129 local objects.
  From https://github.com/CocoaPods/Specs
     88425cdd528..a0775914986  master     -> origin/master
  $ /usr/local/bin/git -C /Users/tkhwang/.cocoapods/repos/master rev-parse --abbrev-ref HEAD
  master
  $ /usr/local/bin/git -C /Users/tkhwang/.cocoapods/repos/master reset --hard origin/master
  HEAD is now at a0775914986 [Add] OneTimePassword 3.1.1

CocoaPods 1.5.0.beta.1 is available.
To update use: `sudo gem install cocoapods --pre`
[!] This is a test version we'd love you to try.

For more information, see https://blog.cocoapods.org and the CHANGELOG for this version at https://github.com/CocoaPods/CocoaPods/releases/tag/1.5.0.beta.1

Analyzing dependencies
Fetching podspec for `DoubleConversion` from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`
Pre-downloading: `ExpoKit` from `http://github.com/expo/expo.git`, tag `ios/2.3.3`
Fetching podspec for `Folly` from `../node_modules/react-native/third-party-podspecs/Folly.podspec`
Fetching podspec for `GLog` from `../node_modules/react-native/third-party-podspecs/GLog.podspec`
Fetching podspec for `RNDeviceInfo` from `../node_modules/react-native-device-info`
Fetching podspec for `React` from `../node_modules/react-native`
Fetching podspec for `yoga` from `../node_modules/react-native/ReactCommon/yoga`
Downloading dependencies
Using Amplitude-iOS (3.14.1)
Using Analytics (3.6.9)
Using AppAuth (0.92.0)
Using Bolts (1.9.0)
Using Branch (0.14.12)
Using CocoaLumberjack (3.2.1)
Using Crashlytics (3.10.1)
Using DoubleConversion (1.1.5)
Installing ExpoKit 2.3.3 (was 2.3.3)
Using FBAudienceNetwork (4.28.0)
Using FBSDKCoreKit (4.31.1)
Using FBSDKLoginKit (4.31.1)
Using FBSDKShareKit (4.31.1)
Using Fabric (1.7.6)
Using Folly (2016.09.26.00)
Using GLog (0.3.4)
Using GPUImage (0.1.7)
Using Google-Mobile-Ads-SDK (7.22.0)
Using GoogleAppUtilities (1.1.2)
Using GoogleAuthUtilities (2.0.2)
Using GoogleMaps (2.2.0)
Using GoogleNetworkingUtilities (1.2.2)
Using GoogleSignIn (3.0.0)
Using GoogleSymbolUtilities (1.1.2)
Using GoogleUtilities (1.3.2)
Using JKBigInteger2 (0.0.5)
Installing RNDeviceInfo (0.21.4)
Using React (0.52.0)
Using boost (1.59.0)
Using lottie-ios (2.1.5)
Using yoga (0.52.0.React)
Generating Pods project
Integrating client project
Sending stats
Pod installation complete! There are 20 dependencies from the Podfile and 31 total pods installed.

After pod update, just do pod install. It works…

$ pod install
Analyzing dependencies
Fetching podspec for `RNDeviceInfo` from `../node_modules/react-native-device-info`
Fetching podspec for `React` from `../node_modules/react-native`
Fetching podspec for `yoga` from `../node_modules/react-native/ReactCommon/yoga`
Downloading dependencies
Using Amplitude-iOS (3.14.1)
Using Analytics (3.6.9)
Using AppAuth (0.92.0)
...
#4

One more information.

[OK] Created with SDK25 and update to SDK25

Actually the above app was created with Expo SDK 25.0.0 and then the tool/SDK was updated to 26.0.0. So that it seems that it (pod install) works after pod update.

[FAIL] SDK26.0.0

I created another new project with SDK 26.0.0.

  • create-react-native-app AwesomeApp
  • npm run eject
  • cd ios; pod install

This new project from ejected with SDK26.0.0 got the same problem. (It’s 100% reproducible.)

$ pod install
Analyzing dependencies
Fetching podspec for `DoubleConversion` from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`
Pre-downloading: `ExpoKit` from `http://github.com/expo/expo.git`, tag `ios/2.4.4`

[!] Error installing ExpoKit
[!] Failed to download 'ExpoKit'.
  • Environment
Environment:
  OS: macOS High Sierra 10.13.4
  Node: 8.9.4
  Yarn: 1.5.1
  npm: 4.6.1
  Watchman: 4.9.0
  Xcode: Xcode 9.3 Build version 9E145
  Android Studio: 3.0 AI-171.4443003

Packages: (wanted => installed)
  expo: ^26.0.0 => 26.0.0
  react: 16.3.0-alpha.1 => 16.3.0-alpha.1
  react-native: https://github.com/expo/react-native/archive/sdk-26.0.0.tar.gz => 0.54.2

Diagnostics report:
  https://exp-xde-diagnostics.s3.amazonaws.com/tkhwang-c43bc763-c45e-46c8-99cb-6c41627ff305.tar.gz
closed #5

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