stephencelis / SQLite.swift

A type-safe, Swift-language layer over SQLite3.
MIT License
9.64k stars 1.56k forks source link

"No such module 'SQLiteObjc'" when building UITest bundle for app that includes SQLite as SwiftPM package #974

Closed bkbeachlabs closed 4 years ago

bkbeachlabs commented 4 years ago

Build Information

General guidelines

Reproduction steps:

Showing All Messages
/Users/andrew/Library/Developer/Xcode/DerivedData/TestSQLitePackageUITesting-auntmfvzglbzrzfsjbcqqvztwaxi/SourcePackages/checkouts/SQLite.swift/Sources/SQLite/Extensions/FTS4.swift:26:8: No such module 'SQLiteObjc'
Screen Shot 2019-12-23 at 11 42 35 AM

Sample project demonstrating issue: TestSQLitePackageUITesting.zip

bkbeachlabs commented 4 years ago

Ok I was actually able to resolve this issue by adding the main app as a target to be built when running the UI tests. Phew!

Screen Shot 2019-12-23 at 1 15 56 PM