篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了swift Final Cut Pro X试用版重置相关的知识,希望对你有一定的参考价值。
#!/usr/bin/swift
import Foundation
let path = NSString(string: "~/Library/Application Support/.ffuserdata").expandingTildeInPath
let data = NSKeyedUnarchiver.unarchiveObject(withFile: path) as! NSDictionary
let mutableData = data.mutableCopy() as! NSMutableDictionary
for (key, value) in mutableData {
if value is NSDate {
mutableData[key] = Date()
}
}
NSKeyedArchiver.archiveRootObject(mutableData, toFile: path)
print("You'd better buy it")
以上是关于swift Final Cut Pro X试用版重置的主要内容,如果未能解决你的问题,请参考以下文章