
[英]Universal binary framework, …/TestTarget have the same architectures (arm64) and can't be in the same fat output file
[英]testTarget resources is unavailable
遵循此解决方案时出现此错误: https://stackoverflow.com/a/61263653/20051894
'testTarget(name:dependencies:path:exclude:sources:resources:cSettings:cxxSettings:swiftSettings:linkerSettings:)' 不可用
怎么了?
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages which this package depends on.
.target(
name: "IkigaJSON",
dependencies: [.product(name: "NIO", package: "swift-nio")]),
.testTarget(
name: "IkigaJSONTests",
dependencies: [.target(name: "IkigaJSON")],
resources: [
.copy("Resources/test.txt")
]
),
]
)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.