React-native-firebase: Something went wrong while linking. Error: Cannot read property 'buildConfigurationList' of undefined

Created on 22 May 2018  路  7Comments  路  Source: invertase/react-native-firebase

Issue

I followed the instructions and did react-native link react-native-firebase.

Got this error:
Something went wrong while linking. Error: Cannot read property 'buildConfigurationList' of undefined

POD file:

platform :ios, '9.0'

target 'coreapp' do
  rn_path = '../node_modules/react-native'
  rn_maps_path = '../node_modules/react-native-maps'

  pod 'yoga', path: "#{rn_path}/ReactCommon/yoga/yoga.podspec"
  pod 'React', path: rn_path, subspecs: [
    'Core',
    'RCTActionSheet',
    'RCTAnimation',
    'RCTGeolocation',
    'RCTImage',
    'RCTLinkingIOS',
    'RCTNetwork',
    'RCTSettings',
    'RCTText',
    'RCTVibration',
    'RCTWebSocket'
  ]

  pod 'Firebase/Core'
  pod 'Firebase/Messaging'

  # Add new pods below this line
  pod 'react-native-splash-screen', :path => '../node_modules/react-native-splash-screen'

  # Pods for coreapp
  pod 'GoogleMaps'  # Remove this line if you don't want to support Google Maps on iOS
  pod 'react-native-maps', path: rn_maps_path
  pod 'react-native-google-maps', path: rn_maps_path
  pod 'RSKImageCropper'
  pod 'QBImagePickerController'
  pod 'react-native-config', :path => '../node_modules/react-native-config'

  pod 'RNKeychain', :path => '../node_modules/react-native-keychain'
  pod 'RNFS', :path => '../node_modules/react-native-fs'

end

post_install do |installer|
  installer.pods_project.targets.each do |target|
    if target.name == 'react-native-google-maps'
      target.build_configurations.each do |config|
        config.build_settings['CLANG_ENABLE_MODULES'] = 'No'
      end
    end
    if target.name == "React"
      target.remove_from_project
    end
  end
end

Environment

iOS

  1. Application Target Platform:

iOS 11.3

  1. Development Operating System:

Xcode, iOS

  1. React Native version:

0.54.4

  1. RNFirebase Version:

react-native-firebase: 4.2.0

  1. Firebase Module:

Core, Messaging, Notifications

Build Error iOS Stale

All 7 comments

I found that there is conflict with other libraries. But still didn't found a solution.

Same issue, I'll post if I find any fixes but I have been able to successfully use rn-firebase without linking.

Is there any fixes found for this issue?

This issue has been automatically marked as stale because it has not had recent user activity. It will be closed if no further activity occurs. Thank you for your contributions.

Closing this issue after a prolonged period of inactivity. If this is still present in the latest release, please feel free to create a new issue with up-to-date information.

Still getting this error.

react native itself appears to have a cacheing problem in some systems (my educated guess) and this will have to be taken up with the react-native team directly.

Was this page helpful?
0 / 5 - 0 ratings