自从更新Xcode12以来,我得到了这个错误Massage:
显示最近的邮件软件包产品"Logging"要求iOS平台的最低平台版本为9.0,但此目标支持8.0
iOS模拟器部署目标"IPHONEOS_deployment_target"设置为8.0,但支持的部署目标版本范围为9.0至14.0.99。
这就是Package.swift文件在Algolia中的样子。我可以解决它吗?还是必须等待下一次更新?
导入包描述
let package = Package(
name: "AlgoliaSearchClient",
platforms: [
.iOS(.v8),
.macOS(.v10_10),
.watchOS(.v2),
.tvOS(.v9)
],
products: [
.library(
name: "AlgoliaSearchClient",
targets: ["AlgoliaSearchClient"])
],
dependencies: [
.package(url:"https://github.com/apple/swift-log.git", from: "1.3.0")
],
targets: [
.target(
name: "AlgoliaSearchClient",
dependencies: ["Logging"]),
.testTarget(
name: "AlgoliaSearchClientTests",
dependencies: ["AlgoliaSearchClient", "Logging"])
]
)
昨天我遇到了同样的问题,在错误消失后,我用pod代替了包