The shareFile() function is where the warning occurs.
let ac = UIActivityViewController(activityItems: [fileURL], applicationActivities: nil)
present(ac, animated: true, completion: nil)
Scouring the internet for other code resources for UIActivityViewController all return the same warning.
this is on an iPhoneXR 15.1 xcode 13.2.1
Post
Replies
Boosts
Views
Activity
I'm having the same problem with a map download link from usgs.
The download links work in safari on osx(11.4) and (iOS15.02) IPad/Iphone.
When using WKWebView with Xcode 12.5/13. on the iPhone I am getting the error
XX XXXX V1.1[59585:3775699] [Process] 0x15684b018 - [pageProxyID=5, webPageID=6, PID=59586] WebPageProxy::didFailProvisionalLoadForFrame: frameID = 3, domain = WebKitErrorDomain, code = 102
The download links act dead, there is no response when touched. Other links are working.
If the link is long touched and get a click feedback, then the page shows the copy/lookup selection at the top of web view page
completely seperate from the link touch like webView doesn't know how to respond to the link.
edit: Just tested the IPad and it has the same results as the iPhone.
func save_ImageJPG() -> Bool {
// load tif from app folder image approx 8000 x 6000 pixels
let s = currentMap_Name.replacingOccurrences(of: " ", with: "%20")
let filePath = getDocumentsDirectory().appendingPathComponent("Folder" ).appendingPathComponent(s)
let image = UIImage(contentsOfFile: filePath.path)
// change file type to jpg
let f = URL(string: s)?.deletingPathExtension().absoluteString
let e = URL(string: f! + ".jpg")?.absoluteString
let path = getDocumentsDirectory().appendingPathComponent("TempFolder" ).appendingPathComponent(e!)
if !FileManager.default.fileExists(atPath: path.path) { let jpgData = (image!.jpegData(compressionQuality: 1.0)!)
try? jpgData.write(to: path)
return true
}
return false
}
Old topic but maybe will help someone."require_action" has been changed to "__Require_Action"https://stackoverflow.com/questions/46221364/xcode-9-throws-errors-involving-require
Excellent! Since these are Forest Service maps downloaded, named as such, I was contemplating how to correct.