Skip to main content
0 votes
1 answer
66 views

I am trying to use NSFilePromiseProvider to ‘copy’ a file to the macOS pasteboard, but it always crashes. I have a macOS project that has a text file added to the bundle, and I load the file from the ...
Z S's user avatar
  • 7,577
0 votes
0 answers
26 views

I want to create a folder in the system's Documents folder like the application CASRER, but it fails。 public extension URL { static var userHome : URL { URL(fileURLWithPath: userHomePath,...
user22997196's user avatar
0 votes
1 answer
56 views

My app has a custom file type, and I'm trying to update my code so that when I export or import a file that has a "/" character in the name. Currently the app just fails to export a file ...
narner's user avatar
  • 3,221
0 votes
1 answer
49 views

Part of my app creates files, and then a timer batches them. My problem is that using the fileExists method my app insists that the searched for app does not exist. I see the files in the Files app, ...
Bartender1382's user avatar
1 vote
1 answer
135 views

I'm writing a small Mac OS X Desktop application that copies a random sampling of files from a source folder to a destination folder, see Select-Random-Files. The code that's giving me the most ...
belovachap's user avatar
0 votes
1 answer
244 views

I'm trying to pick a video with photo picker this way: @State var selectedItem: PhotosPickerItem? = nil @State var showPhotoPicker = false With those 2 states i'm showing the picker: ....
Udi Oshi's user avatar
  • 6,897
3 votes
0 answers
300 views

I am writing my first SwiftUI app that uses the FileManager (via .fileImporter) to read data from a saved text (.csv) file. Although everything seems to be working OK, the Xcode console displays the ...
HirsuteJim's user avatar
2 votes
1 answer
313 views

I want to zip files inside a folder in my iOS application written in the Swift language. I am using ZipFoundation CocoaPod of version 0.9.5. let fileManager = FileManager.default guard let sourceURL ...
Vivek's user avatar
  • 100
1 vote
0 answers
48 views

I'm using this code which is a mildly doctored version of an online tutorial. I understand the parts, but when I run it, the downloads happen, I get an error-free completion message. But the resulting ...
Dan Donaldson's user avatar
0 votes
1 answer
291 views

I'm building a framework, and need to differentiate between a file that is a bundle resource (included in the App Store IPA / static file defined at development time) and a file that the app creates (...
scosman's user avatar
  • 2,603
0 votes
3 answers
251 views

We are using the RoomPlan API to capture data, which is stored in the 'CapturedRoom' variable in our code (referred to as 'finalResult'). We then attempt to save a USDZ file in the file manager. ...
shiv's user avatar
  • 39
0 votes
2 answers
154 views

I am a beginner in the Swift language. I have multiple arrays in one view controller from which I am loading data in the tableview. My code is: let filemanager = FileManager.default var ...
Abhishek kumar's user avatar
0 votes
0 answers
122 views

In swift, we use Filemanager.default.url(for:in:) to get user directories or system directories. And we pass arguments typed SearchPathDirectory and SearchPathDomainMask to specify what urls we need. ...
ST K's user avatar
  • 177
1 vote
0 answers
62 views

I'm developing a cross-platform clipboard sharing software and currently working on implementing file copying functionality. On Windows, I can achieve file copy by creating an IDataObject and IStream, ...
gao.xiangyang's user avatar
0 votes
1 answer
233 views

Here is my saving and retrieving code: func retrieveSong(songId: String) -> URL? { guard let pathComponent = cache[songId] else { return nil } if let ...
Halpo's user avatar
  • 3,154

15 30 50 per page
1
2 3 4 5
98