-
Notifications
You must be signed in to change notification settings - Fork 819
Open
Description
I have no problem with calling from the main bundle.
But I want to write a unit test, and I've got
OSStatus error:[-34018] Internal error when a required entitlement isn't present, client has neither application-identifier nor keychain-access-groups entitlements.
My project structure is following:
- Main Bundle
- Modules (Swift Package)
- API Target that has
KeychainAccess
as a dependency. - APITests Target where I tried to test class that uses
KeychainAccess
.
- API Target that has
- Modules (Swift Package)
My package file
// swift-tools-version: 5.7
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "Modules",
defaultLocalization: "en",
platforms: [.iOS(.v15)],
products: [
.library(
name: "Modules",
targets: ["API"]
)
],
dependencies: [
.package(url: "[email protected]:kishikawakatsumi/KeychainAccess.git", from: "4.2.0")
],
targets: [
.target(
name: "API",
dependencies: [
.product(name: "KeychainAccess", package: "KeychainAccess")
]
),
.testTarget(
name: "APITests",
dependencies: ["API"]
)
]
)
I test at the iPhone Simulatore, Xcode 14.2.
Keychain capability is on.
I also tried #549 (comment) but didn't help.
Metadata
Metadata
Assignees
Labels
No labels