Skip to content

Installing wrong React (0.11) while using Podfile #324

@ohtangza

Description

@ohtangza
# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'

target 'mimiking' do
  # Uncomment the next line if you're using Swift or would like to use dynamic frameworks
  # use_frameworks!

  # Pods for mimiking
  target 'mimikingTests' do
    inherit! :search_paths
    # Pods for testing
  end

  pod 'Firebase/Core'
  pod 'RNFirebase', :path => '../node_modules/react-native-firebase', :exclude => ['React']

  pod 'Firebase/Auth'
  pod 'Firebase/Analytics'
  # pod 'Firebase/AppIndexing'
  pod 'Firebase/Crash'
  pod 'Firebase/Database'
  pod 'Firebase/DynamicLinks'
  pod 'Firebase/Messaging'
  pod 'Firebase/RemoteConfig'
  pod 'Firebase/Storage'

  pod 'Intercom'

end

I am not using React with Pod. When I tried to run pod install, it automatically installs React (0.11) as the screenshot below says.

screen shot 2017-08-10 at 2 02 44 pm

If I include the React within Podfile, it shows an error during the archiving process. During development, it does not output the error even if I install the React twice in my project file and Podfile.

screen shot 2017-08-10 at 2 35 00 pm

Do you think we can remove React dependency in podspec (https://github.com/invertase/react-native-firebase/blob/master/RNFirebase.podspec)? I was searching if I could conditionally exclude the React dependency to be installed., but had no luck. If it's okay, I might make a pull request for it.

Environment

  1. Target Platform (e.g. iOS, Android): iOS
  2. Development Operating System (e.g. macOS Sierra, Windows 10): macOS Sierra
  3. Build tools (Xcode or Android Studio version, iOS or Android SDK version, if relevant): Xcode
  4. React Native version (e.g. 0.45.1): 0.44.1
  5. RNFirebase Version (e.g. 2.0.2): 2.1.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions