This is a simple test file sharing which I cannot find info on. the "(This will become a fault soon.)" from xcode is what is the worrisome, it seems to have developed recently with xcode update?
I don't want to release an app which may soon fail.
class ShareFile_ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
navigationItem.rightBarButtonItem = UIBarButtonItem(title: "Share", style: .plain, target: self, action: #selector(shareFile))
}
@objc func shareFile() {
if let fileURL = Bundle.main.url(forResource: "Skiing", withExtension: "gpx") {
let ac = UIActivityViewController(activityItems: [fileURL], applicationActivities: nil)
present(ac, animated: true, completion: nil)
}
} }
// this error has been beat to death as don't worry about it.
2022-02-19 16:28:47.644274-0800 ShareFile_Learn[36671:12674168] [db] Failed to initialize client context with error Error Domain=NSOSStatusErrorDomain Code=-54 "process may not map database" UserInfo={NSDebugDescription=process may not map database, _LSLine=264, _LSFunction=-[_LSDReadClient getServerStoreWithCompletionHandler:]}
// this warning is my concern since it says it become a fault soon, should I worry about this?
2022-02-19 16:28:47.644370-0800 ShareFile_Learn[36671:12674168] [default] -imageForImageDescriptor: can do IO please adopt -imageForDescriptor: for IO free drawing or -prepareImageForDescriptor: if IO is allowed. (This will become a fault soon.)