Upgrading to SDK 26 - Pod install issue


#1

Got this error when I run pod install.

[!] CocoaPods could not find compatible versions for pod "yoga":
  In snapshot (Podfile.lock):
    yoga

  In Podfile:
    React/Core (from `../node_modules/react-native`) was resolved to 0.54.2, which depends on
      yoga (= 0.54.2.React)

    yoga (from `../node_modules/react-native/ReactCommon/yoga`)

It seems like you've changed the constraints of dependency `yoga` inside your development pod `yoga`.
You should run `pod update yoga` to apply changes you've made.

previous SDK: 25
macOS: High Sierra 10.13.3
xCode: 9.2


#2

Hey @michchan,

Did you try running pod update yoga to see if that fixes the issue?

Adam


#3

One other idea if you’re still stuck - try creating a blank SDK 26 project, running exp detach on that, and then inspecting the contents of Podfile and package.json and Podfile.lock to see if they are different.


#4

Following Ben’s suggestion, I just detached a fresh project and had no issues with pod install.


#5

Adam,
Yes I have tried. It didn’t help.
and I got this after running pod update yoga:
[!] Unable to find a specification forGLogdepended upon byFolly`


#6

Can you also make sure to run pod repo update ? Cocoapods needs to phone home and make sure knows about the newest versions of all libraries.


#7

Hey, this may be the result of the Glog renaming. It is now spelled with a lowercase g.

See the release docs at the end of the blog post here: https://blog.expo.io/expo-sdk-v26-0-0-is-now-available-2be6d9805b31


#8

Yes I have followed the guide to change that GLog to “glog” already


#9

Gotcha. Here’s the podfile and podfile.lock from a new project freshly detached.

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'

target 'ios-test' do
  pod 'ExpoKit',
    :git => "http://github.com/expo/expo.git",
    :tag => "ios/2.4.4",
    :subspecs => [
      "Core",
      "CPP",
      "GL"
    ]

  pod 'React',
    :path => "../node_modules/react-native",
    :subspecs => [
      "Core",
      "ART",
      "RCTActionSheet",
      "RCTAnimation",
      "RCTCameraRoll",
      "RCTGeolocation",
      "RCTImage",
      "RCTNetwork",
      "RCTText",
      "RCTVibration",
      "RCTWebSocket",
      "DevSupport",
      "CxxBridge"
    ]
  pod 'yoga',
    :path => "../node_modules/react-native/ReactCommon/yoga"
  pod 'DoubleConversion',
    :podspec => "../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec",
    :inhibit_warnings => true
  pod 'Folly',
    :podspec => "../node_modules/react-native/third-party-podspecs/Folly.podspec",
    :inhibit_warnings => true
  pod 'glog',
    :podspec => "../node_modules/react-native/third-party-podspecs/glog.podspec",
    :inhibit_warnings => true


  post_install do |installer|
    installer.pods_project.main_group.tab_width = '2';
    installer.pods_project.main_group.indent_width = '2';

    installer.pod_targets.each do |target|

    if target.pod_name == 'ExpoKit'
      target.native_target.build_configurations.each do |config|
        config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)']
        config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] << 'EX_DETACHED=1'
        
        # needed for GoogleMaps 2.x
        config.build_settings['FRAMEWORK_SEARCH_PATHS'] ||= []
        config.build_settings['FRAMEWORK_SEARCH_PATHS'] << '${PODS_ROOT}/GoogleMaps/Base/Frameworks'
        config.build_settings['FRAMEWORK_SEARCH_PATHS'] << '${PODS_ROOT}/GoogleMaps/Maps/Frameworks'
      end
    end


    if ['Amplitude-iOS','Analytics','AppAuth','Branch','CocoaLumberjack','FBSDKCoreKit','FBSDKLoginKit','FBSDKShareKit','GPUImage','JKBigInteger2'].include? target.pod_name
      target.native_target.build_configurations.each do |config|
        config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0'
      end
    end
    # Build React Native with RCT_DEV enabled
    next unless target.pod_name == 'React'
    target.native_target.build_configurations.each do |config|
      config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)']
      config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] << 'RCT_DEV=1'
    end

    end
  end
end
PODS:
  - Amplitude-iOS (3.14.1)
  - Analytics (3.6.9)
  - AppAuth (0.92.0)
  - Bolts (1.9.0):
    - Bolts/AppLinks (= 1.9.0)
    - Bolts/Tasks (= 1.9.0)
  - Bolts/AppLinks (1.9.0):
    - Bolts/Tasks
  - Bolts/Tasks (1.9.0)
  - boost-for-react-native (1.63.0)
  - Branch (0.14.12):
    - Branch/Core (= 0.14.12)
    - Branch/without-IDFA (= 0.14.12)
  - Branch/Core (0.14.12)
  - Branch/without-IDFA (0.14.12)
  - CocoaLumberjack (3.2.1):
    - CocoaLumberjack/Default (= 3.2.1)
    - CocoaLumberjack/Extensions (= 3.2.1)
  - CocoaLumberjack/Default (3.2.1)
  - CocoaLumberjack/Extensions (3.2.1):
    - CocoaLumberjack/Default
  - Crashlytics (3.10.1):
    - Fabric (~> 1.7.5)
  - DoubleConversion (1.1.5)
  - ExpoKit/Core (2.4.4):
    - Amplitude-iOS (~> 3.8)
    - Analytics (~> 3.5)
    - AppAuth (~> 0.4)
    - Branch (~> 0.14.12)
    - CocoaLumberjack (~> 3.2.1)
    - Crashlytics (~> 3.8)
    - Fabric (~> 1.6)
    - FBAudienceNetwork (~> 4.24)
    - FBSDKCoreKit (~> 4.28)
    - FBSDKLoginKit (~> 4.28)
    - FBSDKShareKit (~> 4.28)
    - Google-Mobile-Ads-SDK (~> 7.22.0)
    - GoogleMaps (~> 2.2.0)
    - GoogleSignIn (~> 3.0)
    - GPUImage (~> 0.1.7)
    - JKBigInteger2 (= 0.0.5)
    - lottie-ios (~> 2.1.3)
  - ExpoKit/CPP (2.4.4):
    - ExpoKit/Core
  - ExpoKit/GL (2.4.4):
    - ExpoKit/CPP
  - Fabric (1.7.6)
  - FBAudienceNetwork (4.28.0)
  - FBSDKCoreKit (4.31.1):
    - Bolts (~> 1.7)
  - FBSDKLoginKit (4.31.1):
    - FBSDKCoreKit
  - FBSDKShareKit (4.31.1):
    - FBSDKCoreKit (~> 4.31.1)
  - Folly (2016.09.26.00):
    - boost-for-react-native
    - DoubleConversion
    - glog
  - glog (0.3.4)
  - Google-Mobile-Ads-SDK (7.22.0)
  - GoogleAppUtilities (1.1.2):
    - GoogleSymbolUtilities (~> 1.1)
  - GoogleAuthUtilities (2.0.2):
    - GoogleNetworkingUtilities (~> 1.2)
    - GoogleSymbolUtilities (~> 1.1)
  - GoogleMaps (2.2.0):
    - GoogleMaps/Maps (= 2.2.0)
  - GoogleMaps/Base (2.2.0)
  - GoogleMaps/Maps (2.2.0):
    - GoogleMaps/Base
  - GoogleNetworkingUtilities (1.2.2):
    - GoogleSymbolUtilities (~> 1.1)
  - GoogleSignIn (3.0.0):
    - GoogleAppUtilities (~> 1.0)
    - GoogleAuthUtilities (~> 2.0)
    - GoogleNetworkingUtilities (~> 1.0)
    - GoogleUtilities (~> 1.0)
  - GoogleSymbolUtilities (1.1.2)
  - GoogleUtilities (1.3.2):
    - GoogleSymbolUtilities (~> 1.1)
  - GPUImage (0.1.7)
  - JKBigInteger2 (0.0.5)
  - lottie-ios (2.1.5)
  - React/ART (0.54.2):
    - React/Core
  - React/Core (0.54.2):
    - yoga (= 0.54.2.React)
  - React/CxxBridge (0.54.2):
    - Folly (= 2016.09.26.00)
    - React/Core
    - React/cxxreact
  - React/cxxreact (0.54.2):
    - boost-for-react-native (= 1.63.0)
    - Folly (= 2016.09.26.00)
    - React/jschelpers
    - React/jsinspector
  - React/DevSupport (0.54.2):
    - React/Core
    - React/RCTWebSocket
  - React/fishhook (0.54.2)
  - React/jschelpers (0.54.2):
    - Folly (= 2016.09.26.00)
    - React/PrivateDatabase
  - React/jsinspector (0.54.2)
  - React/PrivateDatabase (0.54.2)
  - React/RCTActionSheet (0.54.2):
    - React/Core
  - React/RCTAnimation (0.54.2):
    - React/Core
  - React/RCTBlob (0.54.2):
    - React/Core
  - React/RCTCameraRoll (0.54.2):
    - React/Core
    - React/RCTImage
  - React/RCTGeolocation (0.54.2):
    - React/Core
  - React/RCTImage (0.54.2):
    - React/Core
    - React/RCTNetwork
  - React/RCTNetwork (0.54.2):
    - React/Core
  - React/RCTText (0.54.2):
    - React/Core
  - React/RCTVibration (0.54.2):
    - React/Core
  - React/RCTWebSocket (0.54.2):
    - React/Core
    - React/fishhook
    - React/RCTBlob
  - yoga (0.54.2.React)

DEPENDENCIES:
  - DoubleConversion (from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`)
  - ExpoKit/Core (from `http://github.com/expo/expo.git`, tag `ios/2.4.4`)
  - ExpoKit/CPP (from `http://github.com/expo/expo.git`, tag `ios/2.4.4`)
  - ExpoKit/GL (from `http://github.com/expo/expo.git`, tag `ios/2.4.4`)
  - Folly (from `../node_modules/react-native/third-party-podspecs/Folly.podspec`)
  - glog (from `../node_modules/react-native/third-party-podspecs/glog.podspec`)
  - React/ART (from `../node_modules/react-native`)
  - React/Core (from `../node_modules/react-native`)
  - React/CxxBridge (from `../node_modules/react-native`)
  - React/DevSupport (from `../node_modules/react-native`)
  - React/RCTActionSheet (from `../node_modules/react-native`)
  - React/RCTAnimation (from `../node_modules/react-native`)
  - React/RCTCameraRoll (from `../node_modules/react-native`)
  - React/RCTGeolocation (from `../node_modules/react-native`)
  - React/RCTImage (from `../node_modules/react-native`)
  - React/RCTNetwork (from `../node_modules/react-native`)
  - React/RCTText (from `../node_modules/react-native`)
  - React/RCTVibration (from `../node_modules/react-native`)
  - React/RCTWebSocket (from `../node_modules/react-native`)
  - yoga (from `../node_modules/react-native/ReactCommon/yoga`)

