I have issues trying to install MongoSwift (The official MongoDB driver for Swift applications on macOS and Linux).
I mention this people because I see that they are related with Swift and works in MongoDB so maybe they will see the post and can give me some advice:
Xcode > File > Swift Packages > Add Package Dependency
Choose Package Repository https://github.com/mongodb/mongo-swift-driver Rules: Version: Up to next Major > 1.3.1
Then I have the choice to choose the dependencies that I want to install:
- MongoSwift (Asynchronous API) - MongoSwiftSync (Synchronous API)
I tried in one project choose MongoSwift and in another project choose MongoSwiftSync but in both projects I have the same errors:
- import MongoSwift // No such module 'MongoSwift'
The No such module is because the following error:
The package product 'SwiftBSON' requires minimum platform version 13.0 for the iOS platform, but this target supports 9.0
In mongo-swift-driver (https://github.com/mongodb/mongo-swift-driver)
- Package.swift dependencies: [ .package(url: "https://github.com/mongodb/swift-bson", .upToNextMajor(from: "3.0.0")) ],
The latest version of swift-bson in https://github.com/mongodb/swift-bson is 3.1.0
I am using Xcode Version 12.4 (12D4e) in a MacOS Catalina Version 10.15.7 (19H1715)
I need some help to solve this issue.