Skip to content

Error: "xcodebuild redefinition of 'sqlite3_xxx'" when building fresh expo project #70

Answered by G2Jose
felixsebastian asked this question in Q&A
Discussion options

You must be logged in to vote

Here's what I had to do to get powersync working with expo 52:

  1. Update Podfile.properties.json
 {
-  "ios.deploymentTarget": "15.5"
+  "ios.deploymentTarget": "15.5",
+  "expo.updates.useThirdPartySQLitePod": "true"
 }
  1. Update Podfile with a pre_install step:
puts "config_command: #{config_command}"

+  pre_install do |installer|
+    installer.pod_targets.each do |pod|
+      next unless pod.name.eql?('react-native-quick-sqlite')
+
+      def pod.build_type
+        Pod::BuildType.static_library
+      end
+    end
+  end
+
config = use_native_modules!(config_command)
  1. Update @journeyapps/react-native-quick-sqlite in package.json
-    "@journeyapps/react-native-quick-sqlite": "^1.4.0",
+

Replies: 8 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by stevensJourney
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
7 participants
Converted from issue

This discussion was converted from issue #65 on January 07, 2025 06:35.