EXTERNAL SOURCES:
  DoubleConversion:
    :podspec: ../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec
  ExpoKit:
    :git: http://github.com/expo/expo.git
    :tag: ios/2.4.4
  Folly:
    :podspec: ../node_modules/react-native/third-party-podspecs/Folly.podspec
  glog:
    :podspec: ../node_modules/react-native/third-party-podspecs/glog.podspec
  React:
    :path: ../node_modules/react-native
  yoga:
    :path: ../node_modules/react-native/ReactCommon/yoga

CHECKOUT OPTIONS:
  ExpoKit:
    :git: http://github.com/expo/expo.git
    :tag: ios/2.4.4

SPEC CHECKSUMS:
  Amplitude-iOS: 4a3c8807b2ea5369dc11e87e23825bff01e5a922
  Analytics: 6541ce337e99d9f7a2240a8b3953940a7be5f998
  AppAuth: 3f4f1d6d85ad631d0bbf15ffcdc10c447face97a
  Bolts: ac6567323eac61e203f6a9763667d0f711be34c8
  boost-for-react-native: 39c7adb57c4e60d6c5479dd8623128eb5b3f0f2c
  Branch: f63d9cf82ac09747349a73184a0b739d28781c4d
  CocoaLumberjack: 2800c03334042fe80589423c8d80e582dcaec482
  Crashlytics: aee1a064cbbf99b32efa3f056a5f458d846bc8ff
  DoubleConversion: ebb6747c5b66026ad4f97b789c3ceac6f18e57a6
  ExpoKit: e74388fc0f2b86d8989537194bebe435e9452a9e
  Fabric: f8d42c893bb187326a7968b62abe55c36a987a46
  FBAudienceNetwork: 25decde0ee5bfee9573d1d729ace66a66827de41
  FBSDKCoreKit: e08ccfcefa7bc1347a07c276dac9bf6c7fe57024
  FBSDKLoginKit: 99797ac39252fef6f72600b886f6ee60b4b29cab
  FBSDKShareKit: e640c41c9fcd61929eeb3d0c21ad335103e7cb62
  Folly: 211775e49d8da0ca658aebc8eab89d642935755c
  glog: 1de0bb937dccdc981596d3b5825ebfb765017ded
  Google-Mobile-Ads-SDK: 1bdf1a4244d0553b1840239874c209c01aef055f
  GoogleAppUtilities: a8a552aa74f6597f805e45b5a3962766c3134973
  GoogleAuthUtilities: ccad2e0a9284699973ff57c0dd24c3893657fda4
  GoogleMaps: 104c418d61ab8a05dff06ed0784c25ea9d37da45
  GoogleNetworkingUtilities: 3edd3a8161347494f2da60ea0deddc8a472d94cb
  GoogleSignIn: 3d571172b8603be39dcb1705d8217146bb76fe62
  GoogleSymbolUtilities: 631ee17048aa5e9ab133470d768ea997a5ef9b96
  GoogleUtilities: 8bbc733218aad26306f9d4a253823986110e3358
  GPUImage: 733a5f0fab92df9de1c37ba9df520a833ccb406d
  JKBigInteger2: e91672035c42328c48b7dd015b66812ddf40ca9b
  lottie-ios: 836cdbba92f62f3c6a00e37a4ce485321fe317cf
  React: c237e42de9c70e5cac6eeb52b4cfd3a0910c1f00
  yoga: 55da126afc384965b96bff46652464373b330add

PODFILE CHECKSUM: fb106565d8a1cdca21c66c05552518d54bb33d55

COCOAPODS: 1.4.0


Hard Hard.. Upgrade from expokit again
#10

I added “GL” to the “subspec” under “ExpoKit” in Podfile, removed podfile.lock, and then run pod install.
And it works now! thanks for quick response @adamjnav also @ben

 pod 'ExpoKit',
    :git => "http://github.com/expo/expo.git",
    :tag => "ios/2.4.4",
    :subspecs => [
      "Core",
      "CPP",
      "GL" // <--- added this
    ]

'React/RCTView.h' file not found
#11

Ah, sorry about that. I added some information about the GL subspec to our release notes. Thanks for the info.


ExpoKit download failure in pod install of CRNA ejected project
#12
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`
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`
[!] Unable to find a specification for `boost-for-react-native` depended upon by `Folly`

I am also facing error with above Podfile. Can somebody tell me why?


Solved.

You should pod update first as described in issue here.


closed #13

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