K
K
KnightForce2017-09-15 18:19:11
iOS
KnightForce, 2017-09-15 18:19:11

react native. Pod. What ha problem This file should only be included when compiling with MSVC?

react native run ios.

In file included from /node_modules/react-native-fcm/ios/RNFIRMessaging.m:3:
In file included from /ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTConvert.h:19:
In file included from /ios/build/Build/Products/Debug-iphonesimulator/include/yoga/Yoga.h:15:
../../../ios/Pods/leveldb-library/port/win/stdint.h:11:2: error: This file should only be included when compiling with MSVC.
#error This file should only be included when compiling with MSVC.
 ^
1 error generated.
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1

stdin.h file :
#ifndef STORAGE_LEVELDB_PORT_WIN_STDINT_H_
#define STORAGE_LEVELDB_PORT_WIN_STDINT_H_

#if !defined(_MSC_VER)
#error This file should only be included when compiling with MSVC.
#endif

// Define C99 equivalent types.
typedef signed char           int8_t;
typedef signed short          int16_t;
typedef signed int            int32_t;
typedef signed long long      int64_t;
typedef unsigned char         uint8_t;
typedef unsigned short        uint16_t;
typedef unsigned int          uint32_t;
typedef unsigned long long    uint64_t;

#endif

How to fix?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
iMaximus, 2017-09-15
@iMaximus

I don't know JS at all, but I can use google
https://stackoverflow.com/questions/46208317/xcode...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question