Instead, you can compile the swift code to binary and run the app if required.įirst, open your favorite text editor and add to the beginning #!/usr/bin/swift.Ĭopy the code from above to the next line and save the result to fcpxreset.swift file. Repeating this method ever 30 days to make Final Cut Pro X Trial Reset can be not so user-friendly. Paste: mv -v ~/Library/Application\ Support/.ffuserdata ~/.Trash Try! NSKeyedArchiver.archivedData(withRootObject: mutableDictionary, requiringSecureCoding: false).write(to: path)Ģ. Let mutableDictionary = dictionary.mutableCopy() as! NSMutableDictionary Let dictionary = try! NSKeyedUnarchiver.unarchiveTopLevelObjectWithData(data) as! NSDictionary Let data = try! NSData(contentsOf: path) as Data Let path = URL(fileURLWithPath: NSString(string: '~/Library/Application Support/.ffuserdata').expandingTildeInPath)