firebase / geofire-objc

GeoFire for Objective-C - Realtime location queries with Firebase
MIT License
436 stars 179 forks source link

'FirebaseDatabase/FirebaseDatabase.h' file not found in v4.0.1 #134

Open MacKaSL opened 4 years ago

MacKaSL commented 4 years ago

I followed steps here it solved the issue I had. https://github.com/firebase/geofire-objc/issues/89

I have installed v4.0.1 pod with

pod 'Firebase'
pod 'Firebase/Database'
pod 'GeoFire'

Now here is a new issue in GFQuery.m 'FirebaseDatabase/FirebaseDatabase.h' file not found

at the end of pod file I have this:

post_install do |installer|
  installer.pods_project.targets.each do |target|
  if target.name == 'GeoFire' then
    target.build_configurations.each do |config|
      config.build_settings['FRAMEWORK_SEARCH_PATHS'] = "#{config.build_settings['FRAMEWORK_SEARCH_PATHS']} ${PODS_ROOT}/FirebaseDatabase/Frameworks/ $PODS_CONFIGURATION_BUILD_DIR/GoogleToolboxForMac $PODS_CONFIGURATION_BUILD_DIR/nanopb $PODS_CONFIGURATION_BUILD_DIR/leveldb-library"
      config.build_settings['OTHER_LDFLAGS'] = "#{config.build_settings['OTHER_LDFLAGS']} -framework FirebaseDatabase"
    end
  end
end
Screen Shot 2020-04-28 at 7 54 42 AM