React-native-firebase: [Question] Firebase Pod 4.1.1 with leveldb-library

Created on 7 Sep 2017  路  3Comments  路  Source: invertase/react-native-firebase

Hi,

I just try to upgrade the firebase pods to version 4.1.1 and they need the leveldb-library pod.
The problem is when I try to build, the stdint.h from leveldb is used in Yoga.h but it thorws a error:
This file should only be included when compiling with MSVC
Has anybody seen that error before and knows how to fix it?

In version 4.0.3 everything is working because the leveldb-library is not used.

Kind regards,
David

General

Most helpful comment

I've just ran into this myself.

This workaround can be added to Podfile as follows:

# Temporary workaround for https://github.com/invertase/react-native-firebase/issues/395
post_install do
  `rm -rf Pods/leveldb-library/port/win`
end

All 3 comments

Ye it's an annoying thing at the moment with having leveldb on cocoa pods,

I'd suggest doing what a user on discord did as a work around:
image

Add it as a package script so you can re-use it if needed later:
cd ios && rm -rf Pods/leveldb-library/port/win

I've just ran into this myself.

This workaround can be added to Podfile as follows:

# Temporary workaround for https://github.com/invertase/react-native-firebase/issues/395
post_install do
  `rm -rf Pods/leveldb-library/port/win`
end

Is this still necessary?

Was this page helpful?
0 / 5 - 0 ratings