Skip to content

Carthage SQLite.framework not portable to different systems: CSQLite missing #492

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ghost opened this issue Sep 12, 2016 · 15 comments
Closed

Comments

@ghost
Copy link

ghost commented Sep 12, 2016

When I build the framework using carthage everything works as expected locally, but on other systems I get this error:

error: missing required module 'CSQLite'

Rebuilding with carthage on these systems fixes the error, but the framework then does not work on the first system anymore.

@jberkel
Copy link
Collaborator

jberkel commented Sep 15, 2016

Is this with Xcode8? See #494

@ghost
Copy link
Author

ghost commented Sep 15, 2016

This was with 7.3.1

@jberkel
Copy link
Collaborator

jberkel commented Sep 15, 2016

ah, I actually misread your bug report. weird, is the module loaded on runtime? can you explain what exactly you mean by "on other system"? do you take the compiled framework and include it another app, on a different machine?

@ghost
Copy link
Author

ghost commented Sep 15, 2016

We have a project checked in to git including the compiled framework. It is imported using the normal import statement in swift. By my system I meant my computer with my os, my coworker uses his mac.

@lyc2345
Copy link

lyc2345 commented Sep 21, 2016

Same here, I think I misopen my project with Xcode 8, then I open Xcode 7.3, then run the project, error appeared.
In module.modulemap
header"/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/include/sqlite3.h" not found

And In Connection.swift
Could not build Objective-C module 'CSQLite'

@tuchangwei
Copy link

@lyc2345 There is a tmp fix - You can change your Xcode app name Xcode7.3 to Xcode to solve this issue.

@ghost
Copy link
Author

ghost commented Sep 21, 2016

Both our Xcodes where named Xcode.app, still got the error.

@jberkel jberkel mentioned this issue Oct 10, 2016
@jberkel
Copy link
Collaborator

jberkel commented Oct 11, 2016

@maun this should be fixed on master, please verify

@jberkel
Copy link
Collaborator

jberkel commented Oct 19, 2016

fix has been released now (0.11.0). reopen if needed.

@jberkel jberkel closed this as completed Oct 19, 2016
@ghost
Copy link
Author

ghost commented Oct 27, 2016

This is fixed, thanks.

@ChanchalW
Copy link

screen shot 2017-03-03 at 1 19 54 pm

Any suggestion? I was using this in another project in swift 2.2. Now i am using xcode 8.2 and facing this issue. Nothing helped about it.

@arbythree
Copy link

Hi, I'm having this problem as of 11 March 2017 using Xcode 8.2.1, SQLite 0.11.2, and Carthage. Ideas?

@nealsun
Copy link

nealsun commented Mar 14, 2017

same issue with @raybradley .

@jberkel
Copy link
Collaborator

jberkel commented Mar 14, 2017

will be fixed once #615 is merged

@phildow
Copy link

phildow commented May 17, 2017

I'm now seeing this issue using the Swift Package Manager, XCode 8.3.2, SQLite v0.11.3

POC: https://github.com/phildow/sqlite-no-such-module-poc

When I run swift build on the command line I see errors like the following (edited to include updated linker flags):

$ swift build -Xlinker -lsqlite3
Linking SQLiteObjc
Compile Swift Module 'SQLite' (19 sources)
/Users/phildow/Desktop/Foo/.build/checkouts/SQLite.swift.git--276985516849074578/Sources/SQLite/Helpers.swift:52:46: error: use of unresolved identifier 'sqlite3_destructor_type'
let SQLITE_TRANSIENT = unsafeBitCast(-1, to: sqlite3_destructor_type.self)
                                             ^~~~~~~~~~~~~~~~~~~~~~~
<unknown>:0: error: build had 1 command failures

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants