我在使用 openSSH 8.6 的 macOS Monterey 上遵循https://developers.yubico.com/SSH/上的 FIDO U2F 说明,但遇到了以下问题:
~ ssh-keygen -t ecdsa-sk -f ~/.ssh/id_ecdsa_sk
Generating public/private ecdsa-sk key pair.
You may need to touch your authenticator to authorize key generation.
Key enrollment failed: unknown or unsupported key type
Run Code Online (Sandbox Code Playgroud)
有人知道我在这里缺少什么吗?
简短:我不知道如何从CMSensorRecorder中获取CMenscord的数据后从CMSensorDataList中提取CMRecordedAccelerometerData.Apple尚未提供任何文档.
也许有人暗示我?;)
func startMovementDetection(){
var accDataList = self.cmSensorRecorder!.accelerometerDataFrom(self.startDate, to: NSDate()) as CMSensorDataList
CMRecordedAccelerometerData() //that's the class i want to extract from CMSensorDataList
}
Run Code Online (Sandbox Code Playgroud)
好的,问题在这里解决了:Swift中的NSFastEnumeration
使用Swift 3.0,它将更改为:
extension CMSensorDataList: Sequence {
public func makeIterator() -> NSFastEnumerationIterator {
return NSFastEnumerationIterator(self)
}
}
Run Code Online (Sandbox Code Playgroud)