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

build fail on download dependencies #136

Closed
felicedev opened this issue Sep 11, 2017 · 3 comments
Closed

build fail on download dependencies #136

felicedev opened this issue Sep 11, 2017 · 3 comments

Comments

@felicedev
Copy link

MongoDb/AppDelegate.swift:9:8: error: no such module 'UIKit'
import UIKit
^
:0: error: build had 1 command failures
error: exit(1): /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-build-tool -f /Users/name/Desktop/MongoDb/.build/release.yaml

Why??

@Joannis
Copy link
Member

Joannis commented Sep 11, 2017

This isn't a MongoKitten issue. MongoKitten uses SPM and fetches it's dependencies through that.

If you want to use MongoKitten in a macOS GUI application you'll need to create a project using MongoKitten, generate an xcodeproject using SPM (swift package generate-xcodeproj) and add that to your app's .xcworkspace

@felicedev
Copy link
Author

felicedev commented Sep 11, 2017

so the manual import? it can be used in iOS application, or only macOS?

@Joannis
Copy link
Member

Joannis commented Sep 11, 2017

MongoKitten needs to be downloaded using SPM to download the MongoKitten dependencies. If you've got an SPM (Swift Package Manager) project you can generate an Xcode project using the above command. This project can then be added to your app's xcworkspace

@Joannis Joannis closed this as completed Mar 22, 2019
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