tursodatabase / tursodatabase/libsql

[OP-SQlite] Libsql does not support iOS-simulator

Open
#2,216 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
17.2k
Forks
531
Avg merge
1h 12m
Merged PRs (30d)
1

Description

Re-creating: https://github.com/OP-Engineering/op-sqlite/issues/388 here.

I think we need a new libsql build for op-sqlite that maybe removes libsql_experimental for libsql as well as allows building for iOS simulator as a target

What happened?

This is what I get:

⚠️  ld: ignoring duplicate libraries: '-lc++'

❌  ld: framework 'libsql_experimental' not found


❌  clang: error: linker command failed with exit code 1 (use -v to see invocation)

    Run script build phase '[CP-User] [Hermes] Replace Hermes for the right configuration, if needed' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'hermes-engine' from project 'Pods')
    Run script build phase 'Remove signature files (Xcode workaround)' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'App' from project 'App')
    Run script build phase '[CP-User] [RNFB] Core Configuration' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'App' from project 'App')
▸ ** BUILD FAILED **
▸ The following build commands failed:
▸ 	Ld /Users/expo/workingdir/build/ios/build/Build/Intermediates.noindex/App.build/Debug-iphonesimulator/Aoo.build/Objects-normal/x86_64/Binary/App.debug.dylib normal x86_64 (in target 'App' from project 'App')

op-sqlite version: 15.1.17

React Native version: 0.81.6

Expo SDK: 54

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure using op-sqlite 15.1.17 with React Native 0.81.6 and Expo SDK 54, targeting the iOS simulator. Inspect the build configuration responsible for linking libsql_experimental and compare simulator versus device targets. Done means the iOS simulator build completes without the missing-framework linker error.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios
Domain
build-system, mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.