Post

Replies

Boosts

Views

Activity

Read from smb server connected in 'Files' App
Hey,This is my code. I have the url of the smb server which I have connected in the 'Files' app. It finds the file on the server, but I always says that it has no permission to read it. On my server I have allowed everyone to read and write. Do I need to write something in my code that my app knows that it has permission to read ?let url: URL = URL(fileURLWithPath: "/private/var/mobile/Library/LiveFiles/com.apple.filesystems.smbclientd/xVUdQwTestApp/testaufbau.csv") do { let fileURLs = try FileManager.default.contentsOfDirectory(at: url, includingPropertiesForKeys: nil) Admin.fileContent = try String(contentsOf: fileURLs[0], encoding: .utf8) print("ADMIN: \(Admin.fileContent)") } catch { print(error) }Thank you for all the helpRegards,Tell Tobler
7
0
3.0k
Jul ’23
Ad hoc App Distribution no Wifi connection?
Hello, I distributed an App through Ad hoc and was able to install the app through the web server I set up. In my app I need a network connection. But my error handling always tells me that I have no internet connection. Is it possible that there is no Network connection for apps that are distributed through Ad hoc? Thank you for your help Regards, Tell
5
0
834
Oct ’21