Skip to content

Commit 8f5a243

Browse files
authored
Update README.md
1 parent 10fb430 commit 8f5a243

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -367,12 +367,11 @@ By specifying pre-processor flags, you can enable optional features like FTS5, G
367367
Add a `post_install` block to your `<PROJECT_ROOT>/ios/Podfile` like so:
368368

369369
```ruby
370-
post_install do |installer|
371-
installer.pods_project.targets.each do |target|
372-
if target.name == "react-native-nitro-sqlite" then
373-
target.build_configurations.each do |config|
374-
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] << 'SQLITE_ENABLE_FTS5=1'
375-
end
370+
installer.pods_project.targets.each do |target|
371+
if target.name == "RNNitroSQLite" then
372+
target.build_configurations.each do |config|
373+
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)']
374+
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] << 'SQLITE_ENABLE_FTS5=1'
376375
end
377376
end
378377
end

0 commit comments

Comments
 (0)