Skip to content
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

Unable to build as part of Xcode Project #22

Closed
WeebLabs opened this issue Jan 9, 2019 · 3 comments
Closed

Unable to build as part of Xcode Project #22

WeebLabs opened this issue Jan 9, 2019 · 3 comments

Comments

@WeebLabs
Copy link

WeebLabs commented Jan 9, 2019

For reasons that I don't quite comprehend, adding this package to any Xcode project results in a "Missing required module 'SQLiteObjc" error.

I am very new to Swift but am fairly certain that I have imported all of the required frameworks correctly. This had initially been working but since rebuilding my project due to an Xcode crash, I have been unable to replicate my earlier success. I have tried re-creating the project on other machines, which yields the same error.

Thus far, I have tried:

  • Generated Xcode project for Wallpaper via "swift package generate-xcodeproj --xcconfig-overrides=Config.xcconfig".
  • Added Wallpaper project to main Xcode project and linked all four libraries to the target.
  • Added Wallpaper frameworks directly to main project folder and linked.
  • Switched to Swift 4.2.0.
  • Switched to Xcode 10.0.

Attached are screenshots of my current project configuration.
image

image

image

@sindresorhus
Copy link
Owner

You might have to add the SQLite (or SQLiteObjc) framework to "Linked Frameworks and Libraries" in Xcode.

@WeebLabs
Copy link
Author

WeebLabs commented Jan 12, 2019

As you can see from the screenshots above, I have linked both frameworks to the project targets (and earlier to the Wallpaper.xcodeproj file) but the error persists. At the moment, the library is sporadically working in a random test project but I have stepped through every configurable setting or path and the main project is identical in every respect, save for the fact that it produces the error.

I am using three other frameworks in my main project without issue, so this is rather puzzling.

@WeebLabs
Copy link
Author

The issue appears to pertain to the SQLite wrapper fetched when building Wallpaper. Downloading, building the wrapper separately and then adding it to my main project has allowed me to build successfully.

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

2 participants