andpor / react-native-sqlite-storage

Full featured SQLite3 Native Plugin for React Native (Android and iOS)
MIT License
2.74k stars 521 forks source link

'sqlite3.h' file not found on iOS part of react-native #533

Open mahesh-ivy opened 1 year ago

mahesh-ivy commented 1 year ago
Installed pod on iOS application and this issue started coming. I already had an iOS application inside which i have integrated react-native at certain controller. Then i have installed this library via yarn. ## Expected Behavior

This issue should not come at the first place

I just modified the line of code from #import 'sqlite3.h' to #import <sqlite3.h> inside the SQLite.m and it resolved the problem.

Current Behavior

It throws an error at the line 35 which is #import 'sqlite3.h' inside SQLite.m of this library.

The change would resolve the problem.

Possible Solution

Modify code from #import 'sqlite3.h' to #import <sqlite3.h> inside the SQLite.m

Steps to Reproduce (for bugs)

Just plan simple install the library in any bare iOS application and install pod via x86 arch rosetta terminal and run on Xcode 13.2.1.

Context

Trying to use the library.

Your Environment

Debug logs

No debug log as it gave error while compiling.