Skip to content

Missing required module 'SQLiteObjc' when using Carthage #1205

@aivcec

Description

@aivcec

Something strange is happening when integrating ApolloSQLite framework using Carthage, starting from apollo-ios version 0.23.x upwards (0.22.x works fine.)

Starting from 0.23.0, Cartfile.private was removed so I removed explicit reference to SQLite as well as Starscream from my application's Cartfile. However, I can't get the application to build whenever I import ApolloSQLite framework, due to the compiler error.
Also, on later versions (I checked only 0.27.1) the problem appears only when targeting a device.

Are there any migration steps I may have missed?

Versions:

macOS 10.15.4
Xcode 11.4 and 11.4.1
Carthage 0.34.0
apollo-ios 0.23.x or higher
Tested only on ios builds.

Reproduction:

  1. Create an empty Xcode project
  2. Add Cartfile with apollo-ios 0.23.0 or higher: github "apollographql/apollo-ios" ~> 0.23
  3. Run carthage update --platform ios
  4. Add Apollo and ApolloSQLite frameworks to project
  5. Import ApolloSQLite anywhere
  6. Build app for a device
  7. Swift Compiler Error - "Missing required module 'SQLiteObjc'"

Screen Shot 2020-05-13 at 9 56 00 pm

Metadata

Metadata

Assignees

No one assigned

    Labels

    apollo-sqlIssue with the SQL sub-projectdependency-managementIssues with CocoaPods, Carthage, or SPM integration

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